Jump to content



Photo
- - - - -

Unexpected relay board behavior

SainSmart relay board missing tension

  • Please log in to reply
5 replies to this topic

#1 rasm

rasm

    Enthusiast

  • Members
  • PipPipPip
  • 128 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: currently Fish Tales

Posted 14 August 2014 - 08:27 AM

Hi guys,
 
Yesterday night I mounted a SainSmart 8 channal relay board, so that I am able to add some toys with to much power sonsumption for my LedWiz.
 
When I started to test my setup, I got confused. Probably I did something wrong. It would be nice if you could gimme a hint.
I am just missing a connection from the realy input line to the switched output port when relay is active. Here is a picture and some details.
 
relay-board-description.png
 
Relay board connection
 
1. A bar of pins to control the relays.
I soldered a terminal block to the pins for convenient usage. I ensured that no soldering points connect each other (by measureing).
  • Pin GND is connected to my 5V line GND that is also attached to my LedWiz.
  • Pin VCC is connected to my 5V line DC+, to enable my relays to work.
  • Pin IN1 is connected to my LedWiz port 16.
  • Pins IN2-IN8 are connected to my terminal block, but not in use yet.
2. Mystic jumper.
  • A jumper is connecting pin VCC and VCC-JD.
  • Pin GND is not connected.
3. Relay.
Every relay has three connectors that I interpret as IN, NC and NO.
  • IN is connected to my 12V GND.
  • NC is not connected.
  • NO is connected to DC- of my 12V toy.
4. Toy.
  • DC+ is connected to my 12V DC+ line.
  • DC- is connected to my relay output NO.
 
Scenario
Everything connected, LedWiz port 16 is inactive and relay 1 is off.
  • Tension between DC+ 12V and IN of relay 1 is 12V as expected.
  • Tension between DC+ 12V and NC of relay 1 is also 12V as expected.
  • No tension between DC+ 12V and NO of relay 1 as expected.
Via a LedWiz control panel I activate port 16. A led signals that relay 1 is active now and I hear a click.
  • Tension between DC+ 12V and IN of relay 1 is 12V as expected.
  • No tension between DC+ 12V and NC of relay 1 as expected.
  • No tension between DC+ 12V and NO of relay 1 - Damn!
 
Why is NO of relay 1 not switched to the IN line?
In this setup I only can switch NC but I need an inverted effect by using NO.
 
I've no idea what stupid misstake I did and hope for your help. Thx.

Edited by rasm, 14 August 2014 - 08:30 AM.

Visit my build: Yet another build thread


#2 kiwi

kiwi

    Pinball Fan

  • VIP
  • 2,694 posts

  • Flag: Italy

  • Favorite Pinball: Star Trek 25th Anniversary



Posted 14 August 2014 - 10:18 AM

The first terminal is NC,

the second COM, or as you call it IN,

and the third is NO.

 

http://www.raspberry...pic.php?t=36225

However, it is best to connect the +12v to the relay instead of GND, because when the relay is off, you have no tension on the wires of the toy.

 

Max



#3 rasm

rasm

    Enthusiast

  • Members
  • PipPipPip
  • 128 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: currently Fish Tales

Posted 14 August 2014 - 11:19 AM

The first terminal is NC,

the second COM, or as you call it IN,

and the third is NO.

...

 

Ahhh, thank you, Max! There is my stupid mistake - can't wait to fix it.


Visit my build: Yet another build thread


#4 gamefixer

gamefixer

    Pinball Fan

  • Silver Supporter
  • 575 posts
  • Location:Prosper, Texas

  • Flag: United States of America

  • Favorite Pinball: BK2K

  • PS3 Gamer Tag: gamefixer
  • 360 Gamer Tag: gamefixer

Posted 14 August 2014 - 12:24 PM

I disagree that its best to switch voltage to the toys instead of GND, thats not how its done in a traditional pinball machine and they drive solenoids at well above 12VDC. But, that shouldn't make a difference. 

 

I do agree that you have the rely wired wrong on the switch side though. :)

 

That board is super cheap! Wish I knew about it before I bought those LEDWiz booster boards. 



#5 rasm

rasm

    Enthusiast

  • Members
  • PipPipPip
  • 128 posts
  • Location:Hamburg

  • Flag: Germany

  • Favorite Pinball: currently Fish Tales

Posted 14 August 2014 - 12:53 PM

Ahhh, thx - I would only have to switch one cable.

 

I read something strange about the mystic jumper and that it controls if toys are really isolated.

Now I am a bit sceptic, because in the diagram that Max posted is GND wired in another way:

  • GND of input pin bar isn't connected there.
  • GND of the jumper pins is connected instead.

 

Yea, I also like that these relay board are so cheap and probably work well. Please note that there are also SainSmart relay boards if USB connector that can be driven directly by DOF as an alternative to a LedWiz.


Visit my build: Yet another build thread


#6 jkimbrell

jkimbrell

    Enthusiast

  • Members
  • PipPipPip
  • 298 posts
  • Location:Cincinnati, OH

  • Flag: United States of America

  • Favorite Pinball: Star Trek NG, Indiana Jones, South Park

Posted 14 August 2014 - 07:12 PM

Yes you definitely want the 12v+ connected to the relay common (middle connector on relay output side) and connect the toy straight to ground.  The LEDwiz output will ground and complete the 5v supply to the relay coil.  Other than that it looks good!  These boards are legit and there is a seller on amazon selling then for around $11 each and includes around 40 dupont cables that fit onto the input puts.  No soldering needed :)







Also tagged with one or more of these keywords: SainSmart, relay board, missing tension