1.51k likes | 2.63k Vues
Arduino Board: Arduino UNO. Arduino Programing Environment: Arduino 0022 Download @ http://arduino.cc/en/Main/Software. *Download Arduino Software from Arduino.cc and unzip the folder to your computer. A file within the folder called Arduino, allows you to launch the programming environment.
E N D
Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022 Download @ http://arduino.cc/en/Main/Software .
*Download Arduino Software from Arduino.cc and unzip the folder to your computer. A file within the folder called Arduino, allows you to launch the programming environment. *You need to install a driver that comes with Arduino to be able to communicate with the board
Digital Input/Output Pins Pins with ~ are PWM [Analog Output] Transmitter/Receiver Serial Connection GRD 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 USB 7-12 v 3 v 5 v GRD Analog Input Pins
Other Hardware Choices-Boards Arduino BT The Arduino BT is an Arduino board with built-in bluetooth module, allowing for wireless communication. LilyPad Arduino The LilyPad Arduino is a microcontroller board designed for wearables and e-textiles. It can be sewn to fabric and similarly mounted power supplies, sensors and actuators with conductive thread. Arduino Nano Arduino Nano is a surface mount breadboard embedded version with integrated USB. It is a smallest, complete, and breadboard friendly. It has everything that Diecimila has (electrically) with more analog input pins and onboard +5V AREF jumper.
Other Hardware Choices-Sheilds Xbee Shield The Xbee shield allows an Arduino board to communicate wirelessly using Zigbee. The module can communicate up to 100 feet indoors or 300 feet outdoors (with line-of-sight). It can be used as a serial/usb replacement or you can put it into a command mode and configure it for a variety of broadcast and mesh networking options. The Xbee shield was created in collaboration with Libelium, who developed it for use in their SquidBee motes (used for creating sensor networks). Adafruit Servo/Stepper/DC Motor shield A shield that can control 2 hobby servos and up to 2 unipolar/bipolar stepper motors or 4 bi-directional DC motors. Battery Shield A shield from Liquidware that connects to the back of the Arduino, with a USB-rechargable lithium ion battery that can power an Arduino for 14-28 hours depending on the circuit Liquidware TouchShield OLED touch screen shield. Adafruit Wave shield Plays any size 22KHz audio files from an SD memory card for music, effects and interactive sound art Adafruit GPS & Datalogging shield Connects up a GPS module and can log location, time/date as well as sensor data to an SD memory flash card. Adafruit XPort/Ethernet shield Allows use of an XPort module for connecting to the Internet as a client or server.
Other Hardware Choices-Sheilds Adafruit GPS & Datalogging shield Connects up a GPS module and can log location, time/date as well as sensor data to an SD memory flash card. Adafruit XPort/Ethernet shield Allows use of an XPort module for connecting to the Internet as a client or server. http://ladyada.net
Other Hardware Choices-Sheilds Liquidware TouchShield OLED touch screen shield. http://www.liquidware.com Adafruit Servo/Stepper/DC Motor shield A shield that can control 2 hobby servos and up to 2 unipolar/bipolar stepper motors or 4 bi-directional DC motors. http://ladyada.net
USB Cable A to B - 6 and 10 Feet/ USB miniB Cable - 6 Foot This USB Cable type is the one that allows for connecting normal Arduino Boards to the computer. They come in black and white and in various lengths. For Arduino Mini Pro and Lilypad you need USB miniB for connecting to computer. http://www.sparkfun.com/commerce/product_info.php?products_id=512 http://www.sparkfun.com/commerce/product_info.php?products_id=513 http://www.sparkfun.com/commerce/product_info.php?products_id=598
USB Cable Extension - 6 Foot/ USB Cable A to A - 6 and 10 Foot These extension cables have a type A male connector on one end that plugs into any computer. The opposing end has a female type A connector allowing a second USB cable to be inserted. This allows as many cables to be daisy chained together as needed. May come in White or Black, and in 6 feet. For more extension you can combine USB cable extension with a USB A to A cable. http://www.sparkfun.com/commerce/product_info.php?products_id=517 http://www.sparkfun.com/commerce/product_info.php?products_id=516 http://www.sparkfun.com/commerce/product_info.php?products_id=515
Arduino Boards This is the new Arduino Uno. In addition to all the features of the previous board, the Uno now uses an ATmega8U2 instead of the FTDI chip. This allows for faster transfer rates, no drivers needed for Linux or Mac (inf file for Windows is needed), and the ability to have the Uno show up as a keyboard, mouse, joystick, etc. The Arduino Mega is a microcontroller board based on the ATmega2560. It has 54 digital input/output pins (of which 14 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. The Mega is compatible with most shields designed for the Arduino Duemilanove or Diecimila. This is the new Arduino Mega 2560. In addition to all the features of the previous board, the Mega 2560 now uses an ATmega8U2 instead of the FTDI chip. This allows for faster transfer rates, no drivers needed for Linux or Mac (inf file for Windows is needed), and the ability to have the board show up as a keyboard, mouse, joystick, etc. It also has twice as much flash memory. Other variaitions of arduino are Arduino pro, Arduino Mini Pro and Lilypad Arduino . http://www.sparkfun.com/commerce/product_info.php?products_id=9950 http://www.sparkfun.com/commerce/product_info.php?products_id=9949 http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=148
Arduino Project Enclosure/ Crib for Arduino - Metal Enclosure The Arduino enclosure allows you to easily enclose your Arduino main board, Arduino Mega, or any other board that fits the Arduino foot print (FEZ Domino, FEZ Panda, Netduino, etc). It simply presses shut, so you don't have to worry about screws or fasteners. It has room internally for an Arduino and a shield. It even has a removable tab mated for use with an Ethernet shield. It also has a snap-in compartment in the back for accessing switches or connections or battery access. Made from sturdy, lightweight powder-coated aluminum, the Crib for Arduino can accommodate either an Arduino Duemilanove or Arduino Mega with head room to spare for a shield like an Ethernet shield. This enclosure weighs only 5.6 oz (159 g) and is structurally very strong. The baseplate is pre-drilled with hole patterns for both Arduino boards(Main and Mega so you get perfect alignment and no hole drilling for board mounting. Use the snap-in standoffs to quickly mount your board and go. Flanges on the lid let you mount your project anywhere with just 4 screws. Bolt it securely under your desk or to the ceiling! Or just insert four rubber feet (not included) into the flange holes so your Arduino project can sit on your desk and not scratch it. http://www.sparkfun.com/commerce/product_info.php?products_id=10088 http://www.sparkfun.com/commerce/product_info.php?products_id=10033
Wall Adapter Power Supply - 9VDC 650mA/ Wall Adapter Power Supply - 12VDC 600mA 9VDC is High quality switching 'wall wart' AC to DC 9V 650mA wall power supply manufactured specifically for Spark Fun Electronics. These are switch mode power supplies which mean the output is regulated to 9V and the capable output current is much higher (650mA!). These will power most projects that don't require more than 650mA of current. Center-positive 5.5x2.1mm barrel connector. Works with 100-240VAC inputs. 12VDC is a high quality AC to DC 'wall wart' which produces a regulated output of 12VDC at up to 600mA. These are switch mode power supplies which means the output is regulated to 12V and the capable output current is much higher (600mA!). These will power most projects that don't require more than 650mA of current. Center-positive 5.5x2.1mm barrel connector. Works with 100-240VAC inputs. http://www.sparkfun.com/commerce/product_info.php?products_id=298 http://www.sparkfun.com/commerce/product_info.php?products_id=9442
9V to Barrel Jack Adapter Plug a 9V battery into one end and connect the other end to anything with a 5.5x2.1mm, center-positive barrel jack. Use this cable to battery-power any device that needs 9V and has an on-board barrel jack - it works great for Arduinos, development boards, evaluation boards, and more! http://www.sparkfun.com/commerce/product_info.php?products_id=9518
Battery Holder - 4xAA to Barrel Jack Connector This is a simple 4 cell AA battery holder. The 5 inch cable is terminated with a standard 5.5x2.1mm, center positive barrel jack connector. The connector mates with the barrel jack on the Arduino (among a number of other products) allowing you to easily make your project battery powered. Note: the average voltage regulator has about 1V of dropout (but can vary greatly). This pack, with normal alkaline batteries, will output ~5.5V causing a normal 5V board to run at around 4 to 4.5V. This depends a lot of what board and processor you are using with the battery pack. Please consult your datasheet. http://www.sparkfun.com/commerce/product_info.php?products_id=9835
9V Solar & battery power supply The 9V Solar & battery power supply is specially designed for Arduino and other microcontroller project alike. It can be used as a portable power supply, and is capable of delivering 9V, 500mA power. It can be charged by your PCB USB port or by sun-light or in-door light sources. It has following features: http://www.nuelectronics.com/estore/index.php?main_page=product_info&products_id=13
Long life Lithium Backpack Batteries for Arduino These are long-life batteries particularly designed for Arduino. There is also a variation for Arduino Mega. Depending on how much juice you need, get these in low, medium, or high capacity. Bare battery PCB matches the size of the Arduino . High Capacity 2200mAh Lithium Ion Battery provides 29 Standby Arduino Hours. Medium Capacity 1000mAh Lithium Ion Battery provides 15 Standby Arduino Hours. Low Capacity 600mAh Lithium Ion Battery provides 9.4 Standby Arduino Hours. It is rechargeable via Arduino USB or via USB Tybe-B Mini Cable and supplies regulated 5V and 3.3V . http://www.liquidware.com/shop/show/bp/lithium+backpack http://www.liquidware.com/shop/show/BPM/ http://antipastohw.blogspot.com/2008/06/how-to-install-lithium-backpack-to-your.html
Jumper wires with F/F, F/M and M/M connecting ends These are easy to use jumper wires terminated as male to female, male to male or female to female for connections. http://www.sparkfun.com/commerce/product_info.php?products_id=9386 http://www.sparkfun.com/commerce/product_info.php?products_id=8431 http://www.sparkfun.com/commerce/product_info.php?products_id=8430
Color Coded Flat (Ribbon)/Coded Flat (Ribbon) These are easy to use jumper wires terminated as male to female, male to male or female to female for connections. http://www.newark.com/jsp/search/productdetail.jsp?SKU=23M8844&CMP=AFC-GB100000001 http://www.allelectronics.com/make-a-store/item/RCBL-10TF/10-CONDUCTOR-TWIST-FLAT-RIBBON-CABLE/1.html http://www.allelectronics.com/make-a-store/item/RCBL-9/9-CONDUCTOR-FLAT-RIBBON-CABLE/1.html http://solutions.3m.com/wps/portal/3M/en_US/Interconnect/Home/Products/ProductCatalog/Catalog/?PC_7_RJH9U5230O73D0ISNF9B3C3SI1_nid=855TBYZXVNit6Z44P5GPWMglD2FDQK85M6bl
Conductive Thread Conductive thread is a creative way to connect various electronics onto clothing. This thread can carry current for power and signals. While not as conductive as traces on a printed circuit board (PCB), this thread makes wearable clothing 'wearable'! http://www.sparkfun.com/commerce/product_info.php?products_id=8544 http://www.sparkfun.com/commerce/product_info.php?products_id=8549
Protoboard Protoboards provide a free canvass for devising soldered circuit compositions. They come in different colors and sizes. http://www.sparkfun.com/commerce/product_info.php?products_id=8619 http://www.sparkfun.com/commerce/product_info.php?products_id=8708 http://www.sparkfun.com/commerce/product_info.php?products_id=8808 http://www.sparkfun.com/commerce/product_info.php?products_id=8814 http://www.sparkfun.com/commerce/product_info.php?products_id=8809 http://www.sparkfun.com/commerce/product_info.php?products_id=8847 http://www.sparkfun.com/commerce/product_info.php?products_id=8885 http://www.sparkfun.com/commerce/product_info.php?products_id=8887
Solderless Breadboard To free yourself from the pain of soldering and also from the risk of ruining your components it is advisable to your breadboards. Breadboards come in different sizes and even colors http://www.sparkfun.com/commerce/product_info.php?products_id=9567 http://www.sparkfun.com/commerce/product_info.php?products_id=8800 http://www.sparkfun.com/commerce/product_info.php?products_id=8802 http://www.sparkfun.com/commerce/product_info.php?products_id=8803 http://www.sparkfun.com/commerce/product_info.php?products_id=137 http://www.sparkfun.com/commerce/product_info.php?products_id=7916
Breadboard Power Supply Stick 5V/3.3V This is a very simple board that takes a 6-12V input voltage and outputs a selectable 5V or 3.3V regulated voltage. All headers are 0.1" pitch for simple insertion into a breadboard. Input power can be supplied to either the DC barrel jack or the two pin header labeled + and -. Output power is supplied to the pins labeled GND and VCC. Board has both an On/Off switch and a voltage select switch (3.3V/5V). http://www.sparkfun.com/commerce/product_info.php?products_id=9319
Micro SD Shield –Data Logger Shield for Arduino Running out of memory space in your Arduino project? The microSD Shield equips your Arduino with mass-storage capability, so you can use it for data-logging or other related projects. Communication with microSD cards is achieved over an SPI interface. The SCK, DI, and DO pins of the microSD socket are broken out to the ATmega168/328's standard SPI pins (digital 11-13), while the CS pin is broken out to Arduino's D8 pin. If you decide to use one of the many open source FAT libraries (like FAT16 or SDFat) make sure to change the code to reflect the location of the CS pin. Most libraries assume the CS pin is connected to D10; this will have to be changed to D8. Also for the libraries to work pin D10 will have to be set as an output in the 'setup()' section of your sketch. The shield also includes a large prototyping area with a 13x12 grid of 0.1" pitch PTHs. This shield comes populated with a microSD socket, red power indicator LED, and a reset button; but it does not come with headers installed. We recommend the 6 and 8-pin stackable headers. http://www.sparkfun.com/commerce/product_info.php?products_id=9802
XBEE Module and XBEE Shield for Arduino This is the very popular 2.4GHz XBee module from Digi (formally Maxstream). These modules take the 802.15.4 stack (the basis for Zigbee) and wrap it into a simple to use serial command set. These modules allow a very reliable and simple communication between microcontrollers, computers, systems, really anything with a serial port! Point to point and multi-point networks are supported. The XBee Shield simplifies the task of interfacing an XBee with your Arduino. This board mates directly with an Arduino Pro and equips it with wireless communication capabilities using the popular XBee module. This unit works with all XBee modules including the Series 1 and Series 2.5, standard and Pro version. The serial pins (DIN and DOUT) of the XBee are connected through an SPDT switch, which allows you to select a connection to either the UART pins (D0, D1) or any digital pins on the Arduino (D2 and D3 default). Power is taken from the 5V pin of the Arduino and regulated on-board to 3.3VDC before being supplied to the XBee. The shield also takes care of level shifting on the DIN pin of the XBee. The board also includes LEDs to indicate power and activity on DIN, DOUT, RSSI, and DIO5 pins of the XBee. The Arduino's reset button is brought out on the shield, and a 12x11 grid of 0.1" holes are available for prototyping. The shield does not come with headers installed; we recommend the 6 and 8-pin stackable headers. The XBee module is also not included. http://www.sparkfun.com/commerce/product_info.php?products_id=9841 http://www.sparkfun.com/commerce/product_info.php?products_id=8664 http://www.sparkfun.com/commerce/product_info.php?products_id=8665
Cellular Shield with SM5100B for Arduino The Cellular Shield for Arduino includes all the parts needed to interface your Arduino with an SM5100B cellular module. This allows you to easily add SMS, GSM/GPRS, and TCP/IP functionalities to your Arduino-based project. All you need to add cellular functionality to your Arduino project is a SIM card (pre-paid or straight from your phone) and an antenna and you can start sending Serial.print statements to make calls, send texts and serve web pages! The main components of the Cellular Shield are a 60-pin SM5100B connector, a SIM card socket, and an SPX29302 voltage regulator configured to regulate the Arduino's raw voltage to 3.8V. The board's red LED indicates power. The Arduino's reset button is also brought out on the shield. Two jumpers on the board allow you to select which serial pins interface with the cellular module - software (D2, D3) or hardware (D0, D1). There is also a 5-pin, 0.1" spaced header with connections for microphone inputs and speaker outputs. Headers are not soldered on, w e recommend the 6 and 8-pin stackable headers. The SM5100B cellular module is included with this product, however the SMA to u.FL connector is not. It is pre-configured to 9600bps. http://www.sparkfun.com/commerce/product_info.php?products_id=9607 http://www.sparkfun.com/commerce/product_info.php?products_id=9145
Arduino-Digital Output Digital Out put is defined as sending on/off or 0/1 signals from one of the digital pins on the Aurduino board (pin 2-13) to the electronic actuator that recognize on/off or 0/1 signal. The so-called digital pins are highlighted here.
Arduino-Digital Output-LED LED (Light Emitting Diode) is a light feature that can be used as an actuator of the space. Being a Diode, an LED is a directional piece meaning that it is activated only if it is placed in the circuit in the right direction Ground Pin Digital Pin
Arduino-Ground Pin For electricity to flow in a circuit, we need difference in level of electricity energy. In Arduino board this difference is provided by making a circuit between one of the output pins and ground pin. When we send a signal through output pin any signal that is not 0 or LOW will provide the desired difference between the two ends of the circuit and will result in electricity flow between the digital output pin and ground pin- The level of electricity energy at Ground pin is zero, as a result any non zero signal on the digital pin gives us a difference and an electricity flow. You can also create this situation using two output pins, one sending the low signal and one sending a high signal. The low signal pin in this case will function as the ground.
Arduino-Digital Output-LED LEDs come in different colors and shapes.
Arduino-Digital Output-LED void setup(){ pinMode(13, OUTPUT); } void loop(){ digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); }
Arduino-Compiling and Uploading Code • Write the code • Compile the code • Check Arduino Port Connection • Upload the Code • The Arduino and Connected Circuits start to show behavior based on the uploaded code
Arduino-Digital Output-LED The Board should be connected to the computer in order to upload the program from arduino environment to the board. Once the program is uploaded, if there is no realtime data being communicated between the board and the program there is no need for the board to be connected any more. Thus you can change the power to Ext(external Power) as opposed to USB(power from USB) and use a battery or a power adaptor to power the board. In the case of the LED exercise since after uploading there is no data being communicated between the board and the computer, you can disconnect the piece and make it a independent disconnected piece.
Arduino-Using SolderlessBreadboard Solderless Board is useful to build prototypes, as fast as possible without going through tiresome and time consuming process of soldering parts together to make connections
Arduino-Using SolderlessBreadboard Solderless Board is useful to build prototypes, as fast as possible without going through tiresome and time consuming process of soldering parts together to make connections Most important thing in using a solderless breadboard in understanding its connections and wiring underneath the white cover to be able to connect parts in a way that complete and flawless lines are provided for electricity flow
Arduino-Using SolderlessBreadboard Solderless Board is useful to build prototypes, as fast as possible without going through tiresome and time consuming process of soldering parts together to make connections Most important thing in using a solderless breadboard in understanding its connections and wiring underneath the white cover to be able to connect parts in a way that complete and flawless lines are provided for electricity flow
Arduino-Using SolderlessBreadboard For example this is how an LED can be connected to an Arduino board using a solderless breadboard. *we are using color codes in wiring. Red wire is connected to output pin and black wire is connected to Ground
Arduino-Using SolderlessBreadboard For example this is how an LED can be connected to an Arduino board using a solderless breadboard. The red dotted line shows the flow of electricity from the digital output pin to LED and then ground pin.
Arduino-Using SolderlessBreadboard Using a Solderless breadboard does not make that much of sense if we are only connecting one LED to the board with one in and one out wire connected to it. It is best suited when we want to have multiple elements connected to one or multiple pins. For example what if we want to control multiple LEDs from one digital output pin on Arduino board?
Arduino-Connecting Multiple Actuators to Single Output Pin-Serial Connection Ground Pin Digital Pin In Serial connection, adding more electricity consuming elements results in weaker electricity flow. In case of Arduino Board adding more than three High intensity LEDs will result in so weak an electricity flow that the LEDs will not turn on Also, in Serial connection, disconnecting any element of the connection-i.e. disconnecting one of the LEDs will result in breaking the circuit and as a result electricity will stop flowing and the whole circuit will not work anymore
Arduino-Connecting Multiple Actuators to Single Output Pin-Serial Connection Serial Connection on Solderless Board-The left diagram shows the electricity flow in the circuit.