Power Shield (SKU:DFR0105)
Contents
1 Introduction
2 Specification
3 PinOut
4 Tutorial
4.1 Usage
4.2 Sample Code
4.3 Result
5 Trouble shooting
Introduction
Many Arduino projects may need more than two voltage supplies. When fed with 4.5-35V, this power
shield is able to provide a voltage range from 1.25-12V with 3A peak current. Ideal for servo control
and other non-standard components. With this shield, your Arduino can now have one power supply
for everything.
The power shield has a built-in voltage measuring function which maps the output voltage to Arduino
analog pin 0. It can be controlled by Arduino digital Pin 13 to switch on/off.
Specification
Supply voltage:4.5-35V
Output voltage:1.25-12V
Output current: 2A (3A peak)
Efficiency:90%
PinOut
Tutorial
Usage
There are two methods of operation with this shield, you can:
Use this shield to regulate external power supply to provide the proper voltage to your Arduino
Directly level it for servo/modules high power devices
Note for the jumpers near to the Power Input socket:
Both jumpers are on left side: This method will only provide regulated power to the PWROUT.
i.e. There is no voltage on Vin which is connected with Arduino .
Top jumper is on left side, bottom jumper is on right. This will provide regulated PWROUT,
adjusted via the blue potentiometer next to the PWROUT connector. Arduino Vin power will be
connected to the external power supply.
Stack up more power shield to add up different power level outputs. If your Power supply is
incompatible with your device and you need to provide power for other devices as well. Adding
another power shield will let you regulate a secondary voltage level as well.
Sample Code
This sample code needs an I2C LCD module to display the voltage.
#include
#include
LiquidCrystal_I2C lcd(0x27,16,2);
ars and 2 line display
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("www.DFRobot.com");
lcd.setCursor(0, 1);
lcd.print("Voltage: ");
lcd.setCursor(13, 1);
lcd.print("V");
}
void loop()
{
// set the LCD address to 0x27 for a 16 ch
int val;
float temp;
val=analogRead(0);
temp=val/4.092;
val=(int)temp;//
lcd.setCursor(9, 1);
lcd.print(temp);
/*
lcd.print(0x30+val/100,BYTE);
lcd.print(0x30+(val%100)/10,BYTE);
lcd.print('.');
lcd.print(0x30+val%10,BYTE);
*/
delay(100);
}
NOTE: If you have a multimeter, you can easily read the output voltage through output terminal
without the LCD and LCD displaying code. In other words, voltage regulation is independent.
Consider it as a normal shield with function of voltage regulation.
Result
LCD will display the output voltage from the Power shield.
Trouble shooting
For any questions and more cool ideas to share, please visit DFRobot Forum
Powered By DFRobot © 2008-2017
很抱歉,暂时无法提供与“DFR0105”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+193.46866
- 2+182.91604
- 国内价格 香港价格
- 1+225.539181+26.95050
- 3+199.060793+23.78650