Minimal LogicAnalyzer #69
Replies: 6 comments 6 replies
-
(I have moved the post to discussions so others will be able to find it 😄) Pretty cool! Btw, have you tested how much time the W lasts with the battery? I would be interested on knowing it. |
Beta Was this translation helpful? Give feedback.
-
Here is a measurement I did with the Pico-W (connect, configure, 2x I2C capture + analysis). Sampling is with 100/s, so the graph does not catch every short spike as you in fact have with WLAN. Some current spikes are hidden below the respective voltage drops. Net result: I have about 60mA mean current, so my little 350mAh LiPo should last five hours. |
Beta Was this translation helpful? Give feedback.
-
I started with the normal pico, but it adds the need for another cable so the W is a much better choice. I can keep it near the circuit under test. In fact it would be great if the GUI would tell me about the battery level. The pico can measure VSYS voltage, using GPIO29/ADC3 giving VSYS/3. Not very exact, but good enough to know when to recharge. |
Beta Was this translation helpful? Give feedback.
-
For most of my project I am using CircuitPython. And they have the following code: https://github.com/adafruit/circuitpython/blob/main/ports/raspberrypi/common-hal/analogio/AnalogIn.c#L82. Of course that is only the high-level part with the switching of the state, but maybe this helps. Also have a look at line 39ff |
Beta Was this translation helpful? Give feedback.
-
Hi. I have prepared a firmware and app with the power info. It will read the voltage and VBUS to show if the device is powered by battery or it is being charged. It will poll the info each 30 seconds when it is in idle, when a capture is running it will stop polling and will retrieve the info immediatelly after the capture. The battery info will be shown only if the device is connected through WiFi, it does not make sense to show it if you have connected it through USB ;) As far as I have tested all has been working correctly, it seems that the trick was the interrupt disabling :) You can download it from here Cheers! |
Beta Was this translation helpful? Give feedback.
-
Works perfectly! A very useful feature, thank you for implementing this. |
Beta Was this translation helpful? Give feedback.
-
Hi,
this is FYI only: I created a 3D-printed case for a minimal LogicAnalyzer: https://github.com/bablokb/3D-pico-lipo-shim
Only 8 channels and no level-shifting, but sufficient for my needs. It features a Pico-W and a LiPo attached using a LiPo-Shim from Pimoroni.
Beta Was this translation helpful? Give feedback.
All reactions