-
-
-
@Kolban there is no OneWire support yet in esp8266?
-
-
Hi,
I'm trying to wire up a nodemcu with ds18s20, but it is not found the sensor. DS18S20 is connected to 3.3V and GND between the 3.3V and DATA line I connected a 4k7 resistor. Data line connected to ~D3 port (pin0).
What i'm doing wrong?
var GPIO0 = new Pin(0); // GPIO0 | ~D3 port var ow = new OneWire(GPIO0); var sensor = require("DS18B20").connect(ow); console.log('sensor getting data'); setInterval(function() { console.log(sensor.getTemp()); }, 1000);
I'm getting null for sensor.getTemp();
>ow.search(); =[ ]
thanks,
HyGy -
What is the correct way to clear this part of the flash?
Now i successfully cleared. But I think this is not the "beauty" way. I reflashed the original NODEMCU flash bin:
./esptool -bm qio -bz 512K -bf 40 -cp /dev/ttyUSB0 -cb 115200 -cd nodemcu -ca 0x00000 -cf nodemcu_float_0.9.6-dev_20150704.bin
than flash back the new espruino flash:
./esptool -bm qio -bz 512K -bf 40 -cp /dev/ttyUSB0 -cb 115200 -cd nodemcu -ca 0x00000 -cf espruino_esp8266_board_0x00000.bin -ca 0x10000 -cf espruino_esp8266_board_0x10000.bin
-
Hi,
I have a nodemcu board (esp8266-esp12). I saved a wrong js code into. Now I can't save a new working code.
I got this from the chrome ide:
Connected > 30648, room 16 Connected >{ll|$à|Ädìc<Çä{ÛcÄbóogl'oÜãì[#p](http://forum.espruino.com/search/?q=%23p)ì${ls$pò'àlcoã<ìÇ#óogïll ogl n;ÛgÜlxûoà;ãà#'ã|lbóogç$`Ø'oll n{gl``óoàcnlûg'çdpûgàsãàcnâ|cÄò'oï$l`Ø'od`gsobã$`rÛgcãl`çÿYåÍõ66515 rtc=17857 {$§Loading -491521 bytes from flash...
I reflashed with this command (as i flashed first time the espruino firmware):
./esptool -bm qio -bz 512K -bf 40 -cp /dev/ttyUSB0 -cb 115200 -cd nodemcu -ca 0x00000 -cf espruino_esp8266_board_0x00000.bin -ca 0x10000 -cf espruino_esp8266_board_0x10000.bin
I installed arduino dev. env. And successfully uploaded wifi and blink code to it, so the board is working. After that I re flashed the espruino binaries, but it's is wrong.
What can I do to continue develop js code, and can save a new working code?
regards
HyGy -
If I pressed save on esp8266 board, and then I cannot use the board again couse it resets, how can I flash a working js code again?
ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset load 0x40100000, len 30648, room 16 tail 8 chksum 0x4f load 0x3ffe8000, len 2108, room 0 tail 12 chksum 0x00 ho 0 tail 12 room 4 load 0x3ffe8840, len 28804, room 12 tail 8 chksum 0xb6 csum 0xb6 Øïsys=70011 rtc=3649716yrl§Loading -491521 bytes from flash...
-
The ds18b20 and s20 are differs for reading mode as I know. The wiring is good, couse I can read the onewire device id (if I connect more then one, then all the readings).