arduino
TRANSCRIPT
Arduino ecosystemSteve Perkson (Teadusmosaiik)
The good/bad old days
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
Arduino
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
*duinos
pro mini
wireless?
Need something thin and flexible
Shields
● Sort of standard pinout● Sort of standard voltage range● Quite a lot of different goodies● Even more problems
Shields
● Bluetooth● GSM ● Xbee● Ethernet● Wifi● CNC, 3d printer, laser cutter● Quadcopter
Ethernet
and more ;)
How does the code look like?
void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); }
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}
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.
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
Questions