#147 Introduction into ESP32 with first tests: PWM, Servo, Web, Touch Sensors (Tutorial)
358.7 هزار بار بازدید -
7 سال پیش
-
Today, this channel will try
Today, this channel will try to start into a new area: The area of the replacement of our beloved ESP8266 by the new ESP32. I invite you to join this journey. At the end of this video, you should be able to judge, if you want to order your first board (or take it out of your drawer)
Summary:
• We checked the GPIOs out and discovered, that we have many more of them, and that they abandoned the Dx numbering scheme. So, we do not have to write our sketches differently for the different boards.
• Then, we looked at the different examples provided with the infrastructure. This will be stuff for many videos to come. Today, we tried PWM and it worked. We were able to generate a fading LED, steer a servo, and even create a primitive DAC with this function.
• Next, we tried a simple example to check, if the Wi-Fi really works. And it does. We learned, that we will have to change all our ESP8266 sketches if we want to port them to the ESP32.
• Then, I ported my NTP library to the ESP. With one small change, it worked and delivered accurate time also on the ESP32.
• At the end, we checked also the new touch pins, and, together with the PWM functionality from the beginning of the video, we're able to create a small instrument.
Attention: If your Arduino IDE is installed in the "Program file" area of Windows, you need to run "get.exe" as administrator.
Links:
An easier way to install ESP32 software: #214 New: Easier ESP32 installation i...
Arduino Core for ESP32: https://github.com/espressif/arduino-...
Board in this video:
WeMos® LOLIN32 Board http://bit.ly/2t2zXeW
Other ESP32 boards (from video #143):
TTGO ESP32 Module https://www.aliexpress.com/item/TTGO-...
ESP32 (NodeMCU type) Board http://bit.ly/2sOMR3E
ESP32 Development Board (Yellow Pins) https://www.aliexpress.com/item/ESP32...
ESP32 X-Shield https://www.aliexpress.com/item/Lolin...
ESP32 Lolin Board with LiPo https://www.aliexpress.com/item/WEMOS...
ESP32 OLED Board http://bit.ly/2tosirM
ESP32 Board with 18650 https://www.aliexpress.com/item/WEMOS...
D1 mini ESP32 board https://www.aliexpress.com/item/MH-ET...
WeMos Arduino like ESP32 Board http://bit.ly/2tUZVnC
Cheapest ESP32 board (source not tested by me): https://www.aliexpress.com/item/Lolin...
WEMOS Official Store: http://s.click.aliexpress.com/e/jUzBiIq
Supporting Material and Blog Page: http://www.sensorsiot.org
Github: https://www.github.com/sensorsiot
If you want to support the channel and buy from Banggood use this link to start your shopping: https://bit.ly/2jAQEf4 (no additional charges for you)
Official Wemos Store: http://s.click.aliexpress.com/e/jUzBiIq
Facebook: SensorsIOT
Twitter: spiessa
Summary:
• We checked the GPIOs out and discovered, that we have many more of them, and that they abandoned the Dx numbering scheme. So, we do not have to write our sketches differently for the different boards.
• Then, we looked at the different examples provided with the infrastructure. This will be stuff for many videos to come. Today, we tried PWM and it worked. We were able to generate a fading LED, steer a servo, and even create a primitive DAC with this function.
• Next, we tried a simple example to check, if the Wi-Fi really works. And it does. We learned, that we will have to change all our ESP8266 sketches if we want to port them to the ESP32.
• Then, I ported my NTP library to the ESP. With one small change, it worked and delivered accurate time also on the ESP32.
• At the end, we checked also the new touch pins, and, together with the PWM functionality from the beginning of the video, we're able to create a small instrument.
Attention: If your Arduino IDE is installed in the "Program file" area of Windows, you need to run "get.exe" as administrator.
Links:
An easier way to install ESP32 software: #214 New: Easier ESP32 installation i...
Arduino Core for ESP32: https://github.com/espressif/arduino-...
Board in this video:
WeMos® LOLIN32 Board http://bit.ly/2t2zXeW
Other ESP32 boards (from video #143):
TTGO ESP32 Module https://www.aliexpress.com/item/TTGO-...
ESP32 (NodeMCU type) Board http://bit.ly/2sOMR3E
ESP32 Development Board (Yellow Pins) https://www.aliexpress.com/item/ESP32...
ESP32 X-Shield https://www.aliexpress.com/item/Lolin...
ESP32 Lolin Board with LiPo https://www.aliexpress.com/item/WEMOS...
ESP32 OLED Board http://bit.ly/2tosirM
ESP32 Board with 18650 https://www.aliexpress.com/item/WEMOS...
D1 mini ESP32 board https://www.aliexpress.com/item/MH-ET...
WeMos Arduino like ESP32 Board http://bit.ly/2tUZVnC
Cheapest ESP32 board (source not tested by me): https://www.aliexpress.com/item/Lolin...
WEMOS Official Store: http://s.click.aliexpress.com/e/jUzBiIq
Supporting Material and Blog Page: http://www.sensorsiot.org
Github: https://www.github.com/sensorsiot
If you want to support the channel and buy from Banggood use this link to start your shopping: https://bit.ly/2jAQEf4 (no additional charges for you)
Official Wemos Store: http://s.click.aliexpress.com/e/jUzBiIq
Facebook: SensorsIOT
Twitter: spiessa
7 سال پیش
در تاریخ 1396/04/24 منتشر شده
است.
358,720
بـار بازدید شده