Relays are making my arduino rfid reader go stupid....

Referring to that pdf for the relay module the control lines require about 20ma, for each relay. Not much. However I looked up the relay it's self:

The coil of the relay is going to consume about 90ma for each relay that is on. The combined load should also not be too high, but it is the surge current that concerns me.

Referring to the user guide for the module I think that VCC should be hooked to the Arduino 5 volt rail. The RY-VCC should come from a separate five volt supply ( a phone charger/ wall wart type is plenty).

Just because the software runs once or twice does not mean that there is not a bug that occurs after several cycles. Is this your code, or did you download it from somewhere?

amdkt7:
Referring to the user guide for the module I think that VCC should be hooked to the Arduino 5 volt rail. The RY-VCC should come from a separate five volt supply ( a phone charger/ wall wart type is plenty).

I'm not sure I understand this part. I have a plus and a -4 power and one pin labeled s which is the trigger from the Arduino board.

Have you looked at this document? http://www.handsontec.com/dataspecs/2Ch-relay.pdf

You should be able to see what I mean. You want to run the RY-VCC from a separate supply. I am afraid that I don't understand what you mean by the "-4 power".

See this section in the document that states:
"NOTES: If you want complete optical isolation, connect "Vcc" to Arduino +5 volts but do NOT connect Arduino Ground. Remove the Vcc to JD-Vcc jumper. Connect a separate +5 supply to "JD-Vcc" and board Gnd. This will supply power to the transistor drivers and relay coils."

amdkt7:
Have you looked at this document? http://www.handsontec.com/dataspecs/2Ch-relay.pdf

You should be able to see what I mean. You want to run the RY-VCC from a separate supply. I am afraid that I don't understand what you mean by the "-4 power".

See this section in the document that states:
"NOTES: If you want complete optical isolation, connect "Vcc" to Arduino +5 volts but do NOT connect Arduino Ground. Remove the Vcc to JD-Vcc jumper. Connect a separate +5 supply to "JD-Vcc" and board Gnd. This will supply power to the transistor drivers and relay coils."

Voice to text fail.

I have positive and negative as well as "s" on the board.

My other relays have the jumper. But im using the one that came with my kit atm

I tried powering the relay with a USB cable off of a phone charger. The LED would barely light up

amdkt7:
Have you looked at this document? http://www.handsontec.com/dataspecs/2Ch-relay.pdf

You should be able to see what I mean. You want to run the RY-VCC from a separate supply. I am afraid that I don't understand what you mean by the "-4 power".

See this section in the document that states:
"NOTES: If you want complete optical isolation, connect "Vcc" to Arduino +5 volts but do NOT connect Arduino Ground. Remove the Vcc to JD-Vcc jumper. Connect a separate +5 supply to "JD-Vcc" and board Gnd. This will supply power to the transistor drivers and relay coils."

Thats the one ive been using. I tried taking the other one out but cant seem to get enough power to it to run it without usinf power from the board.

Mike it came with a double A battery power supply. I tried using that on the relay but it wouldn't operate

birddseedd:
I'm afraid but I'm not sure what you mean about level shifters. If I saw it on another thread then I did not understand it.

That is a very bad way to respond. Here is where I told you what they were:-
http://forum.arduino.cc/index.php?topic=586753.msg3991892#msg3991892

If you didn't understand it then why on earth did you not ask. You also said previously that you were powering the Arduino from 3V3 and then in these diagrams all of a sudden you are not.

We can only help if you provide good solid information.

Responses like:-

That went so far over my head it hit orbet

Show you are simply not trying or this project is way out of your league currently.

You can't even answer simple questions like how you are driving the relay and do you have a flyback diode across the coil. What is worse you can't even be bothered to draw a circuit diagram that shows all the wiring.

I ask how you are powering your RFID reader and you say "from the Arduino"! That is a useless reply. From the Arduino's 5V or from the Arduino's 3V3 was the sort of answer that would have been useful.

Grumpy_Mike:
That is a very bad way to respond. Here is where I told you what they were:-
Can i use 2 rc522 rfid cards one ine arduino? - #17 by Grumpy_Mike - Project Guidance - Arduino Forum

If you didn't understand it then why on earth did you not ask. You also said previously that you were powering the Arduino from 3V3 and then in these diagrams all of a sudden you are not.

We can only help if you provide good solid information.

Responses like:-Show you are simply not trying or this project is way out of your league currently.

You can't even answer simple questions like how you are driving the relay and do you have a flyback diode across the coil. What is worse you can't even be bothered to draw a circuit diagram that shows all the wiring.

I ask how you are powering your RFID reader and you say "from the Arduino"! That is a useless reply. From the Arduino's 5V or from the Arduino's 3V3 was the sort of answer that would have been useful.

Hello. Thank you.

I appreciate your patience. You have helped me in the past and I have made progress with your help. Doing things is the way that I learn best. But I do understand it makes it hard to help somebody because they don't exactly know how to ask the right questions. I will do the best that I can to learn what I need to know so that you will be less frustrated when helping me.

As far as the power goes, the instructions that came with my kit showed to have the RFID board powered from the 3.3 volt off of the Arduino. I had been plugging the relay into the same power which I just didn't think about. Now I have it running directly to the 5 volt fan on the Arduino.

I was given instructions above how to isolate the relay. I don't fully understand it but I read it over a couple times after dinner. I obtained one of the relays that can do that.

As far as drawing a proper circuit diagram. I'm sorry. I just don't know how. I am a computer Aerotek by trade, I own a business in a different industry. It's just something that I've never been trained on how to do. If there's a resource they can give me that will help me with this, I will do the best that I can.

As far as an update, I ran the motor directly while operating the Arduino and I did not have any problems, so it's not simply running the motor that is the issue. I also put a heartbeat code in the program so I can say assuredly that the entire Arduino it is freezing up. It's a little odd I think that it seems to always finish the loop before it freezes up. But at the beginning of the loop iterates and number and prints that number.

amdkt7:
Have you looked at this document? http://www.handsontec.com/dataspecs/2Ch-relay.pdf

You should be able to see what I mean. You want to run the RY-VCC from a separate supply. I am afraid that I don't understand what you mean by the "-4 power".

See this section in the document that states:
"NOTES: If you want complete optical isolation, connect "Vcc" to Arduino +5 volts but do NOT connect Arduino Ground. Remove the Vcc to JD-Vcc jumper. Connect a separate +5 supply to "JD-Vcc" and board Gnd. This will supply power to the transistor drivers and relay coils."

is this accurate?


well. if it is correct (it is running off of the batteries i'm using for a 2nd power supply), then its still not working :frowning:

but, here is a weird thought. the arduino always crashes at the end of the loop. its not instantly crashing from whatever cause.

:frowning: i guess ill start reading about the motor controller. this doesn't make sense

As far as the power goes, the instructions that came with my kit showed to have the RFID board powered from the 3.3 volt off of the Arduino.

Good, now exactly what is your reader? Can you post a link to it please. The thing is that the reader might have 5V tolerant inputs but this is unlikely if it is being powered by 3V3. Do you only have one reader or two like you were asking about before?

This is three one i had and burned up. Ive written the code for 2 but only have 1. I was planning on buying another. Guess now im buying 2 more. My end up with a different brand but the same board

http://wiki.keyestudio.com/index.php/Ks0067_keyestudio_RC522_RFID_Module_for_Arduino

Sorry that page you linked to is absolute crap. It shows a 5V signal going to a 3V3 device. That device does not have 5V tolerant inputs, so you are going to burn it out if you wire it like it shows.

Grumpy_Mike:
Sorry that page you linked to is absolute crap. It shows a 5V signal going to a 3V3 device. That device does not have 5V tolerant inputs, so you are going to burn it out if you wire it like it shows.

the picture shows vcc to be hooked to the 3.3v line on the arduino. It went out with my arduino anyway. this is the one i have ordered now. its basically the same thing.

https://www.amazon.com/gp/product/B01JYMA4MI/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

the picture shows vcc to be hooked to the 3.3v line on the arduino.

You don't seem to be good at this electronics lark. I will have one more go at telling you what is wrong with this:-

Yes you have connected the voltage of this reader to 3V3. So this means the output voltages of the reader will be 3V3. This is below the voltage that is guaranteed to register as a logic high on an Arduino but it might just work.

BUT

The voltages going in to the reader from the Arduino will be 5V. This is more than the maximum voltage the chip in that reader can take without damage. Unless you do something to mitigate this problem then your readers will fail a lot sooner than they otherwise would.

Grumpy_Mike:
You don't seem to be good at this electronics lark. I will have one more go at telling you what is wrong with this:-

Yes you have connected the voltage of this reader to 3V3. So this means the output voltages of the reader will be 3V3. This is below the voltage that is guaranteed to register as a logic high on an Arduino but it might just work.

BUT

The voltages going in to the reader from the Arduino will be 5V. This is more than the maximum voltage the chip in that reader can take without damage. Unless you do something to mitigate this problem then your readers will fail a lot sooner than they otherwise would.

Im confused by what you mean. If the power signal is attached to the 3.3v line of the arduino, how is it getting 5v? The 3.3v pin should only be putting out 3.3v?

Food for tought:

The motor itself is also an inductive load that can generate high-voltage....sparks....interferences
Specialy if a brush type
Sparks and high voltage interfereces will arise in the motor itself and on the relays contacts output

Try adding small cap on the motor terminal... or beter tvs

jfpayeur:
Food for tought:

The motor itself is also an inductive load that can generate high-voltage....sparks....interferences
Specialy if a brush type
Sparks and high voltage interfereces will arise in the motor itself and on the relays contacts output

Try adding small cap on the motor terminal... or beter tvs

The only thing that makes sense isnthe motor is sending noise back through the relays which is causing the arduininto shut down. I just dont know what i can do about it. I do not kniw what a cap or tv is. I can google "electrical cap"