Most recent activity
-
Issue resolved :)
I tried a digital pin without any success :(
I tried an other HC-SR501 and it worked. So my sensor was definitely broken.
here the code that's working :
setWatch(function() { console.log("Movement detected at : ", Math.floor(Date.now() / 1000) ); }, NodeMCU.D6, {repeat:true, edge:"rising"});
-
-
Hi everyone, I'm trying to read a HC-SR501 with my nodeMCU but I struggle a bit :(
Wiring :
VCC to vin (5V)
OUT to A0
GDN to GDNI tried :
setWatch(function() { console.log("Movement detected"); }, NodeMCU.A0, {repeat:true, edge:"rising"});
Never got any detection
I tried
setInterval( () =>{ console.log( analogRead(NodeMCU.A0) ); // print 0.00097751710 all the time },1000);
I swapped the sensor for a water level sensor and
console.log( analogRead(NodeMCU.A0) );
and the water level is detected normally.Did I miss something ?
Thank you a lot for your help :)
-
Hi guys as it was a bit dificult to find a straightforward solution I just write a quick recap on how to fix de issue.
Board : NodeMcu ESP8266 ESP-12E CP2102
computer : Mac OS Sierre 10.12.6
Error that I got "Wifi module not found" and impossible to comunicate with the board.
How I fixed it :
I reflashed the board with this settings :
files are from the folder
/espruino_1v94/espruino_1v94_esp8266
esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 write_flash --flash_freq 40m --flash_mode dio --flash_size 4MB 0x00000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x37E000 blank.bin
NB : You maybe have to change the port
/dev/cu.SLAB_USBtoUART
Have a nice day and enjoy
PS : I wrote this topic with more "SEO" keyword to be sure this will be more visible, and to help more people :)
-
I have the exact same issue with a set of new nodemcu :(
Fist I had a lot of kernel panic on my mac due to a faulty driver. I had to reinstall my system.
Now the espruino IDE is not communicating with the board :'(
I have an other nodeMcu board that's working perfectly (I guess it's an other model)