Arduino


Arduino, Arduino software, Adafruit Arduino Boards Arduino Code Program, Control LCD Displays, Language Reference


First design witch Arduino you want to have

Arduino UNO R3 Mainboard

Arduino MEGA ADK R3 for Android Board

Arduino MEGA 2560 R3 Board

Specifications:
Microcontroller: ATMEGA328P
Operating voltage: 5V
Input voltage: 7-12V
Digital I/O: 14 (6 provide PWM outputs)
Analogue inputs: 6
Memory: Flash 32KB, SRAM 2KB, EEPROM 1KB
Clock speed:

16MHz

Specifications:
Microcontroller: ATMEGA2560
Operating voltage: 5V
Input voltage: 7-18V
Digital I/O: 54 (14 provide PWM outputs)
Analogue inputs: 16
Memory: Flash 256KB, SRAM 8KB, EEPROM 4KB
Clock speed:

16MHz

Specifications:
Microcontroller: ATMEGA2560
Operating voltage: 5V
Input voltage: 7-12V
Digital I/O: 54 (15 provide PWM outputs)
Analogue inputs: 16
Memory: Flash 256KB, SRAM 8KB, EEPROM 4KB
Clock speed: 16MHz

Arduino do Starter kit with all part you need to will for are project

Contents
1 Arduino Projects Book (170 pages) 5 Transistor
1 Arduino UNO board rev.3 2 Mosfet transistors
1 USB cable 5 Capacitors 100F
1 Breadboard 3 Capacitors 100F
1 Easy-to-assemble wooden base 5 100pF capacitor
1 9v battery snap 5 Diodes
70 Solid core jumper wires 3 Trasparent gels (red, green, blue)
2 Stranded jumper wires 1 Male pins strip (40x1)
6 Photoresistor 20 Resistors 220 Ω
3 Potentiometer 10KΩ 5 Resistors 560 Ω
10 Pushbuttons 5 Resistors 1 KΩ
1 Temperature sensor 5 Resistors 4.7 KΩ
1 Tilt sensor 10 Resistors 10 KΩ
1 LCD alphanumeric (16x2 characters) 5 Resistors 1 MΩ
1 LED (bright white) 5 Resistors 10 MΩ
1 LED (RGB)
8 LEDs (red)
8 LEDs (green)
8 LEDs (yellow)
3 LEDs (blue)
1 Small DC motor 6/9V
1 Small servo motor
1 Piezo capsule
1 H-bridge motor driver
2 Optocouplers

Now you got your Arduino ( If got kit most listed on bottom) now need Solderless Breadboard and flexible jumper wire

and led screen (Arduino HD44780 Backlit 1602 LCD cheap and all Colour red, orange, green, blue, pick form
led screen great for error massager, text and custom character (heart, smiley, love more)
 


40 Way / Pin Single Row 2.54mm Pitch Pin Headers for your led screen ( 16 pin so left over)
solder the pins screen



Led  cheap and lots Colour (White, Warm White, Blue, Red, Green, Yellow, Orange, Pink, UV)


Time to install your Arduino software (Pc Download) (Mac OS X Download) (Linux 32 Bit Download or 64 Bit Download)

 

Find the Arduino software install file on click it


open file security warning this fine click run

click i agree


This menu click all box's and click next

here warrer your Arduino progge window click install

ok this installing (normal take 1-2 min to install)

click continue anyway

complete click close

 

 


Adafruit Arduino Boards


ok when upload Arduino go to the board

Adafruit Flora GEMMA microcontroller /over you add then to Arduino

Step 1, now download Adafruit_Arduino_Boards-master Download Here

Step 2, go to download and right click the file and click extract to a Adafruit_Arduino_Boards-master

Step 3, open the Adafruit_Arduino_Boards-master

Step 4, now put the window right side of the screen

Step 5, now find the Arduino icon and right click it then click properties

Step 6, now click the open file location

Step 7, now you should Arduino file window come up

Step 8, now put side by side with Arduino folders on left and Adafruit_Arduino_Boards-master on the right

Step 9, now move the build_package.sh and build_windows.sh (if on mac or linux move build_linux or build_macosx)

Step 10, now open both drivers file in both folder

Step 11, now more all the file and folders from the right folder to the Arduino folder

Step 12, now go back 1 folder on both window so you are in Arduino file and Adafruit_Arduino_Boards-masterfile folder

Step 13, now open both the hardware both windows

Step 14, now move the adafruit folder

Step 15, now open tool on both windows

Step 16, now open avr on both windows

Step 17, now open etc on both windows

Step 18, now move the avrdude.conf to Arduino and then click move and replace

Step 19, now just close both windows (X)

Step 20, now lord up your Arduino software go to tool and down to board and see you new board to uses


Arduino Code Program


ok time program the Arduino (note i don't no what much but if update this page i go)

that behave the leds and smash Blink code Arduino how led on the board to pin 13 when upload your code led blink (if i what you may damreay Arduino)
put led in pin 13 and ground and will Blink code

look code int led = 13; you change 13, 0 to 13 if what but 0-12 you need put and resistor 2.2k but for the led as pin 13 and on bord resistor


Control LCD Displays


for time
LCDs can be controlled in two modes: 4-bit or 8-bit.
 The 4-bit mode requires seven I/O pins from the Arduino, while the 8-bit mode requires 11 pins.
For displaying text on the screen, you can do most everything in 4-bit mode, so example shows how to control a 2x16 LCD in 4-bit mode.

pin headers to solder to the LCD display pins
breadboard
 

LCD Displays 4-bit
lcd pin out  

west it dos

1 GND Ground
2 VCC 5V
3 VO 10k Potentiometer
4 RS pin to digital pin 12
5 R/W Ground
6 E Enable pin to digital pin 11
7 D0  
8 D1  
9 D2  
10 D3  
11 D4 digital pin 5
12 D5 digital pin 4
13 D6 digital pin 3
14 D7 digital pin 2
15 A  
16 K  

() 10k Potentiometer

(1) 5v
(2) VO pin (|LCD pin 3)
(3) Ground

Interface Pin Function


 

Pin No.

Symbol

High/Low Level

Description

1

Vss

0v

0V Ground

2

Vdd

5v

5V Supply Voltage for logic (option +3V)

3

Vo

Variable

Operating voltage for LCD

4

RS

H/L

4 RS H/L H:DATA  L:Instruction code

5

R/W

H/L H

H:Read   L:Write   (MPU Module)

6

E

H H->L

Chip enable signal

7

DB0

H/L

Data bit 0

8

DB1

H/L

Data bit 1

9

DB2

H/L

Data bit 2

10

DB3

H/L

Data bit 3

11

DB4

H/L

Data bit 4

12

DB5

H/L

Data bit 5

13

DB6

H/L

Data bit 6

14

DB7

H/L

Data bit 7

15

A / Vee

 

Power supply for LED backlight ( + ) / Negative voltage output

16

K

 

Power supply for LED backlight (GND )

 


IIC/I2C/TWI/SPI Serial Interface


This is another great IIC/I2C/TWI/SPI Serial Interface. As the pin resources of Arduino controller is limited, your project may be not able to use normal LCD shield after connected with a certain quantity of sensors or SD card. However, with this I2C interface module, you will be able to realize data display via only 2 wires. If you already has I2C devices in your project, this LCD module actually cost no more resources at all. It is fantastic for Arduino based project.

this Download

 


LCD Keypad Shield Arduino



Here we have a very popular LCD Keypad shield for the Arduino.

It includes a 2x16 LCD display and 6 momentary push buttons. Pins 4, 5, 6, 7, 8, 9 and 10 are used to interface with the LCD. Analog Pin 0 is used to read the pushbuttons.

The LCD shield supports contrast adjustment and backlit on/off functions. It also expands analog pins for easy analog sensor reading and display.
 Below the shield can be seen attached to an Arduino UNO.

Pin Function
Analog 0 Button (select, up, right, down and left)
Digital 4 DB4
Digital 5 DB5
Digital 6 DB6
Digital 7 DB7
Digital 8 RS (Data or Signal Display Selection)
Digital 9 Enable
Digital 10 Backlit Control


 


GPS


i gps  Adafruit Ultimate GPS Breakout
 

Adafruit Ultimate GPS Breakout

-165 dBm sensitivity, 10 Hz updates, 66 channels
5V friendly design and only 20mA current draw
Breadboard friendly + two mounting holes
RTC battery-compatible
Built-in datalogging
PPS output on fix
>25Km altitude
Internal patch antenna + u.FL connector for external active antenna
Fix status LED

The breakout is built around the MTK3339 chipset, a no-nonsense, high-quality GPS module that can track up to 22 satellites on 66 channels, has an excellent high-sensitivity receiver (-165 dB tracking!), and a built in antenna. It can do up to 10 location updates a second for high speed, high sensitivity logging or tracking. Power usage is incredibly low, only 20 mA during navigation.

Best of all, we added all the extra goodies you could ever want: a ultra-low dropout 3.3V regulator so you can power it with 3.3-5VDC in, 5V level safe inputs, ENABLE pin so you can turn off the module using any microcontroller pin or switch, a footprint for optional CR1220 coin cell to keep the RTC running and allow warm starts and a tiny bright red LED. The LED blinks at about 1Hz while it's searching for satellites and blinks once every 15 seconds when a fix is found to conserve power. If you want to have an LED on all the time, we also provide the FIX signal out on a pin so you can put an external LED on.

Two features that really stand out about version 3 MTK3339-based module is the external antenna functionality and the the built in data-logging capability. The module has a standard ceramic patch antenna that gives it -165 dB sensitivity, but when you want to have a bigger antenna, you can snap on any 3V active GPS antenna via the uFL connector. The module will automatically detect the active antenna and switch over! Most GPS antennas use SMA connectors so you may want to pick up one of our uFL to SMA adapters.

The other cool feature of the new MTK3339-based module (which we have tested with great success) is the built in datalogging ability. Since there is a microcontroller inside the module, with some empty FLASH memory, the newest firmware now allows sending commands to do internal logging to that FLASH. The only thing is that you do need to have a microcontroller send the "Start Logging" command. However, after that message is sent, the microcontroller can go to sleep and does not need to wake up to talk to the GPS anymore to reduce power consumption. The time, date, longitude, latitude, and height is logged every 15 seconds and only when there is a fix. The internal FLASH can store about 16 hours of data, it will automatically append data so you don't have to worry about accidentally losing data if power is lost. It is not possible to change what is logged and how often, as its hardcoded into the module but we found that this arrangement covers many of the most common GPS datalogging requirements.

We've tested this version of the Ultimate GPS in a high-altitude balloon, and it kept fix up to 27km!

A full tutorial is also available, which has tons of information about the module, how to use the data logger and more

 

Interface Cable SMA to U.FL ------------------------------------------- Antenna GPS 3V Magnetic Mount SMA

SparkFun WRL-09145 | Interface Cable SMA to U.FL - Image 1 | Proto-PIC.co.ukSparkFun GPS-00464 | Antenna GPS 3V Magnetic Mount SMA - Image 2 | Proto-PIC.co.uk

How to wire

5v to VIN
GND to GND
pin 2 to RX
pin 3 to TX

libraries Download

RFID Module



libraries Download

Reset > Pin 9
SAD > Pin 10
MOSI > Pin 11
MISO > Pin 12
SCK > Pin 13
Ground > Ground
3.3v > 3.3v

Matrix Membrane Keypad

libraries Download



4x4 16 Key Matrix Membrane Keypad

 

libraries Download

 

DAT - Pins
VCC - 5v
GND - Ground

 

s - pins
5v
- - ground

 

 

Hide text below here

not snow on site


 The only thing we suggest is to change the initialization code in the examples to this:

#include "Arduino.h"
#include "Keypad.h"

const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
char keys[ROWS][COLS] = {
  {'1','2','3'},
  {'4','5','6'},
  {'7','8','9'},
  {'*','0','#'}
};
byte rowPins[ROWS] = {8, 7, 6, 5}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {4, 3, 2}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

 

     
const int   this constant won't change
     
void setup   The setup routine runs once when you press reset
void loop   The loop routine runs over and over again forever
digitalWrite    for thing led over
delay   Wait for a secon 1000 (1 sec)
     
     
     
int led = (pin nuber    
pinMode   initialize the digital pin as an output or input
analog in input only
LiquidCrystal lcd    

Language Reference

Arduino programs can be divided in three main parts: structure, values (variables and constants), and functions.

Structure

Control Structures

Further Syntax

Arithmetic Operators

  • = (assignment operator)
  • (addition)
  • - (subtraction)
  • * (multiplication)
  • / (division)
  • % (modulo)

Comparison Operators

  • == (equal to)
  • != (not equal to)
  • < (less than)
  • > (greater than)
  • <= (less than or equal to)
  • >= (greater than or equal to)

Boolean Operators

  • && (and)
  • || (or)
  • ! (not)

Pointer Access Operators

Bitwise Operators

  • & (bitwise and)
  • | (bitwise or)
  • ^ (bitwise xor)
  • ~ (bitwise not)
  • << (bitshift left)
  • >> (bitshift right)

Compound Operators

  • ++ (increment)
  • -- (decrement)
  • += (compound addition)
  • -= (compound subtraction)
  • *= (compound multiplication)
  • /= (compound division)
  • &= (compound bitwise and)
  • |= (compound bitwise or)

Variables

Constants

Data Types

Conversion

Variable Scope & Qualifiers

Utilities

Functions

Digital I/O

Analog I/O

Due only

Advanced I/O

Time

Math

Trigonometry

Random Numbers

Bits and Bytes

External Interrupts

Interrupts

Communication

USB (Leonardo and Due only)