Grove - Base shield v2

From Wiki
Jump to: navigation, search


Base Shield v2 450px-Base Shield v2 -1.png450px-Base Shield v2 -2 副本.pngBase Shield v2 Back


As an expansion board, Base Shield v2 has many Grove connectors, making it convenient for you to use Grove products together. And It is compatible with a series of Arduino products. Features

Power Compatible: Every Grove connector has four wires, one of which is Vcc. However, not every micro-controller main board needs a supply voltage of 5V, some need 3.3V. That's why we add a power switch to Base Shield v2. In this way, you can adjust the voltage of Vcc via this switch, making sure the voltage of Vcc is the same as supply power of the main board. So While using Arduino UNO with Base Shield v2, please turn the switch to 5v position; While using Seeeduino Arch with Base Shield v2, please turn the switch to 3.3v. Board Compatible: The number of pinout is the same as that of Arduino UNO R3. Added SDA and SCL pins that are near to the AREF pin and two other new pins placed near to the RESET pin, the IOREF that allow the shields to adapt to the voltage provided from the board. In future, shields will be compatible with both the board that uses the AVR, which operates with 5V and with the Arduino Due that operates with 3.3V. The second one is a not connected pin, that is reserved for future purposes. ---- According to Arduino UNO Attention: If using Base Shield v2 with Seeeduino V3, please solder the pads, P1 and P2. Introduction

Grove connectors: Base Shield v2 has sixteen Grove connectors. Specification Name Qty Analog port A0,A1,A2,A3 4 Digital port D2,D3,D4,D5,D6,D7,D8 7 UART port UART 1 I2C port I2C 4 LED indicator: The Green LED would be lighted up while powering. Application

We have used Grove - LED and Grove - Button with Base Shield v2. All Grove products have Grove connectors, and can be plugged onto Base Shield directly.

800px-Base Shield v2 -3.png


The circuit:
  • LED attached from pin 3 to ground
  • Button attached to pin 2 from +5V
  • 10K resistor attached to pin 2 from ground
  • Button Control An LED
  • /

int button = 2; //the Grove port No. you attached a button to int LED = 3; //the Grove port No. you attached an LED to void setup(){ pinMode(button, INPUT); //set button as an INPUT device pinMode(LED, OUTPUT); //set LED as an OUTPUT device } void loop(){ int buttonState = digitalRead(button); //read the status of the button if(buttonState == 1) //get pressed on digitalWrite(LED,1); //turn on the LED else digitalWrite(LED,0); //or not }