Home
What is Arduino?
Contents
1. Continua nelle prossime serie di slide Renato Conte Arduino 81 82 Part A General http www arduino cc Part B Hardware microcontroller http www atmel com devices ATMEGA328 aspx tab documents ATMEL DATASHEET ATmega48A PA 88A PA 168A PA 328 P http en wikipedia org wiki Atmel_AVR http courses cs washington edu courses csep567 10wi lectures Part C ASSEMBLY http www avr asm tutorial net avr_en AVR_TUT html http www avrbeginners net http www cs nmsu edu jcook arduino index php n Notes AssemblyMods a www nongnu org avr libc user manual inline_asm html Renato Conte Arduino 82 82
2. a CE gt bri 7 POWER Analog in sv Gd 012345 O Renato Conte Arduino 21 82 98 7654321 1 T gt lt Digital PWMO Arduino Cs no berlios de oi CE t i POWER Analog in 5 Gnd w 012345 Analog Inputs The Arduino I O board has 6 Analog Inputs capable of reading voltages between O 5V Internally the voltages are translated into number from O to 1023 These inputs can be used to measure continuous quantities like light intensity temperature proximity position etc depending on the type of sensor di Renato Conte Arduino 22 82 PWM Analog Outputs The Arduino I O Board has 6 PWM Pulse Width Modulation outputs PWM consists of switching something ON and OFF thousands of times per second allowing effects like dimming a light or control the speed of a motor http arduino berlios de 80 51 5 a E EL x x POWER Analog in 5V Gnd N 34 5 ICSP Renato Conte Arduino 23 82 PWM Analog Outputs Vout MaxVoltage T_on_time T tot 5 volts 0 volts 5 volts 0 volts 5 volts 0 volts 3 75 volts 75 25 75 25 75 25 2 5 volts 50 50 50 50 50 50 1 0 volts 20 80 20 80 20 80 Renato Conte Arduino 24 82 Serial Ports The Arduino I O board also has one hardware serial port The Serial serial port is available on the I O pin
3. in photo pin 5 digital output pin for a yellow LED int redLedPin 4 in photo pin 6 digital output pin for a red LED boolean switchClose false the state of the switch void setup pinMode switchPin INPUT set the switch pin to be an input pinMode yellowLedPin OUTPUT set the yellow LED pin to be an output pinMode redLedPin OUTPUT X set the red LED pin to be an output setup void loop switchClose digitalRead switchPin read the switch input if switchClose if the switch is closed digitalWrite yellowLedPin HIGH turn on the yellow LED digitalWrite redLedPin LOW turn off the red LED else if the switch is open digitalWrite yellowLedPin LOW turn off the yellow LED digitalWrite redLedPin HIGH turn on the red LED loop Renato Conte Arduino 48 82 Arduino board an R1 pin 13 MN 2200hms 220 LEDI red red brown resistor wiring diagram schematic 18 Renato Conte Arduino 49 82 Arduino Sketch Structure Declare variables at top Initialize setup run once at beginning set pins Running loop run repeatedly after setup N Renato Conte Arduino BO 82 An Arduino Sketch Declare variables at top SY Initialize p getup run once at beginning set pins SY Running x loop run repeatedly after setup O Renato Conte
4. prints value unaltered i e the raw binary version of the byte The serial monitor interprets all bytes as ASCII so 33 the first number will show up as N Serial write thisByte Serial print dec prints value as string as an ASCII encoded decimal base 10 Decimal is the default format for Serial print and Serial println so no modifier is needed Serial print thisByte But you can declare the modifier for decimal if you want to this also works if you uncomment it Serial print thisByte DEC Renato Conte Arduino 77 82 Serial print hex prints value as string in hexadecimal base 16 Serial print thisByte Serial print oct prints value as string in octal base 8 Serial print thisByte OCT Serial print bin prints value as string in binary base 2 also prints ending line break Serial printIn thisByte BIN if printed last visible character or 126 stop if thisByte 126 you could also use if thisByte This loop loops forever and does nothing while true continue im on to the next character 1 isByte Renato Conte Arduino 78 82 Riga 1 Riga 2 Riga 3 Riga 4 Colonna 1 Colonna 2 Colonna 3 Renato Conte Arduino 79 82 Part B inside microcontroller ME Ba m a N N Renato Conte Arduino 80 82
5. Arduino 51 82 The program void setup The setup function is called when your program starts Use it to initialize your variables pin modes start using libraries etc VR ETE a OE EE RO EE EL a N EE IR ELE EE IE DR OER IT PT IS void setup Inizio della configurazione pinMode 13 OUTPUT PIN 13 come output Termine della configurazione Renato Conte Arduino 52 82 The program void loop The loop function loops consecutively allowing your program to change and respond Use it to actively control the Arduino board Renato Conte Arduino 53 82 The program void setup Inizio della configurazione 4 3 pinMode 13 OUTPUT PIN 13 come output Termine della configurazione void loop Ciclo principale digitalWrite 13 HIGH BV sul pin 13 Delay 200 Aspetta 200 millisecondi digitalWrite 13 LOW Emette sul PIN 13 delay 100 Aspetta 100 millisecondi Termine del ciclo principale EE EE EE EE EE EE Renato Conte Arduino 54 82 Reference library digitalWrite value Description e Ouputs either HIGH or LOW at a specified pin Parameters pin the pin number value HIGH or LOW Returns Renato Conte Arduino 55 82 Defining Pin Levels HIGH and LOW When reading or writing to a digital pin there are on
6. ora LOW 0 volts O Renato Conte Arduino 73 82 Switch to Volts Positive Logic Digital inputs can float between O and 5 volts Resistor pulls down input to ground 0 measure here volts Pressing switch sets input to 5 volts e Press is HIGH Release is LOW N Renato Conte Arduino 74 82 10k brown black orange Example from Arduino IDE File gt Examples gt Communications gt ASCll table ASCII table Prints out byte values in all possible formats as raw binary values as ASCII encoded decimal hex octal and binary values For more on ASCII see http www asciitable com and http en wikipedia org wiki ASCII The circuit No external hardware needed created 2006 by Nicholas Zambetti modified 9 Apr 2012 by Tom Igoe This example code is in the public domain lt http www zambetti com gt N Renato Conte Arduino 75 82 void setup Initialize serial and wait for port to open Serial begin 9600 while Serial wait for serial port to connect Needed for Leonardo only prints title with ending line break Serial printIn ASCII Table Character Map first visible ASCIIcharacter is number 33 int thisByte 33 you can also write ASCII characters in single quotes for example V is the same as 33 so you could also use this int thisByte N Renato Conte Arduino 76 82 void loop
7. wordSpace N Renato Conte Arduino 67 82 Exercise The 4 LEDs blink in unison You need four resistance of 220 ohms Arduino board ping pin 8 pin 7 pin 6 Renato Conte Arduino 68 82 declare variables int catenaLed 6 7 8 9 definition of the Led pins array int tempo 500 void setup for int i O i 4 i all the pins as OUTPUT pinMode catenaLed i OUTPUT void flash 4 for int 1 0 144 i digitalWrite catenaLed i 1 HIGH turn on the LED i delay tempo for int 1 0 i lt 4 i digitalWrite catenaLed 1 1 LOW turn off the LED i delay tempo void loop flash Digital Input Most inputs youll use are variations on switches 9 Switches make or break a connection Single pole only one circuit is being controlled Double pole two circuits are being controlled at once e Single throw only path for circuit Double throw two potential paths for circuit Eo cr di Renato Conte Arduino 70 82 Many Kinds of Switches magnetic hexidecimal tilt lever Tiny Switches Ee DI 7 Am D when pushed ze always connected together Renato Conte Arduino 72 82 Digital Input Switches make or break a connection But Arduino wants to see a voltage Specifically a HIGH 5 volts or 3 3 volts
8. light green Digital Pins 2 13 green Digital Pins 0 1 Serial In Out TX RX dark green These pins cannot be used for digital i o digitalRead and digitalWrite if you are also using serial communication e g Serial begin Reset Button 51 dark blue In circuit Serial Programmer blue green Analog In Pins 0 5 light blue Power and Ground Pins power orange grounds light orange External Power Supply In 9 12VDC X1 pink Toggles External Power and USB Power place jumper on two pins closest to desired supply SV1 purple USB used for uploading sketches to the board and for serial Communication between the board and the computer be used to power the board yellow Renato Conte Arduino 20 82 Digital Ne Arduino ani 9 OF a E ET POWER Analog in 5V Gnd 9 DI ad 5 Digital I O Pins The Arduino I O board has 14 Digital pins that can be configured and used individually as Inputs or Outputs from the program When a digital pin is configured as INPUT it can be used to read all kind of sensors that give values ON and OFF like push buttons touch sensors switches etc When a pin is used as an OUTPUT it can be used to turn ON or OFF all sort of devices like light bulbs motors home appliances etc B Hi 098 7 6 5 4 3 2 1 0 1 x Digital PWM1 PWMO Arduino
9. RE BONES 5 BOARD rev c ARDUINO CLONE H gt E amp H 89 SEE A Renato Conte Arduino 9 82 What is an embedded system What makes a microcontroller Self Contained CPU Memory I O Application or Task Specific Nota general purpose computer 9 Appropriately scaled for the job Renato Conte Arduino 11 82 Designing Embedded Systems Microcontrollers Don t have keyboard and monitor jacks Must use ports to perform I O Inputs to sense things Outputs to control things Related Component Topics Cool Parts Common Interfaces 27 Part Packages Po Renato Conte Arduino 12 82 Arduino Terminology 5 a program you write to run on an Arduino board pin an input or output connected to something e g output to an LED input from a knob gt digital value is either HIGH or LOW aka on off one zero e g switch state analog out PWM value ranges usually from O 255 e g LED brightness motor speed etc analog in value ranges usually from 0 1023 O Renato Conte Arduino 13 82 ap cd AR AREF RX IZ ae a As NN 51157 Mag mi sr hand I ME dt WWW ARDUINO CC MADE TN E tr NH
10. SS SSS SSS A SS SS SSS SS SS SSS SSS SSS SSS SS ok SS SS SS SS SSS AE licia le SSS Se EER const int unitLength 200 200 msec slow operator const int dotLength unitLength const int dashLength 3 unitLength const int partSpace unitLength const int lettersSpace 3 unitLength const int wordSpace 7 unitLength const int ledPin 13 const int buzzerPin 10 void setup pinMode ledPin OUTPUT pinMode buzzerPin OUTPUT Renato Conte Arduino 64 82 di brief definizione di procedura per generare il segnale S i void threeDots for int n O n 3 digitalWrite ledPin HIGH digitalWrite buzzerPin HIGH delay dotLength digitalWrite ledPin LOW digital Write buzzerPin LOW delay part Space delay lettersSpace part Space Renato Conte Arduino 65 82 27 brief definizione di procedura per generare il segnale _ _ _ Si void threeDashes for int n 0 n lt 3 n digitalWrite ledPin HIGH digitalWrite buzzerPin HIGH delay dashLength digitalWrite ledPin LOW digitalWrite buzzerPin LOW delay part Space for delay lettersSpace part Space u O Renato Conte Arduino 66 82 void loop threeDots S signal threeDashes O signal threeDots S signal delay
11. e sati ged Kk ok OK OK OK OK OK OK OK OK o Save to to board disk void setup for int n 13 n gt 6 n piedini 13 7 pinMode n OUTPUT brief funzione per accendere spegnere i 7 segmenti Qparam cifra da rappresentare sul display R void mostraCifra int cifra status area 1 matrice di conversione cifra segment1 TT ag Done HIM home renato Arduino arduino 0 5 hardware tools avr bin avr objcopy 0 ihex R eeprom tmp build8234818249712731960 tmp Display7seg cpp elf tmp build8234818249712731960 tmp Display7seg cpp hex Binary sketch size 1 236 bytes of a 30 720 byte maximum quy ATmega328 Arduino Duemilanove wi on devittyUSBO Arduino environment Gestione periferiche Select the serial device of the Arduino board from the Tools Serial Port menu On Windows this should be COMI1 or COM2 for a serial Arduino board or COM3 COMA or 5 for a USB board To find out open the Windows Device Mananger in the Hardware tab of System control panel Look for a USB Serial Port in the Ports section that s Mini board File Azione Visualizza 4 Computer Controller audio video e giochi 3 Controller disco floppy Controller IDE ATA ATAPI amp Controller USE Universal serial bus Human Interface Device HID Mouse e altre periferiche di puntamento 338 Periferiche di imaging Periferiche di siste
12. enato Conte Arduino 58 82 Exercise More Blinky Madness Arduino board pin 7 pin 6 Exercise SOS A LED blinks emitting a SOS in Morse code three dits three dahs and three dits 3 dots 3 dashes 3 dots In popular usage SOS became associated with such phrases as save our ship save our souls and send out succour You need ALEDanda resistance of 220 ohms A piezoelectric buzzer for a variant of the exercise with audio effects Renato Conte Arduino 60 82 A piezoelectric sounder buzzer A buzzer or beeper is a signaling device tipically a ceramic based piezoelectric sounder like a Sonalert which makes a high pitched tone Usually these were hooked up to driver circuits which varied the pitch of the sound or pulsed the sound on and off B O Renato Conte Arduino 61 82 Piezoelectrics Some crystals when Resonator Plastic Case Silicone Adhesive squeezed make a spark Piezo buzzers use this to make sound flex something x PCB Electrode silver bottom plate back and forth it moves air Piezoceramic Plate Adhesive Brass Plate e Two wires red amp black Apply an oscillating voltage to make a noise he buzzer case supports the piezo element and has resonant cavity for sound O Renato Conte Arduino 62 82 Arduino board pin 7 Renato Conte Arduino 63 82 2S SS SS
13. he microcontroller On the p reum module use the 5V and any of the ground nnections Renato Conte Arduino 44 82 Add a Digital Input a switch Error No pin 4 Pin 2 1221 1211 1111 55858 one Pi HE titti siii rss Connecta AT tes Switch to Ap input i the ne f NN p Lm o c NI NM B mM E EE LT m 1 mie 41017 O SOM m 5 kb below is a store bought rd pushbutton but you can use any switch Try making your own with a couple of pieces of metal di Renato Conte Arduino 45 82 Add a Digital Output LEDs Connect a 220 ohm ee resistor and dg dd ER an LED n m x a s sa RE RS x NL OM X I to digital BRAD nanni 38 pin 4 of the Arduino Renato Conte Arduino 46 82 Schematic Prepare a program that reads The digital input on pin 2 Then it turns on only the LED on pin 3 if the input is high i e the switch is on or turns on only the LED on pin 4 is the input is low the switch is off Renato Conte Arduino 47 82 Aa RR RE OE ee EED Em NE DE EE se RE Be esere Ee Ee ee DE C DAE BR BERDE KOS declare variables int switchPin 2 in photo pin 4 digital input pin for a switch int yellowLedPin 3
14. ino part A Ardu 2015 slides rel 4 3 free documentation ITOT CC GC GUOLLCEECGCCCECL 2 5 Gnd SU Q 12845 1 N mi o 3 0 v 4 o LO o g N a Contents Part A What is Arduino What is an embedded system The microcontroller Atmega168 328 The Arduino board The software environment Applications in C and exercises Part B AVR architecture Atmega328 Part C ASM Renato Conte Arduino 2 82 What is Arduino The word Arduino can mean 3 things A piece A programming A community ardware environment amp philosophy Arduino 00 00 Aipha Arduino playground 5 a E m sd ENS Fir du ming sh SE td y 115 Diec mila ub ei EE ieke EF cioe selon le E z di Tan rS ir AMT si jh eer Lens NM 7 l a mdr iy i I gt matin Li r tha sketch n About the Arduino Playground ri 4 rpm am Mey TUTTI HELE ed sa werk ba pmi eni WE Li Les id Dies Bedr P E HUE i Ric Map What ta aas ARTS SE What is Arduino Arduino is an open source electronics prototyping platform based on flexible easy to use hardware and software Tm o d I
15. lt Nd rd ori or t DER PUM A N 0000000000000000000 ARDUINO os _ POWER ANALOG IN 2 8 52 ee 5 IOREF RESET 3 3V 3 ND MEES H 2 E Hc E ATA WwW ARDUINO CC IN USB B_TH X2 8 1 2 5U GND Ct 00n RN1A 10K GROUND GND ATMEGA16U2 MUCR USB boot En RN PENSO RN2A YELLOW L c KIA CSTCE16MOUS3 RY yd 50 N 100 50 4 coiros RESET SB1578 160R TR 7260 HHA 94293 20 S 5 C HP NO LO OO N 9 L el K m ATMEGA328P PU RX YELLOW reggo 1 BNIB Renato Conte Arduino 16 82 Power Supply Jumper only on Arduino Diecimila or older external 7 12 Volt powered from the omputer s USB ort Renato Conte Arduino 17 82 The core ATmega 168 328 8Bit RISC reduced instruction set computing Microcontroller AVR core RISC modified Harvard 131 instructions single level pipeline Up to 16 20 MIPS at 16 20MHz 1 instruction per clock cycle pipelined 16KB 32KB Flash memory 10000 times rewritable 512B 1KB EEPROM 100000 times rewritable 1KB 2KB internal SRAM Renat
16. ly two possible values a pin can take be set to HIGH and LOW HIGH represents the programming equivalent to 5 volts When reading the value at a digital pin if there is 3 volts or more at the input pin the microprocessor will understand it as HIGH This constant is also represented by the integer number 1 and also the truth level TRUE LOW is representing the programming equivalent to volts When reading the value at a digital pin if we get 2 volts or less the microprocessor will understand it as LOW This constant if also represented by the integer number and also the truth level FALSE N Renato Conte Arduino 56 82 Reference library Delay ms Description Pauses your program for the amount of time in miliseconds specified as parameter Parameters ms the number of milliseconds to pause there are 1000 milliseconds in a second Returns nothing delay 200 Aspetta 200 millisecondi a Po Renato Conte Arduino 57 82 The language Language is standard and C but made easy Lots of useful functions PinMode set a pin as input or output DigitalWrite set a digital pin high low DigitalRead read a digital pins state AnalogRead read an analog pin AnalogWrite write an analog PWM va lue Delay wait an amount of time millis get the current time And many others And libraries And examples R
17. ma 9 Porte COM e LPT F Porta di comunicazione COMI F Porta stampante ECP 1 1 F USB Serial Port COM3 8f Processori 88 Schede di rete 3 Schede video Schermi gt Tastiere Unit disco 1 48 0 08 18 0 18 18 0 18 2 HA AAR E Unit DYD CD ROM JB Unit floppy Volumi di archiviazione HA Renato Conte Arduino 35 82 Arduino environment Arduino 0008 Alpha fica File Edit Sketch Auto Format Ctrl T You ll need to specify your microcontroller Sh Look at the main chip on P atmega8 Blink Serial Port your Arduino board 4 should say either then off tor me verwer Umm US ATmega328 or other E Arduino 0008 Alpha If the latter you File Edit Sketch Tools Help IX need TO select G af a IE E Upload to VO Board ATmega328 from the Tools gt Microcontroller nin Renato Conte Arduino 36 82 on for one seca se pin 13 becaus Blink Arduino environment 8 Auto Format Ctr T Archive Sketch Select the correct value for SerialPort from the Microcontroller MCU v Tool Burn Bootloader OO S m e u Burn Bootloader parallel port Upload Arduino 0008 Alpha prog ram GE Edit Sketch Tools Help New Ope
18. n the LED open Save Ctrl 5 sketch_070620a DI n k EX a m D e Save Ctrl Maiusc S Analog Upload to Board Ctrl U Communication h gt Setup Ctrl Maiusc P S e u e Print Ctrl P Library EEPROM Button Preferences Library Matrix Loop S Ke tc h b O O K gt Quit Ctrl Q Library SoftwareSerial Library Stepper Examples gt way ue Digital gt Blink d Renato Conte Arduino 37 82 v v 0 w Arduino environment The code for the LED blink example Arduino 0008 Alpha File Edit Sketch Tools Help Blink The basic Arduino example Turns on an LED on for one second then off for one second and so on use pin 13 because depending on your Arduino board it has either a built in LED or a built in resistor so that you need only an LED http www arduino cc en Tutorial Blink ty int ledPin 13 77 LED connected to digital pin 13 void setup 77 run once when the sketch starts pinMode ledPin OUTPUT 77 sets the digital pin as output void loop run over and over again diditalWrite ledPin HIGH 77 sets the LED on delay 1000 waits for a second digitalWJrite ledPin LOW sets the LED off delay 1000 77 waits for a second Arduino environment power on blinks p13 fast 1 N waits 5 secs for upload upload new t sketch execute Lar ue existing
19. o Conte Arduino 18 82 Atmega168 Pin Mapping Arduino function reset PCINT14 RESET Pc O digital pin 0 PCINT16 RXD PDOL f digital pin 1 TX PCINT17 TXD digital pin 2 FCINT18 INTO 2 44 digital pin 3 PWM PCINT1S OC2B INT1 2411 PC1 ADCT PCINTS analog input 1 digital pin 4 PCINT20 XCK TO PD4 23 PCO ADCO PCINT8 analog input 0 221 GND GND GND GND AREF analog reference Arduino function aal PC5 ADCS SCL PCINT13 analog input 5 27 ADCA SDA PCINT12 analog input 4 2611 ADCS PCINT 11 analog input 3 251 1 PC2 ADC2 PCINT 10 analog input 2 crystal PCINT amp XTAL1 TOSC1 f AVCC crystal PCINT7 XTAL2 TOSC2 el PBS SCK PCINT5 digital pin 13 digital 5 PWM PCINT21 OCOB T1 5 e 1 PB4 MISO PCINTA digital pin 12 digital pin 6 PWM PCINT22 OC0A AINO PD6 12 digital pin 7 PCINT23 AIN1 7 13 digital pin 8 1 PBOL 179 PB3 MOSVOCSA PCINT3 digital pin 11 PWM PB2 SS OCIBIPCINT2 digital pin 10 PWM isf PB1 OG1A PGINT 1 digital pin 9 PWM Digital Pins 11 12 amp 13 are used by the ICSP header tor MISO MOSI SCK connactions Almega168 pins 17 18 amp 19 Avoid low impedance loads on these pins when using the ICSP header r Renato Conte Arduino 19 82 Analog Reference pin orange Digital Ground
20. rdware in corso Installazione del software completata per E USB Serial Port Installa O Installa Per contin Per chiudere l installazione guidata scegliere Fine 4 Trovato nuovo hardware Ed Il nuovo hardware installato pronto per l uso IT Ju O Renato Conte Arduino 31 82 Arduino environment Open the Arduino folder and double click the Arduino application Re C Programmi arduino 0008 File Modifica Visualizza Preferiti Strumenti Indietro gt 57 2 po Cera Cartele 11 Indirizzo B C Programmitarduino 0008 Vai Bp B p bootloader drivers examples java lib Oo o o B 5 reference sketchbook tools arduino exe cygiconv 2 dll cyqwinl dl ICE JMIRe jikes exe readme txt run bat si rxtxSerial dil Renato Conte Arduino 32 82 File Edit Sketch Tools Help Arduino Blink2 6 environment int pE 13 void setup initialize the digital pin as an output Pin 13 has an LED connected on most Arduino boards pinMode pE OUTPUT int T 1000 void loop digitalWrite pE HIGH set the LED on delay T wait for a second digitalWrite pE LOW set the LED off delay T wait for a second SparkFun ProMicro SV 16MHz on devittyUSBO File Edit Sketch Tools Help OO NUR inti a f I consol
21. s Rx and 1 Tx It is used for both programming the Arduino I O board by software and to communicate with other devices http arduino berlios de y 5 Q1 ICSP DI Analog in SV Gd w 01234 5 DEEG di Renato Conte Arduino 25 82 Pins With Special Functionality The Wiring I O board also provides ISP and TWI Two Wire Interface also known as i c interface The TWI allows to connect up to 128 i2c sensors actuators in a network using only 2 pins to communicate with all of them It is also possible to use those pins to create a network of up to 128 Wiring I O boards using the Wire 34 098 76543210 UM 1 x AREF GND Digital PWM2 ne Arduino 3 http la berlios de 51 library E SCL pin A5 ui SDA pin 4 vago 21713418 SCL Renato Conte Arduino 26 82 External Interrupts Pins It is possible to generate and attend external interrupts on the Wiring I O board There are 2 external interrupts from to 1 so there are 2 pins on the Arduino I O board capable of external interrupts 2 and 3 respectively In addition to being regular digital pins note that pin 3 is also used for PWM gii B LE a POWER Analog in w 012345 i e 9 N Renato Conte Arduino 27 82 Indicators The Wiring I O board ha
22. s a Power green LED indicator that is turned ON when the board is powered It also includes LEDs for the Serial serial port USB data transmission and reception TX Digital D PWR HTT 7 http arduino berlios de EST o LI a ICSP E ik 1 c1 POWER Analog in SV Gnd 01 2 3 4 5 Renato Conte Arduino 28 82 Arduino environment Download the Arduino environment To program the Arduino board you need the Arduino environment http www arduino cc files arduino 1 xx win zip Locate the USB drivers You will need to install the drivers old Arduino for the FTDI chip on the board These can be found in the drivers FTDI USB Drivers directory of the Arduino distribution Renato Conte Arduino 29 82 Arduino environment Connect the board Connect the board to a USB port on your computer The power green LED PWR should go on 1 Trovato nuovo hardware gt FIZ3zR USE Renato Conte Arduino 30 82 Arduino environment Installazione guidata nuovo hardware Installazione guidata nuovo hardware The new hardware wizard will appear again Go through the same steps This time a USB Serial Port will be found di Questa procedura guidata consente di installare il software per USB Serial Port Installazione guidata nuovo hardware fl u Completamento dell Installazione quidata nuovo ha
23. sketch Peg ea press reset Renato Conte Arduino 39 82 e Arduino environment Power ON Formal activity diagram 2 Reset ni wait time lt 5 5 EER EEET new sketch from Interruptible activity region Execute Po r existing sketch V Pin Interrupt request reset hardware m new upload sketch O Renato Conte Arduino 40 82 LAB Digital In Out In this lab you Il connect a digital input circuit and a digital output circuit to a mi crocontroller Though this is written for the Arduino microcontroller module the principles apply to any microcontroller Renato Conte Arduino 41 82 for this lab you ll need Solderless breadboard hookup wire Arduino module LEDs 220 ohm and 10Kohm resistors switch Renato Conte Arduino 42 82 Solderless Breadboard 4 See TEE n ER ree ee ox oom oom mw mmo EE TES Ooo So ne ee Seen 1 N us e o 5 gt lt 9 o lt 9 a 9 Prepare the breadboard Connect power and ground on the breadboard to power and ground from t
24. t S intended for t e ma artists designers peg 4 BEE hobbyists and anyone interested 69 z n da u TE In creating interac tive objects or en vironments Renato Conte Arduino 4 82 What is Arduino Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights motors and other actuators The microcontroller on the board is programmed using the Arduino programming language based on Wiring and the Arduino development environment based on Processing Arduino projects can be stand alone or they can communicate with software on running on a computer e g Flash Processing Renato Conte Arduino 5 82 Arduino Capabilities Intel 86 Arduino PC AT IBM 1984 Renato Conte Arduino 6 82 stand alone b 1 4 ah id MIRO O keXeXeXxo eXexeX exe POOOOCOOOG OOC DX ex 000 O00 ProMicro 2012 AtMega32U4 600000000 MIO OGO Primitive hand made Renato Conte Arduino 7 82 Arduino LED D13 IR Object LED D6 Magnetic Hall LED DS Effect Sensor LED D9 D2 INTO Renato Conte Arduino 8 82 What is Arduino The boards can be assembled by hand or purchased preassembled the software can be downloaded for free BA
Download Pdf Manuals
Related Search
Related Contents
PARTENAIRE DU PASS : MODE D`EMPLOI ESPAÑOL - Genius 802.11 a+g Router User Manual Copyright © All rights reserved.
Failed to retrieve file