Search found 43 matches

by newb
Fri Feb 01, 2019 7:04 pm
Forum: Hardware Projects
Topic: TelegaGraph
Replies: 10
Views: 54688

Re: TelegaGraph

Hi, I'm trying ti get this thermal printer working but I fail to get the right codepage conversion. I think the key is converting the UTF-8 bytearray into a codepage the printer recognises. Here is a self-test printout showing the active codepage iso-8852-5 along with the charset table. codepage.jpg...
by newb
Thu Jan 24, 2019 2:01 pm
Forum: ESP8266 boards
Topic: Feed hardware watchdog timer while in deep sleep
Replies: 4
Views: 4068

Re: Feed hardware watchdog timer while in deep sleep

..and disabled it before deep sleep if it supports it
Aha! Thanks for the idea :D
by newb
Thu Jan 24, 2019 8:24 am
Forum: ESP8266 boards
Topic: Feed hardware watchdog timer while in deep sleep
Replies: 4
Views: 4068

Re: Feed hardware watchdog timer while in deep sleep

Thanks, Kevin. On a second thought, any hangs would happen while esp8266 is working, not in deep sleep mode, so feeding the hardware WDT wouldn't be a problem. Am I right?
by newb
Thu Jan 24, 2019 6:46 am
Forum: ESP8266 boards
Topic: Feed hardware watchdog timer while in deep sleep
Replies: 4
Views: 4068

Feed hardware watchdog timer while in deep sleep

Is it possible to feed hardware watchdog timer such as STWD100 while esp8266 is in deep sleep? Depending on the particular model the WDT's maximum timeout is between 2.24ms and 142ms, but I put my esp8266 for about 30min in deep sleep. I assume you can't work with the esp8266 pins while it's in deep...
by newb
Fri Jan 04, 2019 7:05 am
Forum: General Discussion and Questions
Topic: How can I see Pyboard script output on Mac?
Replies: 3
Views: 2447

Re: How can I see Pyboard script output on Mac?

I'm using ESPlorer (java based) on my Mac, however the downside of it is that it doesn't accept Ctrl+C, so no way to force terminate scripts :) Otherwise it has a nice interface. "screen" is a good built-in option as well.
by newb
Thu Jan 03, 2019 7:43 am
Forum: Drivers for External Components
Topic: 64x32 led matrix driver
Replies: 5
Views: 11076

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: 3601

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: 3601

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: 12742

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: 3417

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...