DFR0100

DFR0100 Datasheet


DFRduino Beginner Kit For Arduino V3 SKU:DFR0100

Part Datasheet
DFR0100 DFR0100 DFR0100 (pdf)
PDF Datasheet Preview
DFRduino Beginner Kit For Arduino V3 SKU:DFR0100

Contents
• 1 Introduction
• 2 Getting Started with Arduino
• 3 Tutorial

Blinking a LED SOS Beacon Traffic Light Fading Light RGB LED Alarm Temperature Alarm Detecting vibration

Ambient Light controlled LED Moving a Servo Interact with Servo RGB Light Dimmer Motor Fan Infrared controlled Light Infrared controlled LED Matrix
• 4 FAQ

Introduction

Welcome to the electronic interaction world! DFRobot proudly presents the Arduino beginner kit for those who are interested in learning about Arduino. Starting from basic LED control to more advanced IR remote control, this kit will guide you through the world of microcontrollers and physical computing. A DFRduino UNO R3 Compatible with Arduino Uno , the most stable and commonly used Arduino processor, together with DFRobot's best selling prototype shield are included in this kit.

Getting Started with Arduino

Introduction What Arduino is and why you'd want to use it. Installation Step-by-step instructions for setting up the Arduino software and connecting it to an Arduino Uno. Windows Mac OS X Environment Description of the Arduino development environment and how to change the default language. Libraries Using and installing Arduino libraries.

Tutorial

Blinking a LED
/* # Description # Turns on an LED on for one second, then off for one second, repeatedly.
*/ int ledPin = 10 void setup
pinMode ledPin, OUTPUT void loop
digitalWrite ledPin,HIGH delay 1000 digitalWrite ledPin,LOW delay 1000 ;

SOS Beacon

The connection diagram is the same with Blinknig a LED tutorial.
/* # Description # Send SOS Beacon by led
*/ int ledPin = 10 void setup
pinMode ledPin, OUTPUT void loop
// S ... three dot for int
digitalWrite ledPin,HIGH delay 150 digitalWrite ledPin,LOW delay 100 ;
delay 100 // O --- three dash
for int digitalWrite ledPin,HIGH delay 400 digitalWrite ledPin,LOW delay 100 ;
delay 100 ;
//S ... three dot for int digitalWrite ledPin,HIGH delay 150 digitalWrite ledPin,LOW delay 100 ;
delay 5000 ;

Traffic Light
/* Traffic Light This code copied from the book Beginning-Arduino.
*/ int carRed = 12 //assign the car lights int carYellow = 11 int carGreen = 10 int button = 9 //button pin int pedRed = 8 //assign the pedestrian lights int pedGreen = 7 int crossTime =5000 //time for pedestrian to cross unsigned long changeTime;//time since button pressed void setup
pinMode carRed, OUTPUT pinMode carYellow, OUTPUT pinMode carGreen, OUTPUT ;
pinMode pedRed, OUTPUT pinMode pedGreen, OUTPUT pinMode button, INPUT digitalWrite carGreen, HIGH //turn on the green lights digitalWrite pedRed, HIGH ;
void loop int state = digitalRead button //check if button is pressed and it is over 5 seconds since last butt
on press if state == HIGH && millis - changeTime > //call the function to change the lights changeLights ;
void changeLights digitalWrite carGreen, LOW //green off digitalWrite carYellow, HIGH //yellow on delay 2000 //wait 2 seconds
digitalWrite carYellow, LOW //yellow off digitalWrite carRed, HIGH //red on delay 1000 //wait 1 second till its safe
digitalWrite pedRed, LOW //ped red off digitalWrite pedGreen, HIGH //ped green on
delay crossTime //wait for preset time period
//flash the ped green for int x=0 x<10 x++
digitalWrite pedGreen, HIGH ;
delay 250 digitalWrite pedGreen, LOW delay 250 ;
More datasheets: AT91FR40162SB-CU | AT91FR40162SB-CU-999 | JN2 | NFT2-BK | NFT2-WH | 5103 | CY7C1049BNL-17VC | 18480EZ | MMBT3904T-7-F | MMBT3904T-7


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0100 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0100 508641