I tried to read analog data from gpio, but saw only a method that returns signal strength as LOW or HIGH (boolean). Could not find a solution in the documentation and links to the code. Is it possible now?
Raspberries Pi 3 does not have an analog-to-digital converter , so you can only get logical values (high / low) from your GPIO . Therefore, to obtain analog data, you need to use an external ADC module in your project.
EDIT: I found this interesting blog blog showing how to measure analog input on Android Things.
For Raspberry Pi, you will need to use an analog-to-digital converter such as the ADS1115.
If you are still looking, I wrote a class and sample for the ADC Adaptivity MCP3008
https://github.com/PaulTR/AndroidThingsMCP3008ADC
Source: https://habr.com/ru/post/1664982/More articles:Entity Framework 6: virtual collections are lazy loading, even explicitly loaded into the request - c #How to add a column to a typed table without changing the type in PostgreSQL? - postgresqlHow to configure XGBoost to give more weight to a specific Predictor column - pythonJavascript call to chain constructors for an object - javascriptDifference between comparison with np.nan and isnull () - pythonLaravel Auth :: attempt () returns false - authenticationRedirecting to a page and sending custom HTTP headers - redirectLaravel Redirect not working in event handler / listener - url-redirectionRecyclerView in DialogFragment Dialog → drag & drop (swap) - performanceiOS: Invalid registration token. Check marker format - iosAll Articles