
*edit. the problem is induction when i have load on the relay*

i did it... same problem....SurferTim wrote:That is a 5v device. The RPi is 3.3v. Here is a link to the schematic to connect them.
https://docs.google.com/file/d/0B5-HND9 ... VyODA/edit
The relay should isolate the control side from the output side.liorillusion wrote:.... when im launching my code with the relays its working good. but when im conecting the relay to output of 12V + or - to activate led or air valve or electro magnet the pi getting inputs and the code crash. when nothing conecting to the relay output the pi working good!
yes. same...SurferTim wrote:Did you try removing the jumper?
the wires are good.Burngate wrote:The relay should isolate the control side from the output side.liorillusion wrote:.... when im launching my code with the relays its working good. but when im conecting the relay to output of 12V + or - to activate led or air valve or electro magnet the pi getting inputs and the code crash. when nothing conecting to the relay output the pi working good!
If something on the output side is affecting the Pi, then you've possibly wired it wrongly.
liorillusion wrote:the wires are good.Burngate wrote:The relay should isolate the control side from the output side.liorillusion wrote:.... when im launching my code with the relays its working good. but when im conecting the relay to output of 12V + or - to activate led or air valve or electro magnet the pi getting inputs and the code crash. when nothing conecting to the relay output the pi working good!
If something on the output side is affecting the Pi, then you've possibly wired it wrongly.
Then your wiring is very suspectliorillusion wrote:yes. same...SurferTim wrote:Did you try removing the jumper?
again. relay working great also with 3.3v but when i connect any 12v to relay output no and c im getting input in my pi.
Then your wiring is very suspectliorillusion wrote:yes. same...SurferTim wrote:Did you try removing the jumper?
again. relay working great also with 3.3v but when i connect any 12v to relay output no and c im getting input in my pi.
Seems like a duplication there. You still need to convert the Arduino's 5v digital lines to 3.3v for the RPi.liorillusion wrote:wires connected to the gpio. and about the black wire is not there anymore....
if i will use arduino to activate the relays. its will work? and i will connect it to the pi
i did it before. and smae problem ahha its crazy me. no why to use resistor or diode on the input or output? (on the pi)SurferTim wrote:Seems like a duplication there. You still need to convert the Arduino's 5v digital lines to 3.3v for the RPi.liorillusion wrote:wires connected to the gpio. and about the black wire is not there anymore....
if i will use arduino to activate the relays. its will work? and i will connect it to the pi
If yu are using 3.3v on the relay board optoisolators, you need connect only 3.3v to VCC and the digital pins to IN1 to IN8. As I recall, remove the jumper. The relays will require a separate 5v supply on the control coils. edit: Connect 5v coil supply to JD-VCC.
liorillusion wrote:hello.that's my first post here i will be happy to get some help. im working on controller to control air valve. leds and electromagnets im using raspberry pi 3 and 8 relay board and 4 relay board so the total is 12 relay. i have 8 inputs in this rpi but i have a problem. when im launching my code with the relays its working good. but when im conecting the relay to output of 12V + or - to activate led or air valve or electro magnet the pi getting inputs and the code crash. when nothing conecting to the relay output the pi working good! i try to use 5V 10amp power supply to the relay board and same problem. i try to connect the relay board to the pi 5v and same problem... im using 12v 27amp power supply for the output of the relays and this is not my first time im working with this relays on pi or arduino.... thanks for the helpim going crazy with that!!!
*edit. the problem is induction when i have load on the relay*