Search found 67 matches
- Thu Jan 07, 2021 4:14 pm
- Forum: General Discussion and Questions
- Topic: Async main and WebREPL
- Replies: 2
- Views: 1896
Async main and WebREPL
I am trying to figure our why this code https://github.com/divergentti/kanalanautomaatio/blob/master/esp32-hcr-04-steppermotor4curtain/main.py prohibits webepl to run. Code seems to work fine, distance is read, stepper motor is rotated, but if I try to connect to the ESP32 with WebREPL client, conne...
- Sat Dec 19, 2020 12:03 pm
- Forum: Programs, Libraries and Tools
- Topic: Timers and/or uasyncio
- Replies: 7
- Views: 3947
Re: Timers and/or uasyncio
Thanks again Peter. I only very recently started to experiment with at asynchronous coding, so this is helpful. I'll be trying to implement all I need without timers, if only as a learning experience. In case anybody is interested, I'm a stable isotope geochemist and this project aims to design fro...
- Wed Dec 09, 2020 7:01 am
- Forum: Programs, Libraries and Tools
- Topic: DHT library bug
- Replies: 0
- Views: 2005
DHT library bug
With ESP32 Wroom, import dht, sensor.read()-mehod must be broken. FW esp32-idf3-20200902-v1.13.bin. When temperature is below 0C, temperature value for dht.read is -3276.7. Moisture information seems to be OK. Setup has been running fine since June, but now when temperature outside is below 0C, prob...
- Fri Dec 04, 2020 9:36 am
- Forum: General Discussion and Questions
- Topic: 'NoneType' object isn't iterable with UART MH-Z19 sensor
- Replies: 3
- Views: 1834
Re: 'NoneType' object isn't iterable with UART MH-Z19 sensor
Thank you so much Peter! It started working first try once I changed write-method to asyncio.StreamWriter-method. I made "kirjoittaja" = writer and "lukija" = reader and then replaced as an example: - self.sensori.write(self.LUKU_KOMENTO) -> await self.kirjoittaja(self.LUKU_KOMENTO) - and lukukehys ...
- Thu Dec 03, 2020 2:01 pm
- Forum: General Discussion and Questions
- Topic: 'NoneType' object isn't iterable with UART MH-Z19 sensor
- Replies: 3
- Views: 1834
'NoneType' object isn't iterable with UART MH-Z19 sensor
Hello all. I am reading MH-Z19 sensor asynchronously in the following script (I apologize Finnish language). For some reason first read brings type error, but all subsequent reads works fine. The sensor is read from the UART2 of ESP32-Wroom32. Problem is more or less cosmetic because it happens just...
- Sun Nov 29, 2020 10:39 am
- Forum: ESP32 boards
- Topic: WiFi or BLE for mobile phone connectivity?
- Replies: 1
- Views: 1132
WiFi or BLE for mobile phone connectivity?
I am drafting some sort of pan and tilt for ~1 kg Nikon P900 camera. With Nikon I can use remotely WiFi (NFC) to control camera, which to my understanding means that I shall control pan and tilt turntable with bluetooth, because mobile phone's wifi is hooked to Nikon. So, machanical design I will do...
- Tue Nov 24, 2020 2:32 pm
- Forum: General Discussion and Questions
- Topic: How to exec py-file as a main.py replacement?
- Replies: 3
- Views: 1747
Re: How to exec py-file as a main.py replacement?
Perhaps this thread helps viewtopic.php?t=6179
- Thu Nov 19, 2020 1:39 pm
- Forum: ESP32 boards
- Topic: Official touch display with ESP32.
- Replies: 4
- Views: 4251
Re: Official touch display with ESP32. And a query.
This is interesting topic. I am about to begin my indoorairquality measurement setup. Meanwhile I am waiting components to arrive, I implemented simple OLED (SPI) and CCS811 sensor script. Later I will replace CCS811 with NIR (MH-Z19) and add either AHT10 or BMP280 for temp and rh and when those are...
- Wed Nov 04, 2020 11:01 am
- Forum: General Discussion and Questions
- Topic: Asyncio and WebREPL
- Replies: 2
- Views: 2287
Re: Asyncio and WebREPL
It works here, and not only that. I have a picoweb application with 4 additional uasyncio tasks plus webrepl, utelnetserver and uftpd all running happily together on one ESP32. Are you sure that webrepl is being started? The setup normally just tacks the import and start() at the end of boot.py. If...
- Mon Nov 02, 2020 1:17 pm
- Forum: General Discussion and Questions
- Topic: Asyncio and WebREPL
- Replies: 2
- Views: 2287
Asyncio and WebREPL
This is propably one of those stupid questions, but anyways ... is there way to check webrepl status? I converted my motion sensor script to asyncio and for some reason webrepl, which is activated in the boot.py, is not responsive anymore. Command: help (webrepl) gives me: object <module 'webrepl' f...