Introduction

The Cookie I/O expansion shield is designed for beginners to electronics. The shield is directly compatible with the Boson kit. We have implemented fail-safe systems to prevent bad connections from destroying the board. The board is protected from reverse voltage input. And connector ports only accept connections the correct way around. These fail safes make the board ideal for beginners and classroom settings - no need to worry about your students making the wrong connections!

Features

Pin Definitions

DFR0375注释图形.png

Details

Digital & Analog

DFR0375整个图形.png

"D": represents digital signal
"A": represents analog signal

One of the biggest benefits of the I/O expansion shield is increased power and GND pins, allowing you to connect more sensors.

* Green: digital signal
* Blue: analog signal
* Red: VCC
* Black: GND

dfr0375-senor.png

3.3V / 5V Power Switching

The shield is compatible with 3.3V and 5V logic. Select desired voltage by shorting either the 3.3 or 5v pins as pictured.

DFR0375电源切换.png

You will need:


int light=0;

void setup() {
  // put your setup code here, to run once:
  pinMode(3,OUTPUT);
  Serial.begin(9600);
}
void loop() {
  // put your main code here, to run repeatedly:
  light=analogRead(0);
  Serial.println(light);
  if(light>100)
    digitalWrite(3,HIGH);
  else  digitalWrite(3,LOW);
  delay(100);
}

When there is low ambient light, the LED will turn ON.
DFR0375.png

FAQ

For any questions/advice/cool ideas to share, please visit DFRobot Forum.

More

Schematic Layout SVG file

DFshopping_car1.png Get it from DFRobot Store or DFRobot Distributor.