Search found 43 matches

by oserror
Sun May 09, 2021 12:08 pm
Forum: ESP32 boards
Topic: ESP32, CNC Shield 3.0 and WebREPL -- OSError 36 and 28 on write()
Replies: 0
Views: 1658

ESP32, CNC Shield 3.0 and WebREPL -- OSError 36 and 28 on write()

I have a Wemos D1 R32 clone. It is an ESP32 / Arduino UNO combination board of sorts. Here is some information on the board: https://www.botnroll.com/en/esp/3639-wemos-d1-r32-w-esp32-uno-r3-pinout.html Attached to is an Arduino CNC Shield: https://blog.protoneer.co.nz/arduino-cnc-shield/ I have 3 DR...
by oserror
Sun May 09, 2021 11:40 am
Forum: ESP32 boards
Topic: VL53L0X I2C sensor not recognized after machine.reset()
Replies: 2
Views: 2806

Re: VL53L0X I2C sensor not recognized after machine.reset()

I have been using this ported Adafruit driver for a while now, and it seems stable enough. I think it should be as I only changed the various CircuitPython calls to their MicroPython equivalents. Here is the link to the ported driver: https://github.com/truckershitch/micropython-vl53l0x If anyone ha...
by oserror
Sat Mar 06, 2021 6:02 pm
Forum: ESP32 boards
Topic: VL53L0X I2C sensor not recognized after machine.reset()
Replies: 2
Views: 2806

Re: VL53L0X I2C sensor not recognized after machine.reset() - Now recognized

Well, I cleaned up my networking code and now the sensor initializes as expected, most of the time. Perhaps I was working the ESP32 too hard before? The "OSError: [Errno 19] ENODEV" error still occurs but not as often. I should have specified the error before. My apologies. My real quibble now is th...
by oserror
Fri Mar 05, 2021 1:45 am
Forum: ESP32 boards
Topic: VL53L0X I2C sensor not recognized after machine.reset()
Replies: 2
Views: 2806

VL53L0X I2C sensor not recognized after machine.reset()

I have the ESP32 powered by a 12 Volt power supply -> buck converter -> 6 Volts to VIN and GND pins. The VL53L0X is powered by the 3V3 pin of the ESP32. When connected via WiFi over WebREPL, if I stop main.main() with CTRL-C and call: import machine machine.reset() and reconnect, execution has halte...
by oserror
Wed Jun 17, 2020 10:56 am
Forum: ESP8266 boards
Topic: OTA Firmware: Invalid app size
Replies: 5
Views: 3391

Re: OTA Firmware: Invalid app size

I was signing the ota firmware before sending it with the yaota8266 client. This was my problem. It seems that the client was signing it for me when it was sending the file to the ESP8266 over the air, so it was being signed twice. Compiling the firmware-ota.bin and just sending that over the air wo...
by oserror
Wed Apr 15, 2020 1:49 pm
Forum: ESP8266 boards
Topic: OTA Firmware: Invalid app size
Replies: 5
Views: 3391

Re: OTA Firmware: Invalid app size

I tried this again with the micropython-1.12.tar.xz file available on the micropython.org website (not the git source code I used before with the v1.12 tag). I tried compiling the firmware with 'make ota', erasing the flash with esptool, loading the initial yaota8266.bin firmware at position 0x0 and...
by oserror
Sun Apr 12, 2020 9:26 pm
Forum: ESP8266 boards
Topic: OTA Firmware: Invalid app size
Replies: 5
Views: 3391

OTA Firmware: Invalid app size

I have tried compiling the code both with my own modules in micropython/ports/esp8266/modules and with none of my modules present there. I am able to flash the ESP8266 with the signed firmware-ota.bin.ota file (the second flashing). This is what shows in the terminal when the reset button is pressed...
by oserror
Tue Dec 24, 2019 12:17 am
Forum: ESP8266 boards
Topic: Problem polling a UDP socket on ESP8266 -- works on ESP32
Replies: 3
Views: 3265

Re: Problem polling a UDP socket on ESP8266 -- works on ESP32

No, I didn't. I ended up using TCP instead.

Maybe someone else can figure it out? I'm stuck.
by oserror
Mon Dec 09, 2019 6:59 pm
Forum: ESP8266 boards
Topic: Trouble when calling urlopen() twice in a row
Replies: 1
Views: 1577

Re: Trouble when calling urlopen() twice in a row EDIT: also with a single long URL

Okay, it seems that updates can only be sent every 15 seconds or they get rejected. That won't work for me as I'm concerned about battery usage. It still doesn't explain why the full request (values + status -- the entire post/get in one url) only seems to work from the REPL and not when the Wemos D...
by oserror
Sun Dec 08, 2019 8:16 pm
Forum: ESP8266 boards
Topic: Trouble when calling urlopen() twice in a row
Replies: 1
Views: 1577

Trouble when calling urlopen() twice in a row

I am having a problem sending two requests to Thingspeak in a row. Below is my code: def SendToThingspeak(host, api_key, result): from urllib.urequest import urlopen # from time import sleep # import urequests as ureq def start_url(): return 'http://%s/update?api_key=%s' % (host, api_key) data_url =...