Search found 28 matches

by newb
Thu Jan 03, 2019 7:43 am
Forum: Drivers for External Components
Topic: 64x32 led matrix driver
Replies: 4
Views: 1156

Re: 64x32 led matrix driver

Happy New Year to all! I just came across this ESP8266/32 led matrix driver: https://github.com/2dom/PxMatrix I'll appreciate if anyone with experience check it out and confirm how easy it would be to port it to uPython. It could probably make use of Peter's Writer class. I got my 32x64 led matrix (...
by newb
Sat Dec 15, 2018 4:29 pm
Forum: General Discussion and Questions
Topic: Measuring 12v battery with ADC
Replies: 2
Views: 345

Re: Measuring 12v battery with ADC

Thanks for your guidance, Robert. I replaced the resistors in series with one 1M and one 2k2 one, added a calibration factor and all seems relatively correct. I do 10 readings and get the average. I suppose this is the best I can get. I found this formula for adjusting the scale factor. I'll leave i...
by newb
Sat Dec 15, 2018 12:27 pm
Forum: General Discussion and Questions
Topic: Measuring 12v battery with ADC
Replies: 2
Views: 345

Measuring 12v battery with ADC

Hi community, I've got the following setup: 12v battery-->voltage divider-->ADC pin of NodeMCU v3 (esp8266) I read this particular board has its own internal voltage divider (220kOhm and 110kOhm resistors) which allows 3.3V at the ADC pin, bringing it to 1V at the esp chip. I've put between the batt...
by newb
Mon Dec 10, 2018 7:36 am
Forum: ESP8266 boards
Topic: Library to deep sleep for days for esp8366
Replies: 13
Views: 4500

Re: Library to deep sleep for days for esp8366

I know the library is a bit old, but it seems line 53 of hourlysleeper.py:

Code: Select all

esp.deepsleep(1000000 * duration)
doesn't do anything. The ESP resets without going to deep sleep. I'm not sure why.
I had to replace it with the rtc.ALARM approach to get the long hours sleep working.
by newb
Wed Dec 05, 2018 2:35 pm
Forum: ESP32 boards
Topic: An error which occur in time
Replies: 4
Views: 392

Re: An error which occur in time

So it seems (not 100% sure), the hanging is caused by timeout of the post request using the requests lib. I tried to rewrite my code with uasyncio, but it might be a bit overkill as I have no simultaneous routines running except for the urequests' post request hanging. I tried to implement the examp...
by newb
Mon Dec 03, 2018 4:46 pm
Forum: ESP32 boards
Topic: An error which occur in time
Replies: 4
Views: 392

Re: An error which occur in time

Thank you, Daniel and Peter! I'll go straight for the wifi/sockets issue.

Peter, this is the third obstacle which I'm facing in uPython and which seems to be solvable with your uasyncio library.
Thanks you for your great thorough documentation!
by newb
Fri Nov 30, 2018 7:38 am
Forum: ESP32 boards
Topic: An error which occur in time
Replies: 4
Views: 392

An error which occur in time

Hi, I have an esp32 with standard uPython port, which: 1. connects to wifi 2. gets proper time from ntp 3. pulls some data from two APIs with urequests library 4. shows the data on screen 5. goes to deep sleep for 15 min Sometime this works for 3 days, sometimes the operation freezes and no update o...
by newb
Fri Nov 30, 2018 7:16 am
Forum: General Discussion and Questions
Topic: [Solved] Can't access REPL on macOS - Works on Windows
Replies: 13
Views: 736

Re: Can't access REPL on macOS - Works on Windows

Try to reset the module, while connected to the UART. I have same issue and I'm using Mac. I'm also using Esplorer (java based) as it has a proper interface and Micropython reference as well, unlike 'screen'.
by newb
Tue Sep 25, 2018 4:37 pm
Forum: Drivers for External Components
Topic: 64x32 led matrix driver
Replies: 4
Views: 1156

Re: 64x32 led matrix driver

Thank you both. @shaoziyang: I think your code can't be easily adapted, as the interface is different @mcauser: The reason I chose this HUB08 led matrix is the price - $9 for 32x64 matrix is pretty good deal. If I go for chained MAX7219, it will become more expensive (I might try it though) I would ...
by newb
Mon Sep 24, 2018 1:10 pm
Forum: Drivers for External Components
Topic: 64x32 led matrix driver
Replies: 4
Views: 1156

64x32 led matrix driver

Hello all, has anyone worked on a micropython driver for led matrix displays such as this one https://www.aliexpress.com/item/Replace-F3-75-P4-75-Dot-Matrix-LED-Module-Red-Color-304-152mm-P4-75-Indoor/32621769720.html?spm=a2g0s.9042311.0.0.51694c4dl3bUzq This one in particular is only one colour but...