relay control with bs2pe
PeterR
Posts: 10
I have a BS2pe motherboard with a Power and I/O daughterboard mounted into socked A of the motherboard.· I want to control two external relays separately using the BS2pe/DB.· Would it be correct to connect to the interface header onthe daughterboard port(P8) for one relay and port(P9) for the second relay(using 3 pin connectors)?· If this is correct set up then:· What pins would be called out in the program to make them high(5v) and low(0v)?· Would a "do loop" program be adequate to do the task of turning them on and off with time delays?· I'm new to this and am trying to find some answers and save time.· thanks, PeterR
Comments
-Phil
Addendum:
* The same is not true of the AVR coprocessor pins, four of which are available on the PWR-I/O-DB (two being shared with BS2pe pins on the downstream side of their protection resistors). It's more likely you could drive a low-current relay coil from these pins through the AVR, using the default GPIO3 firmware. But you have to be careful to stay well below the AVR's output current limit of 40mA per pin. Also, A2 and A3 have more available drive current than A0 and A1, so they would be the best candidates.
Post Edited (Phil Pilgrim (PhiPi)) : 2/15/2008 8:02:42 PM GMT
-Phil
Now, as to your question about programming, the following should work fine:
This is assuming that the relay is connected between the output pin and Vss, both of which are available on the 3-pin PWR-I/O-DB headers.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 2/16/2008 3:07:35 AM GMT