Search found 13 matches

by APinto
Thu Jul 07, 2022 11:16 am
Forum: ESP8266 boards
Topic: Memory management primer
Replies: 2
Views: 1534

Re: Memory management primer

Hello Jimmo, thank you! I'll try to get some questions I have today, and put there here.

AP
by APinto
Tue Jul 05, 2022 12:33 pm
Forum: ESP8266 boards
Topic: Memory management primer
Replies: 2
Views: 1534

Memory management primer

Hello, I am looking for a reference that explains how memory is managed with MicroPython on the ESP8266. I know the basic facts, that my D1 Mini has 4MB of flash and that the ESP8266 has 80KB of RAM. I know that I can check how much heap is available with gc.mem_free(). But I don't really know what ...
by APinto
Thu Jun 23, 2022 2:08 pm
Forum: ESP8266 boards
Topic: Cannot read sensor from UART0 RX
Replies: 10
Views: 3654

Re: Cannot read sensor from UART0 RX

I don't have one, but the following page says:

https://revspace.nl/VINDRIKTNING
The datasheet of the PM1006 mentions that it takes 5V as power and communicates using 4.5V levels.
But I guess we can only definitely find our by pocking at the signal.

AP
by APinto
Thu Jun 23, 2022 1:08 pm
Forum: ESP8266 boards
Topic: Cannot read sensor from UART0 RX
Replies: 10
Views: 3654

Re: Cannot read sensor from UART0 RX

Hello again, I can confirm that the 1.19.1 firmware patched with SoftUART runs as expected on any of the digital pins. So, Richard, this must be what you described, the sensor can't bring the UART RX to low.

I'll write up a tutorial describing the problem and how to fix it.

Thank you!

AP
by APinto
Thu Jun 23, 2022 12:33 am
Forum: ESP8266 boards
Topic: Cannot read sensor from UART0 RX
Replies: 10
Views: 3654

Re: Cannot read sensor from UART0 RX

I've found the build instructions:
https://github.com/micropython/micropyt ... structions

The Docker approach for the cross compilers mess works like a charm!

AP
by APinto
Wed Jun 22, 2022 11:39 pm
Forum: ESP8266 boards
Topic: Cannot read sensor from UART0 RX
Replies: 10
Views: 3654

Re: Cannot read sensor from UART0 RX

I'm trying to compile the latest 1.19.1 with the patch and can't seem to get the environment properly setup with Ubuntu. Do you have a reference I can use with the instruction to compile the ESP8266 firmware please?
by APinto
Wed Jun 22, 2022 9:47 pm
Forum: ESP8266 boards
Topic: Cannot read sensor from UART0 RX
Replies: 10
Views: 3654

Re: Cannot read sensor from UART0 RX

Thank you, I'll have a look at the pull request. And yes, both the sensor and the D1 Mini share grounds :)
by APinto
Wed Jun 22, 2022 4:56 pm
Forum: ESP8266 boards
Topic: Cannot read sensor from UART0 RX
Replies: 10
Views: 3654

Re: Cannot read sensor from UART0 RX

Thank you Robert! Let me just replay that to you: the problem is that at a signal level the D1 Mini struggles to communicate with the IKEA sensor. What would be my options then? The repo that I shared in the post manages to solve the problem by using C and a software UART on regular digital pins. Bu...
by APinto
Wed Jun 22, 2022 2:57 pm
Forum: ESP8266 boards
Topic: Cannot read sensor from UART0 RX
Replies: 10
Views: 3654

Cannot read sensor from UART0 RX

Hello, I'm trying to add a D1 Mini board to an IKEA Vindriktning air quality sensor using the tutorial at https://github.com/Hypfer/esp8266-vindriktning-particle-sensor . I want to implement it in MicroPython rather than C, like in the repo. I am able to interface the sensor with a Raspberry Pi Zero...
by APinto
Tue Mar 08, 2022 12:48 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico freezes very regularly
Replies: 6
Views: 3668

Re: Pico freezes very regularly

Thank you, I'll give it a go. I really like the Visual Studio Code integration though, it would be a shame if I had to change!

I suspect that the USB link gets into a weird state and the only way to fix it is to power down the board and relink. But I can't find a way to debug it.