Start Presentation

Slide 1: Setting up and IoT

Session 2: Micropython and
Hardware access

Uli Raich
Formally CERN, Geneva, Switzerland

Slide 2: The WeMos D1 mini CPU card

esp8266.png wemosEsp32.png

ESP8266

cost: 2.21 Euros

ESP32

cost: 4.1o Euros

Slide 3: CPU Pinout

esp8266Pinout.png esp32Pinout-v2.png
ESP8266 ESP32
Please note: The pin numbers IOxx on the ESP32 correspond

to the GPIO pin numbers

The pins in the white fields go to the WeMos D1 mini bus

and are also available on the ESP8266

The other pins are only accessible on the ESP32 CPU card

The pin numbers Dx do not correspond to GPIO pin numbers!

Please refer to the next slide for correspondence

Slide 4: CPU pinouts for reference

cpuPinouts.png

Slide 5: Meaning of pins on ESP8266

  • GPIO: General Purpose Input Output.
    Drives a single digital line which
    can be programmed input or output
  • SCL/SDA: The I2C bus:a 2 wire bus
    interfacing sensors or actuators to the CPU

  • SCL,MISO,MOSI,SS: SPI
    the Serial Peripheral Interface.
    Used fast communication with external device
esp8266PinMeaning.png

Slide 6: Meaning of pins on ESP32

esp32-pinout-chip-ESP-WROOM-32.png

Slide 7: How to program the processor

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://www.arduino.cc/en/Main/Software

  • MicroPython

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

Uli Raich - 2019-05-13

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatodp afnog19-ws-session2.odp r1 manage 6431.5 K 2019-05-14 - 09:01 UliRaich  
PNGpng cpuPinouts.png r1 manage 34.1 K 2019-05-13 - 20:32 UliRaich  
PNGpng esp32-pinout-chip-ESP-WROOM-32.png r1 manage 137.4 K 2019-05-14 - 09:50 UliRaich  
PNGpng esp32Pinout-v2.png r1 manage 151.2 K 2019-05-14 - 09:01 UliRaich  
PNGpng esp8266.png r1 manage 116.1 K 2019-05-13 - 20:27 UliRaich  
PNGpng esp8266PinMeaning.png r2 r1 manage 155.3 K 2019-05-14 - 09:43 UliRaich  
PNGpng esp8266Pinout.png r1 manage 176.4 K 2019-05-13 - 20:41 UliRaich  
PNGpng esp8266Programming.png r1 manage 108.3 K 2019-05-14 - 09:59 UliRaich  
PNGpng wemosEsp32.png r1 manage 213.3 K 2019-05-13 - 20:29 UliRaich  
Edit | Attach | Watch | Print version | History: r7 | r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2019-05-14 - UliRaich
 
  • Edit
  • Attach
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