arduino
TRANSCRIPT
![Page 1: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/1.jpg)
Arduino ecosystemSteve Perkson (Teadusmosaiik)
![Page 2: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/2.jpg)
The good/bad old days
![Page 3: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/3.jpg)
The good/bad old days
● MCU of some kind● Some clock source usually crystal● Chip programmer.● Serial level converter 5V or 3.3V to 12V● Breadboard● Development toolchain
![Page 4: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/4.jpg)
Arduino
![Page 5: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/5.jpg)
Arduino - what do you get?
● Atmega 168/328/644p/1284● Some sort of serial to USB capability● 5V voltage stabilizer● easy to connect headers● 2 leds and 1 switch● somewhat working development library● IDE
![Page 6: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/6.jpg)
*duinos
![Page 7: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/7.jpg)
pro mini
![Page 8: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/8.jpg)
wireless?
![Page 9: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/9.jpg)
Need something thin and flexible
![Page 10: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/10.jpg)
Shields
● Sort of standard pinout● Sort of standard voltage range● Quite a lot of different goodies● Even more problems
![Page 11: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/11.jpg)
Shields
● Bluetooth● GSM ● Xbee● Ethernet● Wifi● CNC, 3d printer, laser cutter● Quadcopter
![Page 12: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/12.jpg)
Ethernet
![Page 13: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/13.jpg)
and more ;)
![Page 14: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/14.jpg)
How does the code look like?
void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); }
![Page 15: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/15.jpg)
code part 2// the loop routine runs over and over again forever:void loop() { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second}
![Page 16: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/16.jpg)
Code was supposed to be C++,where are the includes?● Arduino IDE hides all the complexity.● IF it breaks, it breaks and you get to keep all
the pieces● It breaks.
![Page 17: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/17.jpg)
GSM modules
● RTFM and then read it again.● Then find an older/newer manual and read it.● Also compare to previous HW version.● Never ask your Telco for any QOS class
![Page 18: Arduino](https://reader035.vdocuments.us/reader035/viewer/2022081403/5554b793b4c90503388b48b1/html5/thumbnails/18.jpg)
Questions