Search found 49 matches

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

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

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

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

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

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

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

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!
by Primesty
Wed Sep 09, 2020 1:17 pm
Forum: MicroPython pyboard
Topic: Best OS to support development with MicroPython and Pyboard..
Replies: 17
Views: 12599

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

Thanks for all the tips guys! @dhylands Hmm. I'm currently using Mac OS Catalina and not having any issues. . It seems when I update Catalina, it removes or damages the SilabsUSBDriver for UART, which I then have to reinstall. Furthermore, I've been getting reflush-tree errors on uPyCraft, which ult...
by Primesty
Tue Sep 08, 2020 10:07 pm
Forum: MicroPython pyboard
Topic: Best OS to support development with MicroPython and Pyboard..
Replies: 17
Views: 12599

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

Due to continued driver issues with Mac OSX Catalina, I have decided to go the Linux route as many forum members seem to prefer it to other OS. I'm getting an old chromebook, which I'll use to put Linux on and then exclusively use for micropython dev. What do you guys think is the best Linux distro ...
by Primesty
Tue Sep 08, 2020 2:28 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 32162

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

Hey Pete, you sure can! I read up on it and figured it out with the input on the global stuff from you. I got it to work like this: def foo(): global toggle global blink2_task global blink3_task if toggle: blink2_task.cancel() blink3_task = uasyncio.create_task(blink3(led4)) print('Toggle') else: bl...