I want use this board and PiFace Relay+ to drive a 12 V DC motor, is that possible ?
I want use this board and PiFace Relay+ to drive a 12 V DC motor, is that possible ?
If all you need is ON/OFF then any PI compatable relay board will work and you can often have uptp 24V and 5A (PiFace Digital for instance)
If you need to vary the speed then you need to be able to PWM the supply to the motor or use the PiFace Motor but this also requires the new PiFace Digital card, this is not a bad solution if you want to play with other things. This new digital card has smaller relays on it, hense the limit of 1A rather than 5 on the regular / older card
there are many ways to get this job done as the folks above have already shown / explained
To simply answer your question. Yes it is possible and with this board
you will have on off control with the relay and this will handle the motor you mention
with this board
that plugs into the above board you get the H Bridge control
and this one
Gives you more relays instead
Choice depends on what you want to do with the motor... read all the above replies
basically the PI Face digital uses a SPI to 16Bit expander chip on the main board, 4 bits are to drive the 4 relays included, the other pins are for the expander (Relay or HBridge) and then a few left for general GPIO stuff
Peter, am I wrong or there unused GPIO pins on the pi ?
Peter, am I wrong or there unused GPIO pins on the pi ?
There are plenty of unused pins on th ePI when you use the PiFace Digital as this device is using a SPI to Parallel GPIO chip (MCP23S17) http://ww1.microchip.com/downloads/en/DeviceDoc/21952b.pdf
so pretty much all the PIFace boards only use the SPI connections leaving all the other GPIO unused
Great Peter, it was what I though. So with only one PiFace digital board, as a matter of fact Weng has a bunch of digital pins to do what he needs while for the motor control can be used the standard Pi pins that are free. I have used the PWM anywhere library for the raspberry PI and it works fine as far as I know making tests with micro servos. Connecting them on the GPIO preferred pins.
Enrico