background image

Arduino Starter Kit(Absolute Beginner)

From Wiki

Contents

1 Introduction
2 Getting Started with Arduino

2.1 Part1. Arduino Start blink
2.2 Part2. Button control LED
2.3 Part3. Vibration sensor control passive buzzer
2.4 Part4. PIR sensor control motor fan
2.5 Part5. LDR sensor control motor fan
2.6 Part6. Soil moisture sensor control relay
2.7 Part7. Encoder sensor control servo
2.8 Part8. Display Temperature and Humidity
2.9 Part9. Display Number Of IRremote

3 Download
4 How to buy
5 Licensing
6 External Links

Introduction

The Arduino Starter Kit provided by ElecFreaks is a great material to get users into learning step­by­step
conveniently. For this kit, there is no need for soldering, plug then use, the construction of the working
circuit can be done within one minute. It has 9 courses in total, content includes LED, infrared sensor,
servo, and IR remote control.

The kit uses the Freaduino UNO, which is the improved version of the official UNO and 100%
compatible with Arduino. It provides easy­to­use brick sensor interface, 3.3v or 5v IO switch, power
supply with DCDC circuit which support MAX 2A etc.

Getting Started with Arduino

Download IDE from : Arduino Download (http://www.arduino.cc/en/Main/Software) 
Download Code and Libraries: Arduino Starter Kit Demo Code (http://elecfreaks.com/estore/download/starterkit/starterkit.zip) 

Содержание Arduino Starter Kit

Страница 1: ...lecFreaks is a great material to get users into learning step by step conveniently For this kit there is no need for soldering plug then use the construction of the working circuit can be done within one minute It has 9 courses in total content includes LED infrared sensor servo and IR remote control The kit uses the Freaduino UNO which is the improved version of the official UNO and 100 compatibl...

Страница 2: ...nt led 13 the setup routine runs once when you press reset void setup initialize the digital pin as an output pinMode led OUTPUT the loop routine runs over and over again forever void loop digitalWrite led HIGH turn the LED on HIGH is the voltage level delay 1000 wait for a second digitalWrite led LOW turn the LED off by making the voltage LOW delay 1000 wait for a second Part2 Button control LED ...

Страница 3: ...lWrite led LOW turn the LED off LOW is the voltage level break End of the while loop Back to the main loop Part3 Vibration sensor control passive buzzer PART3 Vibration sensors CONTROL Passive buzzer Knock on the table the buzzer will ring int vibration A0 The A0 pin read Vibration sensors int buzzer 6 The D6 pin driving the Passive buzzer the pin must PWM pin 3 5 6 9 10 11 on UNO void setup pinMo...

Страница 4: ... void setup pinMode pir INPUT initialize the PIR pin as an input pinMode motor OUTPUT initialize the motor pin as an output void loop if digitalRead pir HIGH digitalWrite motor HIGH delay 5000 wait for 5000 microsecond digitalWrite motor LOW turn off the motor Part5 LDR sensor control motor fan PART5 Photodiode sensor CONTROL Motor Fan According to the intensity of light motor speed control ...

Страница 5: ...speed control Part6 Soil moisture sensor control relay PART6 Soil moisture Sensor CONTROL Relay According to the intensity of light motor speed control int soil A0 The A0 pin read Soil moisture int relay 6 The 6 pin driving the Relay void setup pinMode soil INPUT initialize the soil pin as an input pinMode relay OUTPUT initialize the relay pin as an output void loop int value analogRead soil if va...

Страница 6: ...lize the encodeB pin as an input servo attach servos attachInterrupt 0 start FALLING set encodeA interrupt this board interrupt0 is pin 2 void loop void start if digitalRead encodeB HIGH angle 30 else angle 30 if angle 180 angle 180 else if angle 0 angle 0 servo write angle Part8 Display Temperature and Humidity Part 8 USE DHT11 Temperature and humidity sensor and Segment display Temperature and h...

Страница 7: ...ommend Part9 USE IRreceive and IR remote Displayed on the segment code include IRremote h load IRremote library include TM1637 h load Segment display library define CLK 4 pins definitions clk for TM1637 define DIO 5 pins definitions dio for TM1637 TM1637 tm1637 CLK DIO get Segment display controler IRrecv ir A0 an instance of the IR receiver object A0 is IRreceive pin decode_results result contain...

Страница 8: ......

Отзывы: