Search found 30 matches

by fstengel
Mon Apr 22, 2019 2:32 pm
Forum: ESP32 boards
Topic: MicroPython M5Stack support
Replies: 8
Views: 1439

Re: MicroPython M5Stack support

One thing about the DTH series is their low sample rate (around 1Hz). It is very possible you overwhelm the sensor by requesting values too frequently. Another thing would be to encapsulate the measures within a try: except: block and manage the errors...
by fstengel
Sat Apr 20, 2019 6:46 am
Forum: General Discussion and Questions
Topic: Function missing 1 required positional arguments error on esp32
Replies: 3
Views: 239

Re: Function missing 1 required positional arguments error on esp32

I think the problem is in the to_bytes() method because if I remove it the error is not showing but the program is not functional. Any ideas on this ? You are missing the parameter specifying endianness. One should write: a=12345 print(a.to_bytes(2,'big')) print(a.to_bytes(2,'little')) and that eve...
by fstengel
Mon Mar 25, 2019 5:47 am
Forum: ESP32 boards
Topic: M5Stack restarts every 30 seconds
Replies: 3
Views: 232

Re: M5Stack restarts every 30 seconds

Just to be sure: have you tried running your M5Stack using a USB charger instead of your computer? Apart from resetting the WDT, is there something else hapening in your code? The reset could very well be caused by a brown-out due to excessive current consumption. I had that on an ESP8266 connected ...
by fstengel
Thu Mar 21, 2019 5:56 pm
Forum: ESP32 boards
Topic: How to read from a i2c sensor and print on a i2c display when both use different init pins
Replies: 14
Views: 800

Re: How to read from a i2c sensor and print on a i2c display when both use different init pins

That's the weird bit: normally the bno's address should be 0x28 or 0x29, depending on the state of its COM3 pin. If you are using the adafruit package, this pin is accessed through the ADR pin and defaults to COM3 low and 0x28 as the I2C address. So first things first: check if your bno is properly ...
by fstengel
Thu Mar 21, 2019 12:38 pm
Forum: ESP32 boards
Topic: How to read from a i2c sensor and print on a i2c display when both use different init pins
Replies: 14
Views: 800

Re: How to read from a i2c sensor and print on a i2c display when both use different init pins

Weird. The scan should consistently show 40 (or 41) not a mix of 40, 41 and none of the others.
by fstengel
Wed Mar 20, 2019 4:57 pm
Forum: ESP32 boards
Topic: How to read from a i2c sensor and print on a i2c display when both use different init pins
Replies: 14
Views: 800

Re: How to read from a i2c sensor and print on a i2c display when both use different init pins

What addresses do you see? The bno055 chip should answer 0x28 or 0x29, and the SSD1306 0x3c or 0x3d
by fstengel
Mon Mar 18, 2019 3:22 pm
Forum: General Discussion and Questions
Topic: How to get CPU load approximate value on Micropython ?
Replies: 3
Views: 296

Re: How to get CPU load approximate value on Micropython ?

Excluding the UNIX port, I am not quite sure that one can get such a figure. In many cases micropython is running on bare metal without any os, so the "load" would be 100%...
by fstengel
Fri Mar 15, 2019 12:24 pm
Forum: General Discussion and Questions
Topic: Simple web interface for my ESP?
Replies: 1
Views: 247

Re: Simple web interface for my ESP?

You could use picoweb to implement a very simple web server on your microcontroller.
by fstengel
Tue Mar 12, 2019 3:36 pm
Forum: General Discussion and Questions
Topic: Can I run specify .py file on board via REPL prompt after boot done ?
Replies: 3
Views: 332

Re: Can I run specify .py file on board via REPL prompt after boot done ?

water wrote:
Tue Mar 12, 2019 3:20 pm
Can I run specify .py file (e.g aaa.py store on Micropython board , not boot.py or main.py .) via REPL prompt after boot done?

Code: Select all

import aaa
shoud do the trick. note: no .py extension, just the file (module) name...
by fstengel
Tue Mar 12, 2019 8:34 am
Forum: General Discussion and Questions
Topic: Something like Threading/Queue in MicroPython?
Replies: 7
Views: 410

Re: Something like Threading/Queue in MicroPython?

Not as such. However there are alternatives on the ESP32: uasyncio , but that might cause you to completely rewrite your scripts use lightweight threads with the _thread module. It is documented for the lobo port . However, I cannot find documentation for the mainline (apart form the fact that it is...