No ACL setup yet! Denying access to everyone.
en:edu:zmitac:macro:embedeed:lab:esp-on-site
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:edu:zmitac:macro:embedeed:lab:esp-on-site [2022/10/26 10:51] – pczekalski | en:edu:zmitac:macro:embedeed:lab:esp-on-site [2023/04/05 12:23] (current) – [Task 1] pczekalski | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| While ESP 8266 (Espressiff) is, in general, a network processor with broad applications in IoT, here we focus on using it as an embedded-class microcontroller.\\ | While ESP 8266 (Espressiff) is, in general, a network processor with broad applications in IoT, here we focus on using it as an embedded-class microcontroller.\\ | ||
| - | ===== Laboratory hardware in details | + | ===== Laboratory hardware in detail |
| Each team is given the following configuration with a pre-built hardware stack. | Each team is given the following configuration with a pre-built hardware stack. | ||
| Line 11: | Line 11: | ||
| < | < | ||
| </ | </ | ||
| - | Note, this microcontroller even if its board reminds Arduino Uno has different logic voltage (here 0..3.3V while Arduino Uno uses classical 0..5V logic) and has different pinout numbering. Detail on the following figure: | + | Note, this microcontroller, even if its board reminds Arduino Uno has a different logic voltage (here 0..3.3V while Arduino Uno uses classical 0..5V logic) and has different pinout numbering. Detail on the following figure: |
| <figure wemosd1r2pinout> | <figure wemosd1r2pinout> | ||
| {{: | {{: | ||
| Line 25: | Line 25: | ||
| </ | </ | ||
| - | <note warning> | + | <note warning> |
| ==== 2x16 LCD display shield ==== | ==== 2x16 LCD display shield ==== | ||
| [[https:// | [[https:// | ||
| Line 34: | Line 34: | ||
| ===== Software ===== | ===== Software ===== | ||
| - | You will be using Visual Studio Code with PlatformIO plugin to author software for the ESP8266. | + | You will be using Visual Studio Code with the PlatformIO plugin to author software for the ESP8266. |
| - | The framework (software stack) is Arduino compatible with the popular source code model: | + | The framework (software stack) is Arduino-compatible with the popular source code model: |
| <code c> | <code c> | ||
| #include < | #include < | ||
| void setup() { | void setup() { | ||
| - | // put your setup code here, to run once: | + | // put your setup code here to run once: |
| } | } | ||
| void loop() { | void loop() { | ||
| - | // put your main code here, to run repeatedly: | + | // put your main code here to run repeatedly: |
| } | } | ||
| </ | </ | ||
| - | Firmware uploading is done via USB cable providing a COM (serial) port to the PC computer, you're developing software on. You can also use the same port to trace (send communicates) from your code to the console. | + | Firmware uploading is done via a USB cable providing a COM (serial) port to the PC computer you're developing software on. You can also use the same port to trace (send communications) from your code to the console |
| - | <note important> | + | <note important> |
| ==== VSCode, PlatformIO and project configuration ==== | ==== VSCode, PlatformIO and project configuration ==== | ||
| - | In any case, creating a new project under PlatformIO should follow | + | In any case, creating a new project under PlatformIO should follow |
| <figure platformionewproject> | <figure platformionewproject> | ||
| {{: | {{: | ||
| Line 67: | Line 67: | ||
| </ | </ | ||
| - | It is also necessary to configure the serial port name that is used for uploading your firmware and to monitor. In the case of this microcontroller, | + | It is also necessary to configure the serial port name that is used for uploading your firmware and monitoring. In the case of this microcontroller, |
| < | < | ||
| ... | ... | ||
| Line 75: | Line 75: | ||
| </ | </ | ||
| - | <note tip> | + | <note tip> |
| === Running your code === | === Running your code === | ||
| Line 245: | Line 245: | ||
| ==== Task 1 ==== | ==== Task 1 ==== | ||
| Write on the LCD screen your name (in the first line) and the city name you live in (in the second line). | Write on the LCD screen your name (in the first line) and the city name you live in (in the second line). | ||
| + | === Advanced === | ||
| + | Make it animated (each line) in the loop, towards the left or right. | ||
| + | |||
| ==== Task 2 ==== | ==== Task 2 ==== | ||
en/edu/zmitac/macro/embedeed/lab/esp-on-site.1666774313.txt.gz · Last modified: by pczekalski
