pico-coder / sigrok-pico

Use a raspberry pi pico (rp2040) as a logic analyzer and oscilloscope with sigrok
727 stars 83 forks source link

10:1 attenuator on analogue channel #14

Closed tony1tf closed 2 years ago

tony1tf commented 2 years ago

Hi

A question -I want to use a 10:1 attenuator on the analogue channels. I would like the voltage displayed correctly in PulseView. Am I right in believing that all that is needed is a change in pico_sdk_sigrok to line 163 in srdevice.h from 25700 to 257812 (= 33V/128 uV)

Tony

pico-coder commented 2 years ago

Yes, that's it. However, Pulseview has an "add math signal" (look for the f(x) in the menu bar, that allows you to manipulate channel values. That might be a bit faster if you need to swap attenuators :).

tony1tf commented 2 years ago

Hi Shawn Thanks for the suggestion. I tried the f(x) signal - it's OK, but you can't disable the original channel, else it can't pick it up to be multiplied by 10, so it wastes screen space, which is pretty special when you could have 22 digital and 3 analogues. Tony

pico-coder commented 2 years ago

Closing this out because the question is answered, happy tracing.