Search found 34 matches

by Divergentti
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: 76

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 ...
by Divergentti
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: 76

'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...
by Divergentti
Sun Nov 29, 2020 10:39 am
Forum: ESP32 boards
Topic: WiFi or BLE for mobile phone connectivity?
Replies: 1
Views: 73

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...
by Divergentti
Thu Nov 19, 2020 1:39 pm
Forum: ESP32 boards
Topic: Official touch display with ESP32.
Replies: 4
Views: 1076

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...
by Divergentti
Wed Nov 04, 2020 11:01 am
Forum: General Discussion and Questions
Topic: Asyncio and WebREPL
Replies: 2
Views: 325

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...
by Divergentti
Mon Nov 02, 2020 1:17 pm
Forum: General Discussion and Questions
Topic: Asyncio and WebREPL
Replies: 2
Views: 325

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...
by Divergentti
Sat Oct 24, 2020 8:52 am
Forum: ESP32 boards
Topic: MQTT failed to connect to broker
Replies: 1
Views: 152

Re: MQTT failed to connect to broker

Have you checked what broker side logs tells you for disconnection reason? Perhaps password missing?

I use typically:

client = MQTTClient(CLIENT_ID, MQTT_SERVERI MQTT_PORT, MQTT_USER, MQTT_PASSWORD)

where capital variables comes from variables.py
by Divergentti
Sat Oct 24, 2020 8:45 am
Forum: General Discussion and Questions
Topic: Using webrepl instead of USB connection with Thonny IDE
Replies: 24
Views: 2310

Re: Using webrepl instead of USB connection with Thonny IDE

I presume websocket_helper.py, webrepl_pli.py and FileSaver.js https://github.com/micropython/webrepl can be added to Thonny and other IDEs as is? Perhaps these same standard libraries can be used for some sort of central management as well.
by Divergentti
Thu Oct 22, 2020 5:36 pm
Forum: General Discussion and Questions
Topic: Using webrepl instead of USB connection with Thonny IDE
Replies: 24
Views: 2310

Re: Using webrepl instead of USB connection with Thonny IDE

Hi, After trying out nearly a dozen IDE's, I've finally settled for Thonny. Seems really great for small to medium projects with MicroPython and my ESP8266. Only thing is, having USB cable plugged in during development is extremely inconvenient, especially with moving projects (robots and such). Ho...