Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • 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.

share

migration rejected from electronics.stackexchange.com Jan 22 '15 at 23:23

This question came from our site for electronics and electrical engineering professionals, students, and enthusiasts. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Chris Stratton, Anonymous Penguin Jan 22 '15 at 23:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Arduino, within the scope defined in the help center." – Chris Stratton, Anonymous Penguin
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
If you're using a USB to RS232 adapter have you tried a different one (as in different brand)? The relay switching might generate some noise on the lines and maybe that device doesn't cope with it well. I might expect to see a bit of junk received, but normally wouldn't expect the Windows device driver to stop functioning which means the USB side of the converter is having problems. – PeterJ Jan 22 '15 at 12:05
    
Thanks, I will buy the best available and try and give a feed back. – Tamer Ewimer Jan 22 '15 at 13:03
    
Improper migration. This is not in any meaningful way an "arduino question" but rather a classic EMI problem requiring the expertise of EESE where it was originally and properly asked. Send it back! – Chris Stratton Jan 22 '15 at 17:36

Browse other questions tagged or ask your own question.