Hi all,
I am working on a project at the moment to allow me to utilise the Arduino to switch a relay, using Python to tell it when to start via serial.
So far i have got the arduino to receive the message via serial to start and to switch the relay on and off, however, once it has switch on an off i want the loop to effectively end, and be ready to receive from serial again so the python script can be run again, triggering the same sequence of events. At the moment however it is continuing the loop over and over.
I have used guidance from this indestructible: http://www.instructables.com/id/Arduino-and-Python/
My code is pretty much the same as in this guide..
Any help would be really appreciated!