50 ms·
Going to disagree here, i2c and spi work fine in micropython. Is it as fast as C? No. Does that mean it's useless? No. The absolute coolest thing is to take a
by ChuckMcM 6y ago
Going to disagree here, i2c and spi work fine in micropython.
Is it as fast as C? No. Does that mean it's useless? No.
The absolute coolest thing is to take a $2 Wemos D1 clone, put micropython on it, hook it to a sensor (I've been using temp and humidity sensors lately) and have it periodically fetch "http://webserver-ip/temp?t=<value>&p=<value>" http://webserver-ip/temp?t=<value>&p=<value>" every 10 seconds and have a little python webserver sitting on an machine on your network that is stuffing the values into influx or some other DB.
This is trivial to do, and takes little to no embedded coding experience on the ESP8266. That's a win as far as I am concerned.
- sitkack 6y agoNot only that, but you can live code in the repl on the same device. One can solve a physical problem in less than 15 minutes using these devices.
- dcmorton 6y agoI've done something pretty similar that with my project here [0]. Instead of using MQTT the ESP32 feeds directly to an InfluxDB database. [0] - https://github.com/dcmorton/esp32-dht22-upython https://github.com/dcmorton/esp32-dht22-upython