So I have been working on this for a while now i have trule hit a road block with my skill.The prozect is based on an arduino uno, 3 relays ,2 buttons and a screen. The 2 buttons are suposed to switch betwin the relays one acting as a plus and the other as a minus , for exaple if relay 1 is on and button plus is pressed then the program suld turn off relay 1 and turn on relay 2.The same sould hapen if the button is pressed again and go from relay 2 to 3( I am sorry if I am being repeteteve ) the same uld hapen with button m,inus but in reverse. The screen is there to tell you what relay is on (you will notise in the code that relay 3 is labled as “MAXIMUM EFORT” ). Anyways i wrote the code to the best of my ability and it seems to run but it just doesent work it seems as if the button presses do not register( yes i have checed the whiring 1000 times it is not the problem). without any further mambling here is the code . Lituraly any help is more than aprisiated
(btw the display does turn on desplays " D1 " as well relay 1 that also turns on "
the buttons are momentery switches an the display runs of a 12c lcd driver
telikos_kodikas.ino (1.35 KB)