Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Current battery voltage - how to obtain?

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
5 postsPage 1 of 1
5 postsPage 1 of 1

Current battery voltage - how to obtain?

Post by roboTT » Sat Mar 29, 2008 2:53 pm

Post by roboTT
Sat Mar 29, 2008 2:53 pm

Is there any chance to retrieve the battery status in Robonova ?

I would like to react if the level falls down below critical :)


Thanks in advance!
Is there any chance to retrieve the battery status in Robonova ?

I would like to react if the level falls down below critical :)


Thanks in advance!
roboTT
Savvy Roboteer
Savvy Roboteer
Posts: 62
Joined: Mon Mar 10, 2008 10:06 am

Post by davidalecmcinnes » Wed Apr 02, 2008 10:23 am

Post by davidalecmcinnes
Wed Apr 02, 2008 10:23 am

well I use a 50:50 potential divided from the servo supply to zero volts and read it on the A-D port. Hope that helps.
well I use a 50:50 potential divided from the servo supply to zero volts and read it on the A-D port. Hope that helps.
davidalecmcinnes
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 33
Joined: Tue Jun 26, 2007 12:51 pm
Location: UK

Post by roboTT » Wed Apr 02, 2008 9:47 pm

Post by roboTT
Wed Apr 02, 2008 9:47 pm

Any chance to ask you if you could provide some example for this?

Thanks mate.
Any chance to ask you if you could provide some example for this?

Thanks mate.
roboTT
Savvy Roboteer
Savvy Roboteer
Posts: 62
Joined: Mon Mar 10, 2008 10:06 am

Post by davidalecmcinnes » Thu Apr 03, 2008 12:43 pm

Post by davidalecmcinnes
Thu Apr 03, 2008 12:43 pm

I seemed to be having a bad keyboard day the other day re. spelling. From a Servo power pin (middle pin) I have 2 x 4k7 resistors in series to the 0V pin (top pin of A-D port). The mid point of the two resistors I have wired to the A-D input (bottom pin of A-D port). An integer A-D read of the port gives 613 at 6.0V from which I subtract 13 to produce a x10 robot voltage figure.
I seemed to be having a bad keyboard day the other day re. spelling. From a Servo power pin (middle pin) I have 2 x 4k7 resistors in series to the 0V pin (top pin of A-D port). The mid point of the two resistors I have wired to the A-D input (bottom pin of A-D port). An integer A-D read of the port gives 613 at 6.0V from which I subtract 13 to produce a x10 robot voltage figure.
davidalecmcinnes
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 33
Joined: Tue Jun 26, 2007 12:51 pm
Location: UK

Post by Pev » Thu Apr 03, 2008 1:53 pm

Post by Pev
Thu Apr 03, 2008 1:53 pm

Carl
-------------------------
www.alt-view.co.uk
Pev
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 547
Joined: Sun Feb 26, 2006 1:00 am
Location: UK


5 postsPage 1 of 1
5 postsPage 1 of 1