Search found 42 matches

by Primesty
Mon Mar 22, 2021 9:52 pm
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 30
Views: 7064

Re: PMS5003 air quality sensor library

Hi @kevinkk525, I'm trying to set up the PMS5003 example on an ESP32 (with MicroPython 1.14) from your github but seem to be getting No response to wakeup command errors. Weirdly enough, when I run pm.isActive() it returns True. >>> pm.isActive() True This is my UART sertting: uart = UART(1, baudrat...
by Primesty
Fri Mar 19, 2021 2:07 am
Forum: General Discussion and Questions
Topic: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio
Replies: 3
Views: 277

Re: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio

So, I think I figured it out!!!! First, I re-wrote the run() function in blynk-lib to include async functionality. async def run(self): while True: try: if not self.connected(): self.connect() else: try: self.read_response(timeout=self.SOCK_TIMEOUT) if not self.is_server_alive(): self.disconnect('Se...
by Primesty
Thu Mar 18, 2021 7:42 pm
Forum: General Discussion and Questions
Topic: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio
Replies: 3
Views: 277

Re: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio

Thanks for the answer, Peter! Yes, I removed the `gc` stuff. You're right that didn't really matter. It looks like the run() function is not written as an async function. So I re-wrote the run() function with async in the actual blynk lib: async def run(self): while True: try: if not self.connected(...
by Primesty
Thu Mar 18, 2021 1:29 am
Forum: General Discussion and Questions
Topic: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio
Replies: 3
Views: 277

Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio

Hi all, I'm working on a project on an ESP32 with MicroPython 1.14, in which I would like to combine blynk and other asynchronous tasks. I'm using blynklib_mp.mpy to reduce the RAM usage. My problem arises when I try to combine blynk and uasyncio. The 'pure' blynk code (based on their examples - htt...
by Primesty
Sat Nov 14, 2020 7:25 pm
Forum: Hardware Projects
Topic: ESP32 asynchronous temperature reader/alert with bme280 and thermocouple (MAX 31855)
Replies: 0
Views: 1561

ESP32 asynchronous temperature reader/alert with bme280 and thermocouple (MAX 31855)

This project uses a BME280 sensor and a MAX31855 thermocouple amplifier from Adafruit (via SPI) to display environment temperature and the thermocouple lets you measure temperature against a set target temperature (via rotary encoder). The output is displayed on a 1602 LCD, and the button on the enc...
by Primesty
Sat Nov 14, 2020 7:19 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 6921

Re: uasyncio - How detect the end task in another task.

After many hours of fine-tuning, I'm finally able to share my first 'big' Micropython project. A temp-reader, which uses two different temperature senors: https://github.com/mraess/micropython_public I'm sure there are things that can be improved and written more elegantly, but for now it works and ...
by Primesty
Sun Sep 27, 2020 2:19 pm
Forum: Drivers for External Components
Topic: MAX31855 Driver
Replies: 12
Views: 3983

Re: MAX31855 Driver

Hi guys, Thanks for all the input here. I'll def check it out. I was actually to get it to work without a 'real' driver on my ESP31 (MicroPython v1.13) based on this old adafruit document: https://cdn-learn.adafruit.com/downloads/pdf/micropython-hardware-spi-devices.pdf from machine import Pin, SPI ...
by Primesty
Fri Sep 25, 2020 3:14 pm
Forum: Drivers for External Components
Topic: MAX31855 Driver
Replies: 12
Views: 3983

Re: MAX31855 Driver

Hey deshipu the link for the max31855 driver is not working anymore. Does anyone happen to have the raw .py driver file they’d be willing to share with me and/or are aware of another driver that works for the adafruit max31855 thermocouple breakout?

I’d appreciate it!
by Primesty
Thu Sep 10, 2020 11:40 pm
Forum: MicroPython pyboard
Topic: Best OS to support development with MicroPython and Pyboard..
Replies: 17
Views: 4208

Re: Best OS to support development with MicroPython and Pyboard..

Happy to report that I was able to install Ubuntu 18.04 successfully on my Chromebook with crouton, so it can run in parallel on a shared filesystem - so far it works like a charm and connects without a hitch to ESP32/8266 via Thonny, and Putty - have yet to try rshell. Ubuntu 20.04 wouldn't install...
by Primesty
Thu Sep 10, 2020 3:20 am
Forum: MicroPython pyboard
Topic: Best OS to support development with MicroPython and Pyboard..
Replies: 17
Views: 4208

Re: Best OS to support development with MicroPython and Pyboard..

Awesome! Thanks for all the help! I’ll get to it and see how it goes. Not having to install drivers will certainly help!