latinet:unicaes:workshops:intro-to-iot-23
This is an old revision of the document!
Table of Contents
Introduction to IoT
Setup Development Environment
- Install Arduino IDE, for more information see the Official documentation
Hardware Review
- Dev Board: Wemos D1 Mini
- Microcontroller: ESP8266 12-E Chip ESP8266 hardware review
Coding Warm-up
Basic blink example:
- Blink.ino
void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(LED_BUILTIN, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
Temperature reading example:
- Temp.ino
void setup() { } void loop(){ }
latinet/unicaes/workshops/intro-to-iot-23.1692990773.txt.gz ยท Last modified: 2023/08/25 21:12 by harley.lara