Jose F. Mingorance-Puga
2013-04-02 08:42:15 UTC
Hello,
I have been using different strategies to read battery level, and try to
work around the cross talk with accelerometer and gyroscope in the
shimmer 9 DoF. However, I have not been able to get it to work. Some of
my main troubles are:
- If I try to uniquely read the analog channel 7, I get some readings
apparently without crosstalk but out of the range they should be
according to the specifications of the battery voltage, i.e. I get
12-bit integers with a value around 500, and they should be between
2000/3000 to represent a charging status between 0% and 100% of the
charge of the battery.
- If I activate other channels for analog sampling simultaneously, I get
readings that seem to be in the proper range, but I get a huge cross
talk both with accelerometer and with gyroscope. Therefore, my results
are not reliable at all. To solve it, I have tried to disable sampling
of the analog channels of gyroscope and accelerometer when sampling
battery levels. No success. I have also tried to shut down accelerometer
and gyroscope when sampling battery. Still the very same crosstalk, even
waiting for a few ms. before sampling battery level.
- I have also tried to compute the value of the battery charge removing
arithmetically the crosstalk. However, the crosstalk from the
accelerometer and gyroscope on the battery levels is not lineal at all
(at least in my shimmers), and therefore I could not remove it straight
forward.
I have always made sure to activate the PWRMUX pin.
I have been using many different toy-examples codes just to find out if
I can read the values of the batteries discarding any code bugs.
Did anyone get to read properly and reliably the values of the battery
charge, being able to also sampling accelerometer and gyroscope (not
necessarily simultaneously) ?
Jose F. Mingorance-Puga
I have been using different strategies to read battery level, and try to
work around the cross talk with accelerometer and gyroscope in the
shimmer 9 DoF. However, I have not been able to get it to work. Some of
my main troubles are:
- If I try to uniquely read the analog channel 7, I get some readings
apparently without crosstalk but out of the range they should be
according to the specifications of the battery voltage, i.e. I get
12-bit integers with a value around 500, and they should be between
2000/3000 to represent a charging status between 0% and 100% of the
charge of the battery.
- If I activate other channels for analog sampling simultaneously, I get
readings that seem to be in the proper range, but I get a huge cross
talk both with accelerometer and with gyroscope. Therefore, my results
are not reliable at all. To solve it, I have tried to disable sampling
of the analog channels of gyroscope and accelerometer when sampling
battery levels. No success. I have also tried to shut down accelerometer
and gyroscope when sampling battery. Still the very same crosstalk, even
waiting for a few ms. before sampling battery level.
- I have also tried to compute the value of the battery charge removing
arithmetically the crosstalk. However, the crosstalk from the
accelerometer and gyroscope on the battery levels is not lineal at all
(at least in my shimmers), and therefore I could not remove it straight
forward.
I have always made sure to activate the PWRMUX pin.
I have been using many different toy-examples codes just to find out if
I can read the values of the batteries discarding any code bugs.
Did anyone get to read properly and reliably the values of the battery
charge, being able to also sampling accelerometer and gyroscope (not
necessarily simultaneously) ?
Jose F. Mingorance-Puga