Posted by david bennett 8 on 06/04/2023 20:26:19:
Posted by S K on 14/03/2023 18:31:50:
…
You want a nice, quiet linear supply with good regulation, like a decent laboratory bench supply, but those are somewhere around the $300-500+ U.S. mark.
A suitable battery followed by a common "LM"-type regulator would be quiet too, though long-term regulation would be an issue as the battery runs down, temperature changes, etc. – – —
Isn't this what you would effectively have if a battery was connected via a d.c to usb cable, relying on the arduino voltage regulator for control?
dave8
Not quite, but I believe it's close enough for my purposes.
All power supplies are noisy, some worse than others. Even the best mains powered supplies are vulnerable to muck arriving over the line – switching transients, solar activity, distant lightning strikes, radio signals, mush generated by appliances. Many sources: motors with faulty suppressors, unfiltered VFDs, and – very common – switch-mode power supplies.
The latter are wonderfully power efficient, but difficult to suppress properly. Too cheap models just dump spikes on both input and output. Better made units are much cleaner, but still electrically noisy. For most applications noise below a certain level doesn't matter, but for others it does.
Audiophiles claim to be able to hear switched mode noise on their amplifiers, discuss! More to the point, noise spikes on the power supply can upset communications systems, computers, and sensors. It's possible that electrical noise on the supply to a beam-break IR sender and IR receiver could cause slightly early or late detects. So with a 1 second pendulum a poorly decoupled sensor might report 1.0000, 1.0000, 1.0003, 1.0000, 0.9999, 1.0000, 0.9997 In the example, the mean is 1.0000s, with ±0.3mS noise, but spikes could bias away from the mean, hence it's good to problematic noise.
Actually, in my set-up, which has a noisy pendulum, ie the period varies, I don't have any evidence, yet, that power supply noise is the cause. Power is from a reasonably clean wall-wart USB PSU via an Arduino's regulator, and the sensor electronics are decoupled. No obvious difference running the pendulum with a linear power supply (which I have available).
In the event switched mode power was confirmed to be causing period noise, the obvious first step is a linear power supply. In the unlikely event the sensor was so sensitive that a linear supply upset it, batteries are as low noise as power gets. A battery is on the cards already – not to clean up the power supply, but trickle charged to keep the clock going during power cuts.
The most likely cause of my clock's noisy period is its faulty suspension and whippy rod. They have to be fixed before I look for anything else.
Dave