Hello, for my thesis I have to read the output of three sensors (2 Force Resistor Sensors and 1 Bending sensor (flexiforce), using the internal ADC. The output has to be sent to a pc via bluetooth. Anyone can help me? I've never used Espruino MDBT42Q!
I'd take a look at http://www.espruino.com/Reference#l__global_analogRead
And for the PC side, https://www.espruino.com/Interfacing#bluetooth-le
But basically all you need to do is use the code from the 'Interfacing' page for whatever programming language you want, then replace print("Hello World") with print(analogRead(D3)) (or whatever analog capable pin you want to connect https://www.espruino.com/MDBT42Q#pinout to)
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem