flipperzero-gpioreader icon indicating copy to clipboard operation
flipperzero-gpioreader copied to clipboard

Analog reader support

Open biotinker opened this issue 3 years ago • 3 comments

There's no first-class furi_hal interface for reading the Flipper's ADC, as far as I can tell.

The driver for the actual board does have ADC support, all of which is in lib/STM32CubeWB/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_ll_adc.h

However, I'm not particularly motivated to go pouring through 8000 lines of C to find the correct magic incantation to get numbers out of the ADC pins. I'll implement this once the Flipper folks build some higher-level support. Until then, PRs or sponsors are welcome.

biotinker avatar Dec 02 '22 23:12 biotinker

Hi, i am currently setting up a team to make an RPM measuring unit for the flipper zero. This could be to measure winds, rpm, etc. We will use an inductive sensor that activate when a metal object is infront of it. So it is basically using some of your code to read when the FlipperZero gets an input signal. Doing some maths we can from that calculate RPM, windspeeds etc.

If you want to join and be a part of the team, please let me know.

Keirikl avatar Jan 09 '23 16:01 Keirikl

https://flipc.org/anfractuosity/flipperscope

Himura2la avatar May 02 '23 09:05 Himura2la

I saw that and was looking at the code. One major downside appears to be that the ADC pins may only be tolerant up to 2.5V, will have to do some more looking into that.

biotinker avatar May 02 '23 12:05 biotinker