342063 Bluetooth Kit (Contents) Arduino Uno r3 compatible...
-
Author
nguyendien -
Category
Documents
-
view
222 -
download
0
Embed Size (px)
Transcript of 342063 Bluetooth Kit (Contents) Arduino Uno r3 compatible...

342063
Bluetooth Kit (Contents)
Arduino Uno r3 compatible board
1x 6-cell AA Battery pack
1x I/O Expansion
1x Buzzer (active)
1x Buzzer (passive)
1x 10K Ω Pot
1x XBee Bluetooth Module
1x LED module - 3W white
1x LED module - Red
1x LED module -Green
1x LED module -Blue
1x Light Sensor (photo resistor)
1x Soil Moisture Sensor
2x Servo Motor
1x Quad (4-channel) 5v Relay
1x Smoke Sensor
1x 2x16 LCD Display
1x USB cable
Dupont connector wires

Inland Uno R3:
UUUNO R3 Summary:
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) of which 0.5 KB used by bootloader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz
Length 68.6 mm
Width 53.4 mm
Weight 25 g
See http://arduino.cc for detailed specifications, overviews, schematics, etc. Core functions, code examples, and links to many of the device libraries can be found in the learning section; refer to the manufacturer's site if using other add-on shields or sensors.
The latest Arduino Integrated Development Environment (IDE) necessary for programming your UNO R3 board can be obtained at http://arduino.cc/en/Main/Software (the Download menu choice on Arduino.cc) Examples for many basic components can be found under the Examples menu. As you install libraries for additional shields, new examples may be available. Follow the getting started guide found on the arduino.cc web site. Click Learning, and select Getting started. Click on the link for Windows, Mac OS X, or Linux for more specific directions. Getting Started:
1. Download the Arduino Environment (IDE) and install or unzip/extract the application directory.
2. Connect the UNO board to one of your computer's USB port.
3. Install the drivers (If the computer does not automatically download and install the necessary USB drivers, point the hardware setup to the "drivers" directory of the Arduino IDE application.)
4. Launch the Arduino IDE application 5. Open a sketch example such as "Blink" 6. Select your Board from the Tools menu. 7. Select the Serial Port used by the board 8. Upload the sketch to the board
Sketch (code) Examples are included as part of the IDE. If you install device libraries for other components or shields,
additional examples may be included and will show up in the list under the IDE File menu.
(See: http://arduino.cc/en/Tutorial/HomePage for an overview of the core functions and libraries.)

Components:
LEDs
LED - Light Emitting Diode modules (1 blue, 1 red, 1 green "straw-hat" LEDs)
Using a 3-pin sensor cable, you should have a black wire for GND, red wire for VCC (power +), and yellow for (signal) IN.
To use Pulse-Width-Modulation to fade the brightness of the LED, use one of the PWM supported pins, such as D11. Use the "Fade" sketch to test after changing the LED pin reference to match the connected pin number. (File, Examples, 01.Basics, Fade)
LED module - 3W white The bright white LED module has three pin connections:
G = ground
+ = +5V
S = signal The 3W White LED module uses a surface-mount transistor to control the brightness of the LED while drawing minimal current from the Arduino signal pin output (S). The Arduino IDE includes several examples for use with LEDs, see:
File, Examples, 01.Basic, Fade
File, Examples, 01.Basic, Blink
Switches
4-Channel 5-Volt Relay module Pin Connections:
VCC - connect to 5V+
GND - connect to ground (-)
IN1 - signal in for relay #1
IN2 - signal in for relay #2
IN3 - signal in for relay #3
IN4 - signal in for relay #4
COM-GND (jumper) connects signal ground to power ground. To isolate external power from the signal voltages, remove jumper and connect your signal ground to the pin marked "COM"
Three-screw terminal blocks: Center is common. Line art next to the relay number indicates the switching terminal to the Normally Closed (ON) terminal and the third connection for the Normally Open (OFF) terminal. When a relay engages, the NC contact will open, the NO contact will close.

LCD
I2C 1602 LCD - 2-line, 16-character LCD display (I2C) with backlight. 4 pin connections are required: 5V (Vcc), Ground, and two Analog lines (i.e. SDA-A4, SCL-A5). For Arduino, you will need several libraries installed: Wire.h, LCD.h, LiquidCrystal_I2C.h See: http://www.hessmer.org/blog/2014/01/11/arduino-compatible-iic-i2c-serial-2-5-lcd-1602-display-module/
Sensors and modules
Passive & Active buzzers Use as a speaker, buzzer or other audible indicator. The Active buzzer has a protective tag over the opening, note the + identifies the positive pin of the device, as the rear is covered with epoxy. The active buzzer will generate a tone as soon as power is supplied to the device.
Passive buzzers must have a modulated signal supplied to the device (like a speaker) and would only generate a "click" if DC voltage is applied. Play a tone or melody using the passive buzzer:
http://osepp.com/learning-centre/start-here/101-basic-starter-kit/tutorial-6-using-buzzer-to-play-a-melody/
http://www.arduino.cc/en/Tutorial/melody
Smoke Sensor (MQ2) The MQ-2 sensor will produce an analog voltage-out in response to the smoke or flammable gas concentration level (with adjustable sensitivity using the on-board potentiometer). Three connections: OUT - signal (adjustable), VCC - +5v, GND - Ground (-). For a list of MQ-2 and similar sensors, see: http://playground.arduino.cc/Main/MQGasSensors
For sample code, see: http://arduinotronics.blogspot.com/2012/03/gas-sensor-tutorial.html
http://vanceance.blogspot.com/2013/04/gas-sensor-with-arduino.html

Soil Moisture Sensor Three connections - = Ground, + = 5V, S = analog signal that will vary based on how much of the contacts are under water or in contact to moist soil. See: http://arduinosensors.com/index.php/soil-moisture-sensor-interface-with-arduino-uno/
http://www.electroschematics.com/6519/simple-soil-moisture-sensor-arduino-project/
http://www.dfrobot.com/wiki/index.php?title=Moisture_Sensor_(SKU:SEN0114)
Motors
Servo examples are include with the IDE, see: http://arduino.cc/en/Tutorial/Knob
http://arduino.cc/en/Tutorial/Sweep
Servo motor Note that Servo motor color schemes may vary: Brown / Black = ground Orange / Red = +5V Yellow / White = signal (use digital PWM connection.) Small servo motors may be connected directly to the Arduino controller, or you may wish to provide separate power to the servos and only connect the data and a common ground. When using the I/O expansion shield, small servo motors can take advantage of the additional VCC and Ground pins provided next to the digital PWM connections:

Resistors
10K Potentiometer Like the other sensor modules, the potentiometer module connects to ground, +5V, and one of your Arduino signal pins. Using the Arduino to detect an adjustable input, voltage will appear to be variable from 0-5V and the potentiometer is adjusted. Resistance between outer pins is 10K ohms. Resistance between one outer pin and the center (wiper) pin is 0-10K ohms based on position.
Photo Resistor Light Sensor Three connections: Out - Signal (analog voltage level), VCC (+5v), and GND (Ground.) Resistance across the pins will be 1 meg ohm or higher in darkness, dropping to 60 ohms or less in bright light. As a result, the analog signal level will be higher in bright light, lower in darkness. For example code, see: http://playground.arduino.cc/Learning/PhotoResistor
https://tkkrlab.nl/wiki/Arduino_KY-018_Photo_resistor_module
http://www.cutedigi.com/articles/sensor-ky018-arduino-sample-code.html
Bluetooth and I/O Expansion
I/O Expansion Shield The I/O Expansion Shield passes the Arduino pins from the Uno header to rows of pins. In addition to the data connections, 5v VCC and Ground connections are provided for each data pin, to simplify connecting sensors or servo motors to the shield. A pair of headers for XBee expansion are located on the board. Screw-terminal blocks are provided to provide separate power for servo motors, power-in connections to power the shield and Arduino, and terminal block connections for RS-485 / RS-232 serial I/O (configurable by the 3 jumper-blocks near the connectors.) Additional serial status, and both 5v pins and headers and 3.3v pins are also present.

XBee Bluetooth Module The Bluetooth module attaches to the top of the IO Expansion shield, and the I/O Shield attaches to the Arduino headers. In this configuration, the receive and transmit data pins of the BlueTooth Bee are connected directly to the Rx and Tx data pins of the Arduino. When the Arduino is connected to a computer via USB, the data being sent/received is also on these same pins. You will not be able to upload your sketch to the Arduino if the XBee module is connected, since it will echo all data back to the PC. When creating your code for the Arduino, make sure to set the RX and TX pins to use 1 and 2, and the baud rate to 9600. Since these are the same pins used to program your UNO, you must disconnect the BTBee while uploading your sketch, and then power off, connect the shield, and power back on to use it. For an example of HC-06 code to receive data or control the onboard LED, see: http://www.arduino-hacks.com/adding-bluetooth-capability-project-arduino-hc-06/ (Note: The HC-06 is a Bluetooth slave device and does not support being used as a "master" to connect wirelessly to control other devices.) Android (multiple apps are available on Google Play):
Arduino Bluetooth Controller by Estacado's ltd. Arduino Bluetooth Control by Amphan Itead Studio has a similar BTBee device, and has an
open-source debug tool to check communication. See: http://blog.iteadstudio.com/make-arduino-talk-with-android-by-bluetooth/
Additional Resources: Several sites have hook-up and information and code examples on a variety of sensors, similar to, and including the ones found in this kit. Some sensors may be loose components or integrated into different board designs. If the documented sensor uses the same electronic component, then any code sketch documented may work with the sensors found in your kit. However, depending on the circuit design, the adjustments or sensitivity range may need to be modified slightly to achieve the desired result. Sites documenting these and other sensors include:
Arduino Playground Examples and additional libraries (code sketches available from the IDE File, Examples menu): http://www.arduino.cc/en/Tutorial/HomePage
Arduino Playground Tutorials: http://playground.arduino.cc/Learning/Tutorials
Forum.HobbyComponents.com: http://forum.hobbycomponents.com/viewtopic.php?f=73&t=1320
LinkSprite Wiki - Advanced Sensors Kit for Arduino: http://linksprite.com/wiki/index.php5?title=Advanced_Sensors_Kit_for_Arduino
TkkrLab.nl (Tukkerlab)Wiki: https://tkkrlab.nl/wiki/Arduino_37_sensors
University of Rhode Island (PDF coursework): http://www.ele.uri.edu/courses/ele205/Arduino%20-%20Learning.pdf
Freeduino.org: http://www.freeduino.org/
Arduino for Projects (PDF with 1193 projects): http://duino4projects.com/arduino-projects-pdf/

Lady Ada - Introduction to Arduino- step-by-step lessons: http://www.ladyada.net/learn/arduino/index.html
Tronixstuf Arduino Tutorials: http://tronixstuff.com/tutorials/
Earthshine Electronics Beginners Guide to Arduino: https://docs.google.com/file/d/0Bw_ruMOtRDDgNXI3OTFGZXhIZ2c/edit?usp=sharing
Sheepdog's Guide to Arduino Programming: http://sheepdogguides.com/arduino/FA1main.htm
1/4 Watt Resistors
Resistors may come with 4 or 5 identifying color bands. (When in doubt, use a multimeter to verify the value.)