Search found 38 matches

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

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

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

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

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

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

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

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

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

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...
by Primesty
Sun Sep 06, 2020 3:40 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 4362

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

Hey, thanks - found it! I tried a simple example from machine import Pin, Timer, I2C import dht import time import uasyncio import gc from aswitch import Switch, Pushbutton led2 = Pin(19, Pin.OUT) #green led4 = Pin(33, Pin.OUT) #red sw = Pin(18, Pin.IN, Pin.PULL_UP) switch = Pushbutton(sw, suppress ...