- I am commanding my arduino while it is running by a VB.NET application i am developing.
- commands are begin sent by Serial Port .. using max2323 shield (RS232) .. sending and receiving works fine without any problems.
- the relay purpose is to connect and disconnect a 24 Volt line from DC power source to its destination into a driver used to control Servo motor.
- First try: I tried using a complete relay bridge.
- Second try: I tried using a build up relay circuit described in this link http://www.ecs.umass.edu/ece/m5/tutorials/relay_tutorial.html
- Third try: I tried using a build up relay circuit described in the same link above but using a different relay shown in the below link http://uk.farnell.com/finder/36-11-9-005-4011/relay-pcb-spco-5vdc-10a/dp/2311438
- Fourth try: I tried connecting the relay mentioned in the third try directly in to the arduino and directly in to the 24 Volts source and destination without any restorers, transistors, diodes what so ever.
If the driver is not running, it works fine. However, if the driver is running and waiting the 24 volts signal, only the third and fourth methods work fine without trouble. The first and second methods lead to losing my connection from my computer to the Arduino.
When I loose the connection, I'm informed by a msgbox
from the window tells me that "The port is not functioning properly."
OR I thought so....
Up to this point of making this post I thought that the third and fourth try is fine, but after a period even them came to the same msgbox error.
I notice that the closer the SR-232 in physical position to the Arduino and the relay, the more likely it is to have the problem.