Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Arduino - An introduction

Pral2a
February 17, 2015

Arduino - An introduction

An introduction to Arduino at Fab Lab Bcn | IAAC.

This is a compilation based on many sources, all images are property of their respective owners.

Pral2a

February 17, 2015
Tweet

More Decks by Pral2a

Other Decks in Technology

Transcript

  1. Arduino An introduction Guillem Camprodon, 2010-15 This is a compilation

    based on many sources, all images are property of their respective owners. BARCELONA FAB$LAB BARCELONA FAB*LAB CMYK BARCELONA FAB*LAB BARCELONA FAB&LAB BARCELONA FAB$LAB BARCELONA FAB*LAB CMYK ARIAL LIBERATION SANS * PROPUESTAS DE TIPOGRAFÍA GRAFÍA Monday, 28 September 15
  2. D\Xe`e^]lcXe[jg\Z`]`ZgXikjc`jkjj_XccY\`eZcl[\[% :Xj\jj_XccY\\Xjpkffg\e% 9Xkk\i`\jj_XccY\ i\gcXZ\XYc\% Jg\Z`XckffcjXi\Xccfn\[fecp]fi[Xie ^ff[i\Xjfej% Gif]`k`e^Ypj\cc`e^\og\ej`m\jg\Z`Xc kffcj`jnife^#Xe[efkdXb`e^jg\Z`XckffcjXmX`cXYc\ `j\m\enfij\% Kfio`jFB2kXdg\igiff]`jiXi\cpFB%

    :fdgfe\ekj#efk\ek`i\jlYXjj\dYc`\j#j_XccY\ i\gcXZ\XYc\% :fejldXYc\j#c`b\]lj\jXe[]`ck\ij#j_Xcc Y\\XjpkfXZZ\jj% :`iZl`kYfXi[jj_XccY\Zfdd\ek\[% Gfn\i]ifdLJ9`j^ff[2gfn\i]ifdgifgi`\kXip gfn\iX[Xgk\ij`jYX[% JkXe[Xi[Zfee\Zkfijj_Xcc _Xm\g`eflkj[\]`e\[% @]`kjeXgjj_lk#`kj_XccjeXg fg\e% JZi\njY\kk\ik_Xe^cl\j% ;fZjXe[[i`m\ij j_Xcc_Xm\g\idXc`ebjXe[j_Xcci\j`[\]fiXccg\ig\kl`kp XkXiZ_`m\%fi^% <Xj\f]i\gX`ij_XccY\X[\j`^e`[\Xc# efkXeX]k\ik_fl^_k% D\ki`ZfijkXe[Xi[#efkYfk_% JZ_\dXk`Zjj_XccY\`eZcl[\[% dXb\q`e\%Zfd ;iX]k\[YpD`jk\iAXcfgp#n`k_Xjj`jkXeZ\]ifdG_`cc`gKfiife\Xe[J`dfe?`cc% Monday, 28 September 15
  3. Apollo Arduino Raspberry iPhone 6 2 MHz 16 MHz 700

    MHz x 2 1400 MHz x 2 4kB RAM 2kB RAM 512MB RAM 1GB RAM 72kB ROM 32kB FLASH 8GB FLASH 16GB FLASH Monday, 28 September 15
  4. !LL

  5. )'') )''* )''+ )'', EFN ') '* '+ ', '-

    '. '/ '0 (' (( () '( ') '* '+ ', '- '. '/ '0 (' (( () '( ') '* '+ ', '- '. '/ '0 (' (( () '( ') '* '+ ', '- '. '/ '0 (' ') '* '+ ', '- '. '/ '0 (' (( () '( ') '* '+ ', '- '. '/ '0 (' (( () '( ') '* '+ ', '- '. '/ '0 (' (( () '( ') '* '+ ', '- '. '/ '0 (' 0ROCESSING
  6. DETAILS / TECH SPECS ARDUINO LEONARDO ATmega32U4 at 16 MHz

    0 0 CE, FCC 2.5 KB ITALY TOUCH BOARD ATmega32U4 at 16 MHz 12 0 CE, FCC 2.5 KB UK INTEL EDISON (ARDUINO B/O KIT) Dual Core Intel Atom at 500 MHz Intel Quark microcontroller at 100 MHz 0 0 1 GB CHINA FREESCALE FREEDOM MKL46Z256VLLZ4 at 48 MHz 15 1 CE 32 KB CHINA LILYPAD ARDUINO Atmega328 at 8 MHz 0 0 2 KB USA ADAFRUIT TRINKET Attiny85 at 8 MHz 0 0 512 B USA SPARK CORE STM32F103 at 72 MHz 0 0 20 KB CHINA RASPBERRY PI (MODEL B+) BCM2835 at 700 MHz 0 4 CE, FCC 512 MB UK BEAGLEBONE BLACK ARM Cortex-A8 AM335x at 1 GHz 2x 32-bit RISC processor at 200 MHz 0 1 CE, FCC 512 MB USA UDOO QUAD ARM Cortex-A9 Quad core at 1GHz Atmel SAM3X8E at 84 MHz 0 2 CE, FCC 1 GB ITALY MAKEY MAKEY ATmega32U4 at 16 MHz 6 0 CE 2.5 KB CHINA DENTAKU OTOTO ATmega32U4 at 16 MHz 12 0 CE, FCC 2.5 KB UK Number of touch sensors Capacitive sensing (one-handed triggering) Proximity sensing (trigger without touch) Onboard MP3 / WAV / OGG / FLAC / MIDI playback Onboard polyphonic MIDI synthesis Micro SD card slot On / Off switch Lithium Polymer (LiPo) cell charging via USB Can run from a Lithium Polymer (LiPo) cell Can act as a USB serial device Can act as a USB keyboard or mouse Can act as a USB MIDI interface Arduino shield compatible Onboard headphone / line output Onboard video out Can be programmed using the Arduino IDE Number of USB host sockets Onboard LAN Onboard WIFI Onboard SATA Works out of the box Approvals Country of manufacture CO-PROCESSOR RAM ONBOARD PROCESSOR This MICROCONTROLLER GUIDE represents independent research by Bare Conductive and information found in the data sheets of the above products. We treat it as a valuable resource but also envision it to grow and develop with your input. Please email us at [email protected] with any comments or suggestions you have, we will be sure to get back to you! is just asking to get thrown around. Programming this board has a steeper learning curve than Arduino, but is much more powerful once you get going. It’s also compatible with MBED, so you can program in your web browser without installing anything. machine is free, or have an alarm go off when your bus is close by, use the Spark Core! With WiFi connectivity at its heart and browser-based programming, you won’t have to install anything to start making. on our list, it also has the same shield layout as the Arduino Mega, so you can choose from a world of add-ons (3.3V). Onboard WiFi and Ethernet make connecting to the rest of the planet easy. The support and active community are fantastic as well. loads of spare pins to control everything. Great for complex projects that require tons of sensors, serious processing power and connectivity. The Beaglebone has a rabid (ha ha) community of users to help get your project off the ground. bareconductive.com / make Microcontroller Guide 2015.01 / v1 Monday, 28 September 15
  7.          

                      !     "        ##      $% $%  & & &  ' ' ' '  ' ' ' '   ' ' ' '       $% $%   ( ( ( (     ) *   )*   )*   )*   )*   )* *  ) '* &  ) * &  ) * &  ) * &  )* &  ) * &  )*   )*   )*   )*   )*  )*   )+*   )+*          "  +  +       ,                      $           + +            - - - - +       .    #           "       #   #&    ) /&*   ) *   )/ /'*   )/ *   )/ *  )  * &  )/ * &  ) / / * &  ) / / * &  ) '/ * &  ) / * &  ) /$&///*   ) / /*   )+'// *   ) /*   )+/*   )+//*   )/*   )&/*          #   +  +) *   ) /*  #  #  + #      ) * &  ) //* &              #& , ,   #            &           &             &           &          0   0               /"&  #     " "        + + + + '               1  # &  # &  # &  + + + + #           ' # $ # # +# & + + + + + +                 + # &              234566#6787279767:4; # &6<55=6  787279767:4;:66  6> 6 >66>$66"# > 623456  66$6 ?6+  66 ? 23456!@A6!@B769C@;7:6=56:(794849@=45:6@36(2539=637:924(=45:6@=6@A6=4!7?6D4=C5=65=497 6C76:=5!726!:=65= 6 # ?6#6&#666?66 6 6"6$&66" 6"66 #6 #   27EA656=C76@<:79765269C@2@9=724:=49:6586@A687@=27:65264:=29=45:6!@2B736>27:72F73>6526>378473 >62345627:72F7: =C7:7685268=27637844=456@36:C@EE6C@F765627:(5:4<4E4=A6DC@=:57F7268526958E49=:6526495!(@=4<4E4=47:6@24:4;6825!68=2769C@;7:6=56=C7! C76(2539=64852!@=45656=C767<6 4=76526@=724@E:64:6:<G79=6=569C@;76D4=C5=65=497 6565=684@E4%76@637:4;6D4=C6=C4:64852!@=45 6 Monday, 28 September 15
  8. 13 avr-gcc avr-libc avrdude http://www.nongnu.org/avr-libc/ Arduino.h Wire Serial SPI Ethernet

    SD EEPROM “Libraries” Arduino bootloader Arduino IDE core.a avr-ar blink.ino blink.cpp avr-objcopy blink.cpp.o SPI.cpp.o blink.cpp.elf blink.cpp.hex blink binary make Friday, 16 November, 12 Monday, 28 September 15
  9. Digital IN / OUT x13 Analog IN x6 ~ Analog

    OUT (PWM) x6 Monday, 28 September 15
  10. INPUTS OUTPUTS DIGITAL (on / off) digitalRead HIGH / LOW

    255 / 0 digitalWrite HIGH / LOW 255 / 0 ANALOG (less / more) analogRead 0 - 1023 analogWrite PWM 0 - 255 Monday, 28 September 15
  11. digitalRead digitalRead(pin); LOW/HIGH 0/255 HIGH 255 LOW 0 0 1

    5 volts 0 volts IN Monday, 28 September 15
  12. digitalWrite digitalRead(pin, value); LOW/HIGH 0/255 HIGH 255 LOW 0 0

    1 5 volts 0 volts OUT Monday, 28 September 15
  13. 1000Ω = 4.6V / 0.003A R = (5V - 2V)

    / 0.003A http:// www.raltron.c om/cust/ tools/ voltage_divid er.asp The resistor is your friend. Monday, 28 September 15
  14. Servos Any Digital Pins (disables PWM on 9 and 10)

    a servo could take more power than the one the usb can provide, use an external power supply Monday, 28 September 15
  15. Servos Close loop control &! ! !!  "! $"

    $!! &&!"! #                Monday, 28 September 15
  16. Mosfet #$# &(-#(#'!$#&("( (&'# #&""("( (#.(''#) #""((#('# "#$#'(*$#+&')$$ - 

    (&#!"(& -'&(*()'( '# "#' '$ & -    '"(&"  (&#"'(("&*"&( -&#!" &)"# $"+(#)(("#&((&"''(#&(('(#&-#)&& -(#'+( *# (")&&"((&%)&' "-("!#&("! ( *# ('+ &%)&&)(            > 40mA or > 5V http://bildr.org/2012/03/rfp30n06le-arduino/ Monday, 28 September 15
  17. H-Bridge > 40mA or > 5V + DC motor control

    (+-/-+) http://learn.adafruit.com/adafruit-arduino-lesson-15-dc-motor-reversing/ lm293d Monday, 28 September 15
  18. Shops in Barcelona Onda Radio http://www.ondaradio.es/productos/buscar.aspx?v=A000066 Location https://plus.google.com/100101416647173159883/about?hl=en Diotronic http://www.diotronic.com/raspberry-pi-arduino/arduino/placas_p_1080.aspx

    Location https://plus.google.com/117114665537047889067/about?hl=en Ro-Botica http://ro-botica.com/ Location https://plus.google.com/110636064159550584786/about?hl=en On-Line Shops near Barcelona (2-4 day shipping) Cooking Hacks http://www.cooking-hacks.com (Zaragoza) SnootLab http://snootlab.com/ (Toulouse) BricoGeek http://www.bricogeek.com/shop/ (Carballo, Galicia) Reflexiona http://www.reflexiona.biz/ (Bilbao) Electan http://www.electan.com/ (Alicante) International SparkFun http://www.sparkfun.com/ Adafruit http://adafruit.com/ Liquid Ware http://www.liquidware.com/shop Itead Studio http://iteadstudio.com/store/ Seeed Studio http://seeedstudio.com/ Modern Device http://shop.moderndevice.com/ Monday, 28 September 15