|
META TOPICPARENT |
name="AFNOGWorkshop2019" |
The WeMos D1 mini and its sensor and actuator shields
Introduction |
| ESP32
|
RESET |
RST |
Tx |
|
|
ADC1 channel 0 |
GPIO 36 |
SVP |
Rx |
|
|
|
|
< < |
|
GPIO 26 |
IO26 |
IO22 |
GPIO 22 |
SCL |
SCK |
GPIO 18 |
IO18 |
IO21 |
GPIO 21 |
SDA |
MISO |
GPIO 19 |
IO19 |
IO17 |
GPIO 17 |
|
MOSI |
GPIO 23 |
IO23 |
IO16 |
GPIO 16 |
|
SS |
GPIO 5 |
IO5 |
GND |
GND |
|
|
> > |
SCK |
GPIO 26 |
IO26 |
IO22 |
GPIO 22 |
SCL |
MISO |
GPIO 18 |
IO18 |
IO21 |
GPIO 21 |
SDA |
MOSI |
GPIO 19 |
IO19 |
IO17 |
GPIO 17 |
|
SS |
GPIO 23 |
IO23 |
IO16 |
GPIO 16 |
|
|
GPIO 5 |
IO5 |
GND |
GND |
|
|
|
Sensor Shields |
|
- The LED matrix shield
- The SHT-30 shield with a SHT-30 I2C digital temperature and humidity sensor
- The DHT11 shield with a DHT11 digital temperature and humidity sensor. This device uses its own private serial communication protocol
|
|
< < | Here is an overview table showing the devices and the |
> > | Here is an overview table showing the devices and their connections: |
|
|
|
DD18B20 shield |
D2 GPIO 4 |
1-wire digital temperature sensor |
SHT30 shield |
D1 GPIO 5 I2C SCL D2 GPIO 4 I2C SDA |
I2C temperature and humidity sensor |
LED Matrix shield |
D5 GPIO 14 CLK D7 GPIO 13 Din |
8x8 LED Matrix |
|
|
< < | ir connections: |
|
For each of the devices I create 2 directories:
- a driver directory containing programs testing the module without Cayenne communication
- a cayenne directory for the final program
You can find the code written for the workshop on github: https://github.com/uraich/MicroPython_IoTDemos. |
|
> > |
There is a second repository also with directories drivers and cayenne containing the same type of programs but written in C++ for the Arduino IDE. The IDE must be set up to work with the ESP8266 and ESP32 which means that the cross-compilers for these machines must be installed.
https://github.com/uraich/C-IoTDemos |
| Comments
|