Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: jstkruzen on Jan 20, 2019, 09:34 pm

Title: Controlling Relays w/ Windows
Post by: jstkruzen on Jan 20, 2019, 09:34 pm
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.
Title: Re: Controlling Relays w/ Windows
Post by: Robin2 on Jan 20, 2019, 10:05 pm
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 (http://forum.arduino.cc/index.php?topic=225329.msg1810764#msg1810764) 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
Title: Re: Controlling Relays w/ Windows
Post by: GijKieken on Jan 21, 2019, 11:16 am
Do a search on processing it is the same IDE as the one Arduino uses.
Via processing you can control the Arduino.