You might find parts of https://github.com/karfas/upy-esp32-lib useful.
Besides that, two of my pull requests hopefully increase the usability of RTC memory:
https://github.com/micropython/micropython/pull/7298
https://github.com/micropython/micropython/pull/7133
Search found 193 matches
- Sun Nov 13, 2022 3:39 pm
- Forum: ESP32 boards
- Topic: Persistent data with deepsleep
- Replies: 3
- Views: 36877
- Fri Sep 09, 2022 3:58 pm
- Forum: General Discussion and Questions
- Topic: Continuity Tester
- Replies: 6
- Views: 42673
Re: Continuity Tester
Do the two boards need to share a ground? Both need to share a common (signal) ground. This is the way a simple UART or RS232 works. For longer distances (hundreds of meters) this doesn't work well. You can use a current loop or a RS485 connection there. May I suggest another approach ? Do it like ...
- Wed Aug 24, 2022 8:05 am
- Forum: General Discussion and Questions
- Topic: LVGL_Problem in calling a normal function and animation on button_event
- Replies: 1
- Views: 5806
Re: LVGL_Problem in calling a normal function and animation on button_event
def btn9_event_cb(e): bar1 = lv.bar(lv.scr_act()) bar1.set_size(200, 20) bar1.center() bar1.set_value(20, lv.ANIM.OFF) i = 0 print("hi") parser() I have no experience with LVGL at all, but what do you think will happen with above callback function ? It sets some properties of bar1, OK. It calls par...
- Mon Aug 22, 2022 1:21 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: sgp30 not found [resolved]
- Replies: 4
- Views: 14368
Re: sgp30 not found
If everything is correct, it is well connected, it detects the device This makes no sense at all for me. "If everything is correct, it works" - yes, we all assume that. :shock: But DOES it work ? Do you get the correct address from i2c.scan() ? ... but nothing continues to give an error in that par...
- Sun Aug 21, 2022 9:12 am
- Forum: General Discussion and Questions
- Topic: How to reduce power consumption reduction for a wearbale project
- Replies: 6
- Views: 8389
Re: Power consumption reduction for a wearbale project
Unless it's possible to modify uasyncio to to so between 2 measurements which is impossible I believe. The deep and light sleep modes are similar to a new start of the micropython interpreter or a reset. Unless you need very frequent or continuous sensor readings, it might be worthwhile to redesign...
- Fri Aug 19, 2022 8:56 pm
- Forum: General Discussion and Questions
- Topic: How to reduce power consumption reduction for a wearbale project
- Replies: 6
- Views: 8389
Re: Power consumption reduction for a wearbale project
Sorry, I had my calculation wrong. Simple math (I should use a calculator late at night). hours = capacity / current.
So 2500mAh/30mA => 83 hours (might be enough for your project).
So 2500mAh/30mA => 83 hours (might be enough for your project).
- Fri Aug 19, 2022 8:26 pm
- Forum: micro:bit boards
- Topic: mqtt_as on Pico W - connection error to HiveMQ Cloud Broker
- Replies: 1
- Views: 109187
Re: mqtt_as on Pico W - connection error to HiveMQ Cloud Broker
When this happens initially - during connect(), I would check all network parameters and would analyze on network level: - Firewall (and logs) - Packet sniffer - Broker logs - Encryption required/enabled ? - a few debug prints in MQTTClient If the initial connection succeeds, there must be a reason ...
- Fri Aug 19, 2022 7:54 pm
- Forum: General Discussion and Questions
- Topic: How to reduce power consumption reduction for a wearbale project
- Replies: 6
- Views: 8389
Re: Power consumption reduction for a wearbale project
Your goal of 30mA is in my opinion way too much current for a wearable project. A (quite large) 18650 li-ion battery has -2500mAh, so giving you only 8 hours runtime. What exactly (acc. to datasheet) use your sensors ? You might be able to power them from a GPIO, so giving you full control over thei...
- Wed Aug 17, 2022 10:00 am
- Forum: Raspberry Pi microcontroller boards
- Topic: help please class error
- Replies: 13
- Views: 20779
Re: help please class error
... you are right there is no get_lux() instance yet it is still 0 the code below ... I think the assignment of the set... get is fine, but ... I seem to remember that to perform multiple inheritance ... No. You still don't get it. You must read the values from the sensors at some point in time. Wi...
- Tue Aug 16, 2022 11:41 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: help please class error
- Replies: 13
- Views: 20779
Re: help please class error
There is no problem with the interpreter. YOU simply don't understand how classes work and YOU don't read or understand the answers you got here. It's all there: You need to create an instance first. Try: igs = IntegrateSensor() igs.set_lux() Where the hell is the call to set_lux() in your code ???