![]() ![]() If you're only going to use your shield with a Mega-style board, snip off the A4 and A5 pins from the shield and run jumper wires over from shield A4 to D20 and shield A5 to D21. Furthermore, the I2C pins are located at D20 (SDA) and D21 (SCL) - not A4 and A5. If you are using a Freetronics EtherMega board - you must apply power to the shield via the terminal block. Any power you apply to your Arduino will then be automatically sent through to the relays connected to the shield. You do not need any power supply connected to the screw terminals on the shield. Place the jumper labelled "POWER INPUT CONNECT TO VIN", and connect an appropriate power supply to your Arduino. In this option the power source used to run your Arduino is also used to power the relays. Option 3: Pass power from Arduino power supply to relays. You do not need any power supply connected directly to your Arduino. Note that with this option you must be careful to use a power supply that matches the limits of the Arduino, so a supply of around 7V to 9Vdc is recommended. Any power you apply to the screw terminals will then be automatically sent through to the VIN input on the Arduino so that its onboard power supply can regulate it to 5V. Place the jumper labelled "POWER INPUT CONNECT TO VIN", and connect an appropriate DC power supply to suit your relays using the screw terminals marked "INPUT 5-24Vdc". In this option the power source used to supply the relays is also used to supply the Arduino. Option 2: Pass power from relay supply to Arduino. The negative ("-") power supply connection is linked to GND on the Arduino to provide a common 0V reference, and the positive ("+") power supply connection goes to the relays. Leave the jumper labelled "POWER INPUT CONNECT TO VIN" off the board, and connect an appropriate DC power supply to suit your relays using the screw terminals marked "INPUT 5-24Vdc". In this option the power supply for the Arduino and the power supply for the relays are kept separate, so you need two power supplies: one for the Arduino, one for the relays. This is the method recommended for most applications. ![]() ![]() There are several options for supplying power to the relays connected to the shield, depending on the settings of the jumper labelled "POWER INPUT CONNECT TO VIN" and where you connect your power supply. Relay 1 -: Connect to the - side of the coil of your first relay. Relay 1 +: Connect to the + side of the coil of your first relay. INPUT 5-24 Vdc -: Connect to the negative (-) lead of the power source for your relays. INPUT 5-24 Vdc +: Connect to the positive (+) lead of the power source for your relays. You do not need to do that when using the 8-Channel Relay Driver Shield, because the protection diodes are built in to the shield itself. In many tutorials about relays you will see instructions that you must include a protection diode across the relay terminals. Connect from 1 to 8 channels to your relays as required. Relays are connected directly to each output channel. Mount the 8-Channel Relay Driver Shield on your Arduino-compatible board. No other pins on the Arduino are used by the shield other than power, so they are all available for connection to other devices in your projects. The shield uses Arduino analog pins A4 and A5 for "I2C" serial communications with your sketch. You can use any of the output channels independently, so simply leave any unused channels disconnected. The 8-Channel Relay Driver Shield makes it simple and convenient to drive up to 8 loads such as 12V relays from just 2 pins of your Arduino compatible board or other microcontroller. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |