Go Down

Topic: Controlling Relays w/ Windows (Read 253 times) previous topic - next topic

jstkruzen

Hi Everyone,

I'm trying to develop a simple windows application that can turn 4 relays on or off independently.

Getting the relays to work w/ IDE has been fairly simple but it's trying to get everything to communicate via serial, as well as making the windows application that is driving me absolutely nuts. If it matters I'm using a Nano.

I've attempted to use code people have made to control LEDs to no avail.

Any help is GREATLY appreciated.

Robin2

You have not given us any information about what specific problem you are having. What are you using to write the PC program? What is it doing or not doing?

This Python - Arduino demo may give you some ideas. I believe it will work with Windows if you use the appropriate name for the Serial port

Your PC program should open the serial port, allow time for the Arduino to reset before trying to send data and should then keep the serial port open until it is completely finished with the Arduino.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

GijKieken

Do a search on processing it is the same IDE as the one Arduino uses.
Via processing you can control the Arduino.

Go Up