Search found 43 matches

by newb
Sat Mar 19, 2022 6:38 am
Forum: ESP8266 boards
Topic: ESP8266 and JSN-SR04T-2.0 inconsistent results
Replies: 3
Views: 4801

Re: ESP8266 and JSN-SR04T-2.0 inconsistent results

Sorry to resurrect this topic. It seems your comments are opposite to the code: #Set and hold the trigger low. import utime trigger.value(1) utime.sleep(2) #Set the trigger high for 15 microseconds trigger.value(0) utime.sleep_us(15) trigger.value(1) and I'm wondering is you keep trigger low for 15 ...
by newb
Thu Oct 14, 2021 8:44 pm
Forum: ESP8266 boards
Topic: How to compile firmware?
Replies: 10
Views: 48474

Re: How to compile firmware?

Yes! Please document it. There hasn't been up to date tutorial on this topic for years.
by newb
Mon Sep 27, 2021 6:30 pm
Forum: ESP8266 boards
Topic: How to compile firmware?
Replies: 10
Views: 48474

How to compile firmware?

Hello, is there an up-to-date tutorial on how to compile Micropython esp8266 firmware? My goal is to byte freeze my code into the firmware. I was looking at pfalcon's: https://github.com/pfalcon/esp-open-sdk but it's not supported anymore and a lot of library dependancies are broken, so I can't real...
by newb
Sat Aug 14, 2021 12:37 pm
Forum: General Discussion and Questions
Topic: "Logging" module, write to file
Replies: 0
Views: 862

"Logging" module, write to file

Hi, I've got a Raspberry Pico and I want to log the errors to a file on the flash. I'm looking at the "logging" module, but there is no documentation for it. I listed the methods in it, but I can't find an alternative to the logging.FileHandler, which is in "big" Python logging module. So how do you...
by newb
Wed Jun 09, 2021 7:07 pm
Forum: General Discussion and Questions
Topic: POST request headers
Replies: 0
Views: 886

POST request headers

Not particularly a uPython issue, but someone might help. I'm trying to use this code on esp8266 https://github.com/cpopp/MicroPythonSamples/blob/master/MicroPythonSamples/networkconfig.py for sending POST request to the form. However when sending the data from Safari, no POST variables are passed t...
by newb
Sat May 29, 2021 7:50 am
Forum: Raspberry Pi microcontroller boards
Topic: IRQ debounce
Replies: 3
Views: 4799

Re: IRQ debounce

I think I solved the problem with the following code from machine import Pin,Timer import utime rain_count=0 rain_sensor=Pin(7,Pin.IN, Pin.PULL_UP) timer = Timer() def tipped(timer): global rain_count rain_count+=1 def debounce(pin): timer.init(mode=Timer.ONE_SHOT, period=200, callback=tipped) rain_...
by newb
Sat May 29, 2021 7:02 am
Forum: Raspberry Pi microcontroller boards
Topic: IRQ debounce
Replies: 3
Views: 4799

IRQ debounce

Hi, I have a rainfall sensor which I've hooked to a Raspberry Pi Pico. My testing code is the following: from machine import Pin, disable_irq, enable_irq import utime rain_count=0 rain_sensor=Pin(7, Pin.IN, Pin.PULL_UP) def a(p): global rain_count state=disable_irq() utime.sleep_ms(50) if p.value():...
by newb
Tue May 11, 2021 3:25 am
Forum: ESP32 boards
Topic: porting function for IP5306 chip to micropython
Replies: 1
Views: 1534

porting function for IP5306 chip to micropython

Hello, I'm struggling waking up a TTGO t-call board from deep sleep when board is powered only on battery. It appears the power chip ip5306 (an i2c device) powers down the whole circuit if the current is minimal, such as the case with deep sleep of the onboard esp32. There seems to be a solution by ...
by newb
Fri Jan 08, 2021 6:05 pm
Forum: ESP32 boards
Topic: TTGO T-WATCH-2020
Replies: 87
Views: 110252

Re: TTGO T-WATCH-2020

Great! Just flashed it and it works good so far.
I haven't dealt with wasp-os before and I need to figure out the file structure and how to get wifi going. I'll follow your progress on this :)
by newb
Thu Jan 07, 2021 7:51 pm
Forum: ESP32 boards
Topic: TTGO T-WATCH-2020
Replies: 87
Views: 110252

Re: TTGO T-WATCH-2020

if you have a compiled binary could you please upload that to your git repo? I just got my watch and want to try it without compiling from scratch. :D