Closed alinelena closed 4 years ago
You may have a faulty sensor that does not produce any signal. Yours is not a bug report of the algorithm and does not belong here, on GitHub, but in related hardware forums. I going to leave it on for some time, though, so that others who have experience with esp8266-12e can comment. After that I am going to close it.
@aromring the sensor works correctly with esp32 and your code. Except the swapped RED/IR leds, I have no issue with it when used with esp32. Also the esp8266 works as expected, so I will remove the defective hw hypothesis. it is just a matter of porting the code to other hw.
Perhaps you are right. Neither I have heard about, nor used esp8266-12e, thus I can't help you with porting the code.
I try to get the code working with esp8266-12e. I assume the hardware is ok... tested with esp32 and followed #13 to determine the leds are swapped...but other than that seems to work correctly, at least if you have warm hands.
issues to build, the ones mentioned in #19 plus the need to have (all happens on a linux, plarform io)
before setup()
now success finishes here enabling debug I endup with the same numbers as shown below. looks to me like detection of presence does not work... any help appreciated. int is connected to gpio12 that is d6, sda on d2, scl on d1