Adult supervision regarding hardware requested
w4fej
Posts: 264
in Propeller 1
I plan on using three of these 8 relay modules in a radio switching application. My uninformed opinion is to parallel all the commons of the relay contacts and only select one relay at a time through software. I think something like the ULN2803A which can be cascaded (3 in a row) would allow me to send a 3 byte string to select which relay module gets selected and which relay gets energized.
Attached is a schematic of one of the modules. Am I on the right track here or should I/can I drive the relay modules directly with the Prop. There was a doc showing the this module interfaced to a Raspberry Pi. The Pi, like the Prop is a 3.3 VDC device and they show driving the module with an open collector NPN transistor. The module claims to be TTL compatible.
Any comments other than I'm ugly and my feet stink would be appreciated.
Mike B.
Attached is a schematic of one of the modules. Am I on the right track here or should I/can I drive the relay modules directly with the Prop. There was a doc showing the this module interfaced to a Raspberry Pi. The Pi, like the Prop is a 3.3 VDC device and they show driving the module with an open collector NPN transistor. The module claims to be TTL compatible.
Any comments other than I'm ugly and my feet stink would be appreciated.
Mike B.
Comments
https://www.parallax.com/sites/default/files/downloads/27114-Dual-Relay-Board-Kit-Schematic-A.pdf
My bad... Having said that I think I answered my own question.. sending three 8 bit bytes to the modules (3) with all 0's to a module will turn that module off... Any byte other than all 0's would turn the individual relay(s) on/off as needed..
Sound reasonable??
https://www.parallax.com/product/27113
https://www.parallax.com/product/27113
You could use three '595's in series, but all 0's would be turning all the relays on, not off. That might exceed the absolute max GND current of the '595's on power up. That can be avoided by having a pulldown pullup resistor on the '595 gate signal until the data is shifted out to the three '595's.
Better IMO to use three TPIC6595's ( a 595 + drivers), which can handle the current and all 0's turns all the relays off.
The relay boards are driven by opto isolators that are TTL compatible. I know if the Prop is RECIEVING a TTL signal that a current limiting resistor is needed but my question is can a TTL line be DRIVEN by the prop directly. The Prop will never see any relay current, only the optos.
I think that using the 74HC595 to drive the optos would be the easiest way without worrying about bothering the Prop. Whatcha think??
Also, the relay board has a jumper to make all the relays turn on low or turn on high depending how I have the jumper placed...
For my project only one relay board would be in use at any time. (For routing control signals to a particular radio)
Mike B.
The '595 is a good choice for this type of use as long as the current draw on any pin is 20mA or less, and the total current on the Vcc and GND pin of the '595 is less than 70mA.
That is not shown in the schematic you posted, and has no effect on the input to the optoisolators in any case. In the circuit you posted the outputs of the '595 have to be high for the relays to be off, so there is a very good chance that all the relays will be on when powering up. That will draw more current from the '595 (~160mA) than the absolute maximum Vcc and Gnd current rating (70mA). To prevent that the /G signal (pin 13 on the '595) must have a 3.9K pullup resistor on it, and be pulled low by a propeller pin after the relay control data has been shifted out and loaded to the output register of the '595.
I'm guessing that either one of 24 relays or one relay per board will be on at any particular time, which is fine. Just keep in mind that one '595 can only handle enough current to turn on three of the eight optoisolators on a board at any one time.
Hmmm...
Well that throws a monkey wrench into the works then... Here's the issue:
These radios all have 8 inputs from the microphone connectors and of course all 8 pins do different things, all most none of the pin numbers do the exact same thing as the other radios. My thought was to have the eight pin connectors come into my device and go directly to two 10 pin wire wrap headers. The second header would go directly to an 8 wire "buss" with the buss side having all the possible functions on it. Lets say that pin one of the buss was PTT (push to talk) but radio number 1's PTT line was on pin 3. If so install a jumper on radio 1's header from pin 3 to pin one and leave that relay "on" then key the radio from the prop or perhaps an open collector transistor or something. This way I would want to "steer" all the buss pins to any one radio at a time.. Some of the functions from the radios wouldn't be used so no need to energize all the relays.
"Better IMO to use three TPIC6595's "
Is this current issue of the 595's the reason you recommend the TPIC6595 ??
The whole purpose of this box is that I have three active radios and three mic's that get tangled and is generally a mess. Oh ya, this whole shooting mess with be controlled via a touch screen which I have working already. The mic's will be replaced with a Bluetooth headset module which I also have working.
Mike B.
PS: (By the way, I really appreciate you hanging in there with me on this deal as I'm nowhere close to being qualified to design hardware thus the need for "adult supervision !)
I am suggesting you use the TPIC chips instead of '595's because they give you the ultimate flexibility for switching the relays on or off from the propeller. They are a combination of a '595 and eight mosfet drive transistors in a single chip. That means they can easily handle the current to drive all the relays on at the same time, and can handle higher voltages as well. They also allow you to set any relay on or off as you choose.
Ok, this is a bit complicated to explain but here goes. Essentially I want to be able to select 8 lines to one of three radios. Think of the relay boards (3 of them) as an 8 pole, three position switch. Basically an 8 pin mic to the common part of the switch and the three radios on the perimeter of the switch. The relays themselves won't be doing anything other than providing a path from the 8 mic wires to the 8 inputs to the radios..
Using some flavor of three 595's in series I want to be able to activate only ONE of the boards.
I have PCBExpress software and I'll try and draw up a rough schematic of what I THINK will do the trick and post it here...
I don't really NEED this box but it has now become an obsession to complete with me lol...
Mike B.