<r>Coming from software. My analog soil moisture sensor reads raw ADC (0-4095), but I need % moisture. Calibration confuses me.<br/>
<br/>
<B><s>[b]</s>What I did:<e>[/b]</e></B>
<LIST><s>[list]</s>
<LI><s>[*]</s>Dry sensor in air: reads ~3200 (call this 0%)</LI>
<LI><s>[*]</s>Sensor in water: reads ...
Search found 12 matches
- Wed Jul 08, 2026 8:00 am
- Forum: General Sensor Help
- Topic: Two-point sensor calibration in code, is this the right approach?
- Replies: 0
- Views: 2851
- Mon Jul 06, 2026 2:00 am
- Forum: MicroPython
- Topic: Pico workflow: Thonny vs mpremote vs rshell, what stuck?
- Replies: 0
- Views: 6341
Pico workflow: Thonny vs mpremote vs rshell, what stuck?
<r>MicroPython on Pico. Started with Thonny (easy REPL). Now project has 6 files, Thonny file management painful.<br/>
<br/>
<B><s>[b]</s>Tried:<e>[/b]</e></B>
<LIST><s>[list]</s>
<LI><s>[*]</s>Thonny: great REPL, clunky multi-file</LI>
<LI><s>[*]</s>mpremote: CLI, scriptable, steep start</LI>
<LI ...
<br/>
<B><s>[b]</s>Tried:<e>[/b]</e></B>
<LIST><s>[list]</s>
<LI><s>[*]</s>Thonny: great REPL, clunky multi-file</LI>
<LI><s>[*]</s>mpremote: CLI, scriptable, steep start</LI>
<LI ...
- Thu Jul 02, 2026 11:00 pm
- Forum: CircuitPython
- Topic: CircuitPython project management, libraries breaking between projects
- Replies: 0
- Views: 6475
CircuitPython project management, libraries breaking between projects
<r>Three CircuitPython boards on my desk. Project A needs adafruit_sensor 5.x, project B needs 4.x. Different builds break each other.<br/>
<br/>
From Python web world, I would use venv. CircuitPython does not have that.<br/>
<br/>
<B><s>[b]</s>Options found:<e>[/b]</e></B>
<LIST><s>[list]</s>
<LI ...
<br/>
From Python web world, I would use venv. CircuitPython does not have that.<br/>
<br/>
<B><s>[b]</s>Options found:<e>[/b]</e></B>
<LIST><s>[list]</s>
<LI ...
- Tue Jun 30, 2026 2:00 am
- Forum: Raspberry Pi Pico
- Topic: Pi Pico _thread vs uasyncio, when to use which?
- Replies: 0
- Views: 5821
Pi Pico _thread vs uasyncio, when to use which?
<r>Coming from web Python. MicroPython on Pico gives me both _thread (run on core 1) and uasyncio. When to pick which?<br/>
<br/>
<B><s>[b]</s>What I figured out:<e>[/b]</e></B>
<LIST><s>[list]</s>
<LI><s>[*]</s>_thread = dedicated CPU core, hardware parallel, good for hard-real-time tasks (motor ...
<br/>
<B><s>[b]</s>What I figured out:<e>[/b]</e></B>
<LIST><s>[list]</s>
<LI><s>[*]</s>_thread = dedicated CPU core, hardware parallel, good for hard-real-time tasks (motor ...
- Sat Jun 27, 2026 11:00 am
- Forum: Raspberry Pi Pico
- Topic: Pi Pico vs ESP32 for MicroPython beginners
- Replies: 0
- Views: 2469
Pi Pico vs ESP32 for MicroPython beginners
<r>Coming from Python web background. Trying both boards for prototyping.<br/>
<br/>
<B><s>[b]</s>Pi Pico W:<e>[/b]</e></B> simpler MicroPython port, less arbitrary 'why doesn't this work' moments. Slower (133MHz dual M0+). WiFi works but limited (no BLE).<br/>
<br/>
<B><s>[b]</s>ESP32:<e>[/b]</e ...
<br/>
<B><s>[b]</s>Pi Pico W:<e>[/b]</e></B> simpler MicroPython port, less arbitrary 'why doesn't this work' moments. Slower (133MHz dual M0+). WiFi works but limited (no BLE).<br/>
<br/>
<B><s>[b]</s>ESP32:<e>[/b]</e ...
- Thu Jun 25, 2026 2:00 am
- Forum: MicroPython
- Topic: Pi Pico W as MQTT client, asyncio code that works
- Replies: 0
- Views: 2134
Pi Pico W as MQTT client, asyncio code that works
<r>Built sensor node publishing BME280 to Mosquitto. asyncio + umqtt.simple combo works with sharp edges. Sharing for next person.<br/>
<CODE><s>[code]</s>import uasyncio as asyncio
from machine import Pin, I2C
from umqtt.simple import MQTTClient
import network, bme280
broker = '192.168.1.10 ...
<CODE><s>[code]</s>import uasyncio as asyncio
from machine import Pin, I2C
from umqtt.simple import MQTTClient
import network, bme280
broker = '192.168.1.10 ...
- Thu May 14, 2026 8:00 am
- Forum: MicroPython
- Topic: Pi Pico W as MQTT client, full asyncio code that works
- Replies: 0
- Views: 15655
Pi Pico W as MQTT client, full asyncio code that works
<r>Building a sensor node that publishes BME280 readings to a Mosquitto broker. asyncio + umqtt.simple combo works but had some sharp edges. Sharing for the next person.<br/>
<CODE><s>[code]</s>import uasyncio as asyncio
from machine import Pin, I2C
from umqtt.simple import MQTTClient
import ...
<CODE><s>[code]</s>import uasyncio as asyncio
from machine import Pin, I2C
from umqtt.simple import MQTTClient
import ...
- Tue May 12, 2026 5:02 am
- Forum: MicroPython
- Topic: MicroPython async/await on Pico, sensor logger example
- Replies: 0
- Views: 7667
MicroPython async/await on Pico, sensor logger example
<r>After yung shock ng REPL discovery (other thread), I went down the MicroPython rabbit hole. asyncio works on Pico, and once you wrap your head around it, much cleaner than blocking sleep() loops.<br/>
<br/>
Quick example I wrote, logs a DHT22 every 30 seconds AND blinks an LED every 500ms, in ...
<br/>
Quick example I wrote, logs a DHT22 every 30 seconds AND blinks an LED every 500ms, in ...
- Tue May 05, 2026 11:44 am
- Forum: MicroPython
- Topic: REPL on MicroPython - was this always possible??
- Replies: 1
- Views: 3219
REPL on MicroPython - was this always possible??
<t>Mga 1 hour lang ako on the Pico W with Thonny. Connected via USB, opened the REPL, started typing Python directly into the running microcontroller. Read a sensor in real-time. No compile-upload cycle.<br/>
<br/>
Software dev ako, sanay ako sa "save file, run python script, see result" loop. To be ...
<br/>
Software dev ako, sanay ako sa "save file, run python script, see result" loop. To be ...
- Tue May 05, 2026 11:44 am
- Forum: Raspberry Pi Pico
- Topic: First Pi Pico - coming from Arduino, ano ang catch?
- Replies: 0
- Views: 8692
First Pi Pico - coming from Arduino, ano ang catch?
<r>Just got my first Pi Pico (regular, not the W variant). Coming from a few years of Arduino Uno/Nano work. So far impressed: cheaper than a Nano, faster, more memory.<br/>
<br/>
Pero sigurado may catch right? May mga things kasi Arduino made easy that Pico does differently, at what point will I ...
<br/>
Pero sigurado may catch right? May mga things kasi Arduino made easy that Pico does differently, at what point will I ...