Hi, the last question on this specific topic was posted a year ago, and related to sensor accuracy. So, I trust I am not treading on toes when I ask for help on this issue that causes undesirable resetting of my microcontroller.
I have done a bit of reading up on decoupling, am aware of the basic needs, and have applied them to my limited understanding.
I have done a google search on the topic, and understand that fluorescent ballasts generate a high frequency noise which needs to be dealt with.
As I understand, I need to calculate the frequency of the hum, and attach decoupling to compensate for this. According to my calcs, that results in a whopping 666MHz.
Is my selection of the decoupling capacitors fair? I have attached the spec of the electronic ballast (30W Arcadia) onto the image. Lambda = 0.45, A = 0.365 C alpha rho = G13
I strongly suspect it isn't.
I have attached 3 decoupling capacitors: 10mF, a 0.1mF and a 15pF on the powerline next to the input jack.
Attached is a block diagram of my connections.
I am using a DC Boarduino with the AtMega 328 chip.
I installed an optoisolator BOB to protect the microcontroller from the relay switching noise. In spite of this, I still observed my device resetting. Therefore, I decided to remove the relay and have the Flourescent ballast connected directly to the AC line. This resulted in the same problem occurring when switched on from the physical switch.
Yes having a fluorescent tube IS essential for the project.
The microcontroller and power supply are in separate locations: each with their own faraday cage.
I installed a 120 ohm resistor between the RST and 5V pin to prevent stray resetting. This just halted the program completely when the resetting occurred.
I do not have an oscilloscope. However, if my project does turn out successful, I might be rewarded with one.
Does anybody have an opinion on the power supply?
Should the Boarduino have a separate supply to mitigate the issue? I have a 9V 2A unregulated MYRRA PS lying around.
Would this mean connecting the grounds on both supplies together?
If you think of any part that I could do with to help, I will buy it from Farnell.
Any and all help will be appreciated.
Thank you