-
Just to recap:
steps you did to get a stable Espruino:
erase flash
flash files from dir espruino_1v95_esp8266_4mb with flash_size 4mb-c1
Wifi stuff:
Wifi.connect(SSID, {password:SSIDPASS}, function(err){ if (err === null){ console.log('Connected to AP'); Wifi.stopAP(); Wifi.setConfig({powersave : 'none'}); Wifi.save(); } else { console.log('connetion error',err); } });
I am interested in output of console.log('connetion error',err);
-
there are now some updates on the ESP8266 page - check section Build Content
-
This is the reason you have to run a extra neopixel.write() command:
Every time you upload with reset some extra pinMode commands are included:
>reset() =undefined _____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |_____|___| _|_| |___|_|_|_|___| |_| http://espruino.com 1v95.3493 Copyright 2017 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:1024/1024, manuf 0xe0 chip 0x4016 >dump() pinMode(D0, "input_pullup", true); pinMode(D4, "input_pullup", true); pinMode(D5, "input_pullup", true); pinMode(D12, "input_pullup", true); pinMode(D13, "input_pullup", true); pinMode(D14, "input_pullup", true); pinMode(D15, "input_pullup", true); =undefined
This is very helpful, because you always start with the same defined pinMode for all pins.
I suggest to include a pinMode() for pins you use different.
var neo = require("neopixel"); var neoPin = NodeMCU.D4; // D2 pinMode(neoPin,'output'); neo.write(neoPin, [25, 0, 0]); // 255 is to bright for me :)
-
-
Analog input on ESP8266 a very poor, but you can try.
There is a module for the MQ135 Air Quality Sensor , might be a good starting point.
-
Hi, check this link and try this sample.
If this works for you, please add your test code and some comments - if you like :)
-
-
-
-
-
Only espruino_1v95_esp8266_combined_512.bin does,
start with
esptool.py --port /dev/ttyUSB0 --baud 115200 erase_flash
and then follow
conversations http://forum.espruino.com/comments/14055829/ -
-
Hi @user85573,
can you please share output of
esptool.py --port /dev/ttyUSB0 --baud 115200 flash_id
as 16MB is missing on my list of ids.W25Q40BV ( 4 Mega Bits / 512K Byte ) = ID 4013h
W25Q80BV ( 8 Mega Bits / 1 Mega Byte ) = ID 4014h
W25Q16BV ( 16 Mega Bits / 2 Mega Bytes ) = ID 4015h
W25Q32BV ( 32 Mega Bits / 4 Mega Bytes ) = ID 4016h
W25Q64CV ( 64 Mega bits / 8 Mega Bytes ) = ID 4017hEdit:
Ups missed than on your postmanuf 0xef chip 0x4018
so it is
W25Q128FV ( 128 Mega bits / 16 Mega Bytes ) = ID 4018h
-
- integrated 3.73 pullups
- used module DS3231 - work perfect with DS1307
tested on ESP8266-04,12E/F 1v95
var SDA = D5, SCL = D4; // ESP8266 I2C1.setup({scl:SCL,sda:SDA, bitrate:100000}); var rtc = require("DS3231").connect(I2C1, { DST : true }); rtc.setDate(Date().getDate(),Date().getMonth(),Date().getFullYear()); rtc.setTime(Date().getHours(),Date().getMinutes(), Date().getSeconds()); setInterval(function() { console.log(rtc.readDateTime()); }, 1000); /* output 23/00/18 22:06:20 23/00/18 22:06:30 23/00/18 22:06:40 */
- integrated 3.73 pullups
-
-
As you have a 4016 chip which is 4MB of size, you can try those files:
http://www.espruino.com/binaries/espruino_1v95_esp8266_4mb/
esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash --flash_freq 80m --flash_mode qio --flash_size 4MB-c1 0x0000 boot_v1.6.bin 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin
-
Yes, of course, see the new version of the REAMDE.txt
Is
wifi.save()
no working for you? -
let esptool.py figure out your flash size
esptool.py --port "$COMPORT" --baud 460800 flash_id Manufacturer: e0 Device: 4016 Detected flash size: 4MB
W25Q40BV ( 4 Mega Bits / 512K Byte ) = ID 4013h
W25Q80BV ( 8 Mega Bits / 1 Mega Byte ) = ID 4014h
W25Q16BV ( 16 Mega Bits / 2 Mega Bytes ) = ID 4015h
W25Q32BV ( 32 Mega Bits / 4 Mega Bytes ) = ID 4016h
W25Q64CV ( 64 Mega bits / 8 Mega Bytes ) = ID 4017h -
-
-
moved the wifi connect to the onInit function and it works on reboot
Sure, this is a possible workaround.
Please share the Espruino startup screen and the text output after wifi.save()
| |_ ___ ___ _ ||___ ___
| |_ -| . | _| | | | | . |
||| || |_|||_|_||_| http://espruino.com
1v95 Copyright 2017 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:1024/1024, manuf 0xe0 chip 0x4016
Make sure you connected SDA and SCL to the pins you use.