Which Relay boards work well with a BS1 and BS2?
ppillard
Posts: 22
Hello all!
I do a lot of weird stuff to automobiles, so I like the 12V VIN option of the BS1 and BS2. I really like the option of buying relay boards with 4 or 8 or 16 channels.
What brand relay boards do you recommend to work with the BS1 and 2? Thanks for your input.
I do a lot of weird stuff to automobiles, so I like the 12V VIN option of the BS1 and BS2. I really like the option of buying relay boards with 4 or 8 or 16 channels.
What brand relay boards do you recommend to work with the BS1 and 2? Thanks for your input.
Comments
http://www.sainsmart.com/8-channel-dc-5v-relay-module-for-arduino-pic-arm-dsp-avr-msp430-ttl-logic.html
There are coding examples available in the BS1 application notes for using the 74HC595 and 74HC165. It is possible to daisy-chain multiples of this board, but you have to wire up a jumper from the 74HC595 Q7' output on one board to the 74HC595 input on the next board. For more than 8 inputs, the "daisy-chain" input is already available on the board.
Mark, I have a Sainsmart 4 relay board in front of me that I have hooked up to my BS2 as I experiment with it. It is partially what prompted my post. It is failing and frustrating me badly. I have a simple program that cycles all the relays one at a time, and their respective LED's light up as they should, indicating the program is functioning, and you can hear the relays click. However, when I check for continuity a the NO and COM points, I get nada. Each relay is trying to cycle and definitely cutting the NC circuit, but not quite making it to the NO. My code is as follows:
' {$STAMP BS2}
' {$PBASIC 2.5}
Main:
RLY1 PIN 0 'Declare Relay Out Pin
RLY2 PIN 1 'Declare Relay Out Pin
RLY3 PIN 2 'Declare Relay Out Pin
RLY4 PIN 3 'Declare Relay Out Pin
LOW 0
PAUSE 2250
HIGH 0
LOW 1
PAUSE 2250
HIGH 1
LOW 2
PAUSE 2250
HIGH 2
LOW 3
PAUSE 2250
HIGH 3
GOTO Main
END
What am I doing wrong?
I was looking into that board, Mike, and it looks like a sweet setup. Does it come with both mechanical relays and SSR's or do you opt for one or the other when you purchase?
RLY1 PIN 1
DO
DEBUG ? IN2
IF (IN2 = 0) THEN
DO UNTIL (IN2 = 1)
HIGH 1
LOOP
LOW 1
PAUSE 100
ENDIF
LOOP
I figured out what I did wrong, and trust me, I am a complete idiot! Thanks for the help!
I'm embarrassed to say that this is the case. I've hooked up about a thousand relay contacts in my life, and I totally took it for granted that I had hooked them up correctly, so much so that it never occurred to me that they might be a problem. I stumbled across a YouTube video of a guy hooking one up and clearly pointing out which contact was COMM, at which point I slapped myself in the forehead so hard I left a bruise (mild exaggeration).
Thanks for the vids!
I tried powering the 30 amp directly from the Basic Stamp, but the coil requires more voltage and amperage than a Basic Stamp can kick out. Are there any higher amperage relays out there that will fire directly from the Basic Stamp?
http://delphi.com/shared/pdf/ppd/ee/solid-state-relays.pdf
http://www.rambal.com/descargas/libros/Nuts and Volts/1/Silicon Steroids for your Stamp.pdf
http://www.futureelectronics.com/en/technologies/electromechanical/relays/solid-state-relays/Pages/2474914-84134870.aspx?IM=0
+1. Looks like most of those 30-40 amp auto lighting relays only take a couple hundred milliamps of coil current, so you could easily trigger with a small switching transistor, or better yet, trigger up to 8 using a darlington array ULN2803. Simple and cheap.
This dollar board on Ebay is ULN2003-based and is all wired up to control 4 relays: http://www.ebay.com/itm/Stepper-Motor-Driver-Module-ULN2003-for-Arduino-5V-4-phase-5-line-28BYJ48-EK-/181462571310?pt=LH_DefaultDomain_0&hash=item2a4003192e
Edit: Looking more closely at the photo, it may control up to 7 relays on pins A-G. Seven input pins.