Why does this work on an ESP-01 but not on ESP-01S
Posted: Sun Nov 07, 2021 11:16 am
Hey Guys,
What I'm trying here should not be hard - I must be missing something. Let me try to give as much info as possible without going overboard and get you all bored
I bought 3 of these sets - note they came with esp01S boards
Then I also got this so I can get them programmed & running (included came an ESP-01)
Software is no problem for me - been a developer for 25yrs (but not an expert on any level when it comes to hardware) so I had the coding done long before the units even got delivered. Managed to get it uploaded to the esp-01s modules, but code never executed. After some research I changed the flash mode setting to dout and the code ran - wifi works as well as serial monitor. But when I connect the esp01s to the dht22 unit and power up, it refuses to read the values from the sensor. After a lot of testing I decided to try with the esp01 from the usb connecter "kit", and it worked perfectly - everything.
The only possibility I can think of is that i know the dht's data pin is on pin 2 of the esp. I also know that when I ran the blink test on the ESP01S modules I had to specify the built in led is on pin 2 - with the esp01 specifying that was not required to get the blink working. Could this be the reason - led & dht on pin 2? Somehow I doubt it - why would a kit be sold with the dht22 and esp01s which only works with the esp01?
Either way, I have no idea what to try nor where to search online for answers anymore - any and all help will be very much appreciated.
What I'm trying here should not be hard - I must be missing something. Let me try to give as much info as possible without going overboard and get you all bored
I bought 3 of these sets - note they came with esp01S boards
Then I also got this so I can get them programmed & running (included came an ESP-01)
Software is no problem for me - been a developer for 25yrs (but not an expert on any level when it comes to hardware) so I had the coding done long before the units even got delivered. Managed to get it uploaded to the esp-01s modules, but code never executed. After some research I changed the flash mode setting to dout and the code ran - wifi works as well as serial monitor. But when I connect the esp01s to the dht22 unit and power up, it refuses to read the values from the sensor. After a lot of testing I decided to try with the esp01 from the usb connecter "kit", and it worked perfectly - everything.
The only possibility I can think of is that i know the dht's data pin is on pin 2 of the esp. I also know that when I ran the blink test on the ESP01S modules I had to specify the built in led is on pin 2 - with the esp01 specifying that was not required to get the blink working. Could this be the reason - led & dht on pin 2? Somehow I doubt it - why would a kit be sold with the dht22 and esp01s which only works with the esp01?
Either way, I have no idea what to try nor where to search online for answers anymore - any and all help will be very much appreciated.