Difference: HardwareAccessAndMicropython (2 vs. 3)

Revision 32019-05-14 - UliRaich

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

Hardware access and Micropython

  Start Presentation

Changed:
<
<

Setting up an IoT

Session 2: Micropython and
Hardware access

Uli Raich
Formally CERN, Geneva, Switzerland

>
>

Setting up and IoT

Session 2: Micropython and
Hardware access

Uli Raich
Formally CERN, Geneva, Switzerland

 

The WeMos D1 mini CPU card

Changed:
<
<
esp8266.png wemosEsp32.png
ESP8266 CPU ESP32 CPU
>
>
esp8266.png wemosEsp32.png

ESP8266

cost: 2.21 Euros

ESP32

cost: 4.1o Euros

 

Changed:
<
<

CPU PinOut

esp8266Pinout.png esp32Pinout.png
>
>

CPU Pinout

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

to the GPIO pin numbers

 
Changed:
<
<
Please note that the numbers IOxx for the ESP32 correspond to the GPIO numbers.
>
>
The pins in the white fields go to the WeMos D1 mini bus
 
Changed:
<
<
So..., IO22 corresponds to GPIO 22.
>
>
and are also available on the ESP8266
 
Changed:
<
<
The same is not valid for the numbers Dx in the ESP8266 case.
>
>
The other pins are only accessible on the ESP32 CPU card
 
Changed:
<
<
Please see the next slide for the correspondence.
>
>
The pin numbers Dx do not correspond to GPIO pin numbers!

Please refer to the next slide for correspondence

 

Changed:
<
<

Comparison PinOut
ESP8266 versus ESP32 for reference

>
>

CPU pinouts for reference

  cpuPinouts.png
Added:
>
>

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

Meaning of pins on ESP32

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

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/

 %SLIDESHOWEND%

Uli Raich - 2019-05-13

Line: 41 to 55
 
META FILEATTACHMENT attachment="wemosEsp32.png" attr="" comment="" date="1557779391" name="wemosEsp32.png" path="wemosEsp32.png" size="218419" user="UliRaich" version="1"
META FILEATTACHMENT attachment="cpuPinouts.png" attr="" comment="" date="1557779532" name="cpuPinouts.png" path="cpuPinouts.png" size="34918" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp8266Pinout.png" attr="" comment="" date="1557780096" name="esp8266Pinout.png" path="esp8266Pinout.png" size="180678" user="UliRaich" version="1"
Changed:
<
<
META FILEATTACHMENT attachment="esp32Pinout.png" attr="" comment="" date="1557780235" name="esp32Pinout.png" path="esp32Pinout.png" size="318749" user="UliRaich" version="1"
>
>
META FILEATTACHMENT attachment="esp32Pinout-v2.png" attr="" comment="" date="1557824478" name="esp32Pinout-v2.png" path="esp32Pinout-v2.png" size="154832" user="UliRaich" version="1"
META FILEATTACHMENT attachment="afnog19-ws-session2.odp" attr="" comment="" date="1557824492" name="afnog19-ws-session2.odp" path="afnog19-ws-session2.odp" size="6585835" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp8266PinMeaning.png" attr="" comment="" date="1557826991" name="esp8266PinMeaning.png" path="esp8266PinMeaning.png" size="159054" user="UliRaich" version="2"
META FILEATTACHMENT attachment="esp32-pinout-chip-ESP-WROOM-32.png" attr="" comment="" date="1557827435" name="esp32-pinout-chip-ESP-WROOM-32.png" path="esp32-pinout-chip-ESP-WROOM-32.png" size="140701" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp8266Programming.png" attr="" comment="" date="1557827999" name="esp8266Programming.png" path="esp8266Programming.png" size="110920" user="UliRaich" version="1"
 
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