Difference: HardwareAccessAndMicropython (6 vs. 7)

Revision 72019-06-11 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WorkshopSlides"

Start Presentation

Slide 1: Setting up and IoT

Line: 42 to 42
 

How to program the processor

Changed:
<
<
esp8266Programming.png Several development tools are available:
  • ESP_IDF: The official Espressif development tool.
    Includes a gcc compiler for the ESP8266 and the ESP32

Please see:
https://docs.espressif.com/projects/esp-idf/en/latest

  • The Arduino IDENeeds extensions for these processors
    and the different CPU boards

see:

https://docs.espressif.com/projects/esp-idf/en/latest

  • MicroPython

see:
https://micropython-docs-esp32.readthedocs.io/en/esp32_doc

>
>
esp8266Programming.png Several development tools are available:
  • ESP_IDF: The official Espressif development tool.
    Includes a gcc compiler for the ESP8266 and the ESP32

Please see:
https://docs.espressif.com/projects/esp-idf/en/latest

  • The Arduino IDE
    Needs extensions for these processors
    and the different CPU boards

see:

https://docs.espressif.com/projects/esp-idf/en/latest

  • MicroPython

see:
https://micropython-docs-esp32.readthedocs.io/en/esp32_doc

 

Flashing the code

Line: 53 to 53
 

esptool

  • esptool is called from the Makefiles in ESP-IDF
  • esptool is used when we upload code from the Arduino IDE to the processor flash
Changed:
<
<
  • esptool is used when the Micropython IDE uPyCraft

    installs Micropython onto the processor flash
>
>
  • esptool is used with Micropython IDE on uPyCraft

    installs Micropython onto the processor flash
 In the above cases the use of esptool is hidden to us.

We can however also execute esptool directly.

Line: 149 to 149
  It is written in PyQt4 the Python language binding to Qt4.
Changed:
<
<
The Linux version did not work for me
>
>
The Linux version did not work for me when running Ubuntu 18.04 or later.
  I found a version based on PyQt5 (new version of QT) which was even worse.
Line: 251 to 251
 
  • each ws18b12 contains the 3 colored LEDs and a controller.

  • Can be cascaded and individually addressed, depending on its position in the chain

  • Needs precise timing

Changed:
<
<
  • To use it we pass through the neopixel library built into MicroPython
>
>
  • To use it we pass through the neopixel library built into micropython
 

Changed:
<
<

WS2812B timing

>
>

WS2812B timing

  For all the details on the ws2812b look at

https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf
Line: 268 to 268
 ws2812ControlWord.png

Changed:
<
<

Cascading the WS2812B

>
>

Cascading the WS2812B

 

Line: 371 to 371
 

The SHT30 digital temperature and relative humidity sensor

Changed:
<
<
The SHT30 is a digital temperature and humidity sensor based on the I2C bus
>
>
The SHT30 is a digital temperature and humidity sensor based on the I2C bus
  Here is its data sheet.

Temperature precision: +- 0.3 °C

Relative humidity: +- 3 %

Works on 2.4V – 5.5 V

sht30Block.png
Line: 398 to 398
 While for the course we only use the CPU and 2 sensor shields:

  • ESP8266 CPU (a more powerful ESP32 CPU exists)
  • SHT30 temperature and humidity sensor
Changed:
<
<
>
>
  • Ws2812B rgb LED (neopixel)
  there are many more available on the market.

We have a dozen such shields here for demo.

All demo programs can be found at:

https://github.com/uraich/MicroPython_IoTDemos

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback