Hi friends, I am currently working on a machine based on atmega328 that i use for control 2 relay through 2N2222 NPN transistor , this 2 relay is for control fluorescent lamps through ballasts ferromaghnetique
the probleme is when i start the programe without balllast , it works perffectelly but when i start it with ballast , there is some probleme accur like self reset , lcd flashing , sometome ignoring some part of programe
i think that i made a probleme somewere but i dont know where
thanks you for your attention
am ready for post the ducuments needed if that was helpfull
Show us a good schematic of your circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components. Posting images:
https://forum.arduino.cc/index.php?topic=519037.0
Use CTRL T to format your code.
Attach your ‘complete’ sketch between code tags
[code]
Paste your sketch here[/code]
This is a very high EMI environment - most old fluorescent displays generate a large amount of EMI due to inadequate suppression devices - you will need careful shielding of your circuit to function at all near the mains
wiring of such a light fitting - shielded wiring, metal enclosure, attention to wires entering the
enclosure.
It not uncommon to get several kV transients which will play havoc with any low voltage equipment that's
not engineered robustly.
I would use a low cost 2-relay module configured with opto-isolation enabled (separate DC supply, JD-VCC jumper removed, no relay to Arduino GND connection) and located as far as possible from the Arduino.
If it were me I would use a A Opto Isolated Solid State Relay with a Zero Cross circuit. This keeps the transients down and no interface transistor is needed. They are readily available and inexpensive for voltages to 480 and current 10 to 20 Amp range. Be sure the AC system is properly grounded.
If it were me I would use a A Opto Isolated Solid State Relay with a Zero Cross circuit.
You win! Definitely the simplest and most reliable solution. Beware of the fake below spec products out there ... use a reputable supplier!
(Just check the solid state relay will switch an inductive load )
Could you provide a link or datasheet to your ferromagnetic ballast?
Hi,
What load/wattage are the fluorescent lamps?
Thanks.. Tom.. ![]()
hi friends , thanks for all reply
this is the code that i use to controle this machine :
TOMPON MACHINE CODE SOURCE - Google Drive
it so long but i thinks it work corecttely ;D
this is the the schematic diagram :
Schematic_TOMPON MACHINE SCHEMATIQUE DIAGRAM_2020-08-06_06-19-22.pdf - Google Drive
this is the pcb top :
PCB_PCB TOMPON_2020-08-06_06-16-58.pdf - Google Drive
and this is the buttom :
PCB_PCB TOMPON_2020-08-06_06-16-58.pdf - Google Drive
Notice ; Although I have replaced the electromagnetic ballast with electronic ballast, selfreset still occurs
old ballasts :
20210324_225735.jpg - Google Drive
new ballast :
20210324_225806.jpg - Google Drive
20210324_223335.jpg - Google Drive
all the words can't be enought to thanks all of you, love you friends
;D
Hi,
Can you please attach and post your diagrams, some platforms cannot get images from googledrive.
Thanks.. Tom.. ![]()
Something is wrong, my browser won't even follow those links. Click, nothing.
if you copy the link and paste it in google serch it will work well
TMISAII:
if you copy the link and paste it in google serch it will work well
No, please attach your files to a post please.
Thanks.. Tom.. ![]()
you can checks the links , i solve the probleme
notice :
i replace also the the trasformer 220v to 5v and the probleme still occur
khow am sure that the probleme is in PCB or arduino code not from ballast or trasformer !!!!





