BeanieBots
Moderator
Well, there are some great big fat clues there!
No problem when run from battery.
Problem when run from mains via regulator.
Series resistor into regulator helps to reduce noise level.
Conclusion.
It's NOT the module.
It IS related to supply and/or wiring.
Don't know what caps you have in your collection but those old 20 year old electrolytics you took out of your grandads gramaphone won't have any effect on 'clicks'. As stated by AC, you need to use low ESR. These are unlikely to be lying around in a drawer unused unless you do a lot of electronics because they are expensive and usually bought for a specific project. eg power supplies.
What value resistor to use.
The highest you can get away with.
To work that out (not guess or trial and error) you need to know the supply voltage, the current drawn and the output voltage of the regulator.
Use ohms law to determine the resistance that will give you about 3v headroom into the regulator.
Once you know that value, halve it and use two in series.
Then fit a LOW ESR cap between the junction and 0v and another one between regulator input and 0v.
Across each LOW ESR cap, fit a ceramic 100nF to make them even lower ESR at high frequencies.
If the above does not eliminate the problem, then start looking for ground loops.
Another quick and easy test would be to take the ENTIRE setup to a different location and try it there. If the problem goes away, then start looking for something in your house that might be generating the noise and shoving it down the mains line.
No problem when run from battery.
Problem when run from mains via regulator.
Series resistor into regulator helps to reduce noise level.
Conclusion.
It's NOT the module.
It IS related to supply and/or wiring.
Don't know what caps you have in your collection but those old 20 year old electrolytics you took out of your grandads gramaphone won't have any effect on 'clicks'. As stated by AC, you need to use low ESR. These are unlikely to be lying around in a drawer unused unless you do a lot of electronics because they are expensive and usually bought for a specific project. eg power supplies.
What value resistor to use.
The highest you can get away with.
To work that out (not guess or trial and error) you need to know the supply voltage, the current drawn and the output voltage of the regulator.
Use ohms law to determine the resistance that will give you about 3v headroom into the regulator.
Once you know that value, halve it and use two in series.
Then fit a LOW ESR cap between the junction and 0v and another one between regulator input and 0v.
Across each LOW ESR cap, fit a ceramic 100nF to make them even lower ESR at high frequencies.
If the above does not eliminate the problem, then start looking for ground loops.
Another quick and easy test would be to take the ENTIRE setup to a different location and try it there. If the problem goes away, then start looking for something in your house that might be generating the noise and shoving it down the mains line.