Notifications
Clear all

Intro to ESP32 - Great Article, feedback

1 Posts
1 Users
0 Likes
1,135 Views
jBo
 jBo
(@jbo)
Member
Joined: 3 years ago
Posts: 100
Topic starter  

I recently worked through the demos and exercises of the Getting started with ESP32 video and article. There is really a lot to unpack, seems like a DBWS record for the number of concepts exposed and software demos showing ESP32 capabilities, all from the same circuit hookup.

I'm glad I stuck with it, because there are so many mistakes to make, and I wanted to make them allΒ  😯Β 

One thing to look for is the demo for the Touch sensors. Sometimes I opened the demos from the .zip file I downloaded from Dronebot Workshop. Other times I went to the Arduino interface, Files > Examples > Examples for DOIT ESP32 Devkit V1 > ESP > Touch > TouchRead.

I opened this demo, TouchRead, using the Arduino interface. It never worked, not at all. It always reported 1 no matter what I did with the bare wire. However, after I did what I with the (admittedly very simple) hardware setup, I opened the same demo, but from the downloaded .zip file. I noticed it was different in just one, critical place. The touch sensor mentioned in the comment and the code match each other and the hookup diagram. The one from the Examples menu is wrong, well, not really wrong, I'm glad to have any examples at all! But the code says T1 where the comment reads T0, and this was it; fixed this, made sure my pin assigned in software matched what I wired, and it worked. The moral is, proofreading is still important, in English but especially in code. πŸ™‚

Serial.println(touchRead(T1)); // get value using T0Β 

In theory, theory and practice are the same.
In practice, they're different.


   
Quote