Using Espruino with the Nordic Thingy52 nrf52832 #7352
Replies: 1 comment
-
Posted at 2020-02-27 by Robin Wed 2020.02.26
Hi @SvanSomeren, while I don't have practical experience with the Nordic Thingy52 device,
which closely mimics the response provided by nRF devices with batteries:
I'm trying to locate a user response that I read recently that seemed to imply this value is reliable down to around ~30%, which most likely is the point the manufacturer defines the point where battery voltage falls off. I also thought/felt this was for all nRF devices, although the internal docs imply otherwise. Still searching. . . . see notes to Gordon below
> 'and all the sensor data becomes available through your web bluetooth implementation' There are six onboard sensors listed below the 'Features' heading and the corresponding functions to access them are listed below the 'On-board peripherals' heading. Any external sensor would need additional code that may be obtained by searching the tutorials for a specific sensor. Note to @gfwilliams > ref: http://www.espruino.com/Reference#l_E_getBattery The GitHub link currently points to an old offset
and should be ~1929
I'm not entirely sure how to make the documentation suggestion positively at the GitHub site. Also,
Posted at 2020-02-28 by svansomeren Thanks Robin :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-02-26 by svansomeren
Dear Espruino,
https://www.espruino.com/Thingy52 (source)
I'm not much of an embedded engineer myself but I found your product and might need it to get the power usage levels from the Thingy52. I have a few questions.
Is the setup of your firmware as simple as putting it on the Thingy52 and all the sensor data becomes available through your web bluetooth implementation or do I have to put more code on the Thingy myself?
I am also wondering about the getBattery() function. It says the function returns voltage as a number. Will this number go up and down depending on how many sensors are sending data or is it a static number independent of the amount of sensors running?
Best regards :)
Beta Was this translation helpful? Give feedback.
All reactions