Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery Status #4

Closed
2 tasks
rodriwp opened this issue Feb 8, 2015 · 43 comments
Closed
2 tasks

Battery Status #4

rodriwp opened this issue Feb 8, 2015 · 43 comments

Comments

@rodriwp
Copy link
Contributor

rodriwp commented Feb 8, 2015

For the rd2 version with ardubot will be nice to have feedback about the state of the batteries. This version use lipo bateries for the motors and is dangerous to discharge below a certain voltage(the value depends on the number of cells)

Smallest robots probably, will have an approximated voltage measure. For the biggest robots that use ardubot, there exists an voltage regulator,amperage measure and voltage measure that cost about 10 euros.

Here is a link http://www.dx.com/es/p/zndiy-bry-apm2-5-2-apm2-6-power-module-v1-0-output-w-bec-3a-xt60-plug-black-red-342902#.VNeeT_mG-Ck

http://copter.ardupilot.com/wiki/common-measuring-battery-voltage-and-current-consumption-with-apm/?lang=es

  • Software (implementation)
  • Hardware (assembly)
@rodriwp
Copy link
Contributor Author

rodriwp commented Oct 22, 2016

In the software part it will be useful to encapsulate in RdRobotLib some function about robot status. Right know we are only planning to take information from the robot about battery status, but it should support in the future more robot information (gps position, gyroscope,etc).

Im working on it right know

@rodriwp
Copy link
Contributor Author

rodriwp commented Oct 22, 2016

I propose several states for the battery that are set using an integer.

  • NOBATERRY for robots that don't use batteries.
  • A value between 1 and 100 for the percentage of battery if is discharging
  • A value between 101 and 200 for the percentage of battery if is charging

@jgvictores
Copy link
Member

jgvictores commented Oct 22, 2016

I was actually going to propose implementing the YARP IBattery interface. Here's the raw of the file:
https://raw.githubusercontent.com/robotology/yarp/e0ca8e6f73c37286734d06e3afb8015529ee36b9/src/libYARP_dev/include/yarp/dev/IBattery.h
I've seen they are implementing a yarpbatterygui, so this can be a good thing.

@jgvictores
Copy link
Member

Updated link in previous comment.

@David-Estevez
Copy link
Collaborator

+1 to the existing interface.

IMHO, I think the focus should shift from the frontend side to the robot backend. It has no sense to implement the software support for battery status if we are not currently able to measure the battery status.

@rodriwp
Copy link
Contributor Author

rodriwp commented Oct 22, 2016

+1 to the existing interface too

@David-Estevez we already have a battery mesuared system. There is one in our closet

APM POWER MODULE

This module is at the same a time a power regulator the will solve our two battery problem and it have also voltage and current mesuare.

And the best thing, it only cost 5 $

@jgvictores
Copy link
Member

And the best thing, it only cost 5 $

😂😂😂

@David-Estevez
Copy link
Collaborator

What I meant is that the most sensible approach, in my opinion, is a bottom-up approach: hardware -> firmware -> software , not the other way around.

Nevertheless, feel free to add support for such a magnificent piece of Chinese engineering, it will definitely be useful to have such data.

@jgvictores
Copy link
Member

@rodriwp Could you please link to the current selected hardware?

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 9, 2016

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 9, 2016

@jgvictores this is a link to the product POWER MODULE 1.0

@jgvictores
Copy link
Member

@rodriwp Great, now could you link to a URL that describes the pinout?

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 9, 2016

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 9, 2016

@jgvictores in a comment below you cand find the pinout. Here the link PinOut

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 9, 2016

Extra information about our device:
The schematics of the module here

@jgvictores
Copy link
Member

jgvictores commented Nov 9, 2016

@rodriwp As general questions related to the battery (NOT the power module):

  1. What is the battery voltage range (Vmin-Vmax) we are expecting to read?
  2. What is the battery current range (Imin-Imax) we are expecting to read?

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 23, 2016

  1. We are expecting between 3.7 and 4.1 volts per celd, and we excpected 2 and 3 cell bateries
  2. We are expecting between 0 A and about 0.6 A for standar robots. More powerfull robots as RD glory, needs about 1.2A. We should support both ranges.

@jgvictores
Copy link
Member

Please focus on one specific model. Which one?

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 23, 2016

We can focus on 2 cells 0.8 max A robots

@David-Estevez
Copy link
Collaborator

Please specify also the estimated current comsuption per device (e.g. SBC, motors (nominal and allowed peaks), camera, etc).

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 23, 2016

The RD2 have the following parts:

  1. Motors: 200mA peak 300mA x 2 motors
  2. Camera: 200mA
  3. RaspberryPi: 800mA
  4. WifiModule: 215mA

Total: 1.8 A of current expected.

@jgvictores
Copy link
Member

What do you mean by checking?

Which module do you mean?

@rodriwp
Copy link
Contributor Author

rodriwp commented Nov 23, 2016

We should adjust the alarm values to the safety lipo operation range

The circuit that is explain in http://controlrobotics.rodrigomompo.com/2013/10/tutorial-battery-charge-indicator.html, we have that circuit with us

@jgvictores
Copy link
Member

We should adjust the alarm values to the safety lipo operation range

What do you mean by that?

The circuit that is explain in http://controlrobotics.rodrigomompo.com/2013/10/tutorial-battery-charge-indicator.html, we have that circuit with us

Could you please provide a schematic that includes the components (a paper version like the previous would do)?

@rodriwp
Copy link
Contributor Author

rodriwp commented Dec 15, 2016

I won't continue this idea as it lead to stalemate

@David-Estevez
Copy link
Collaborator

I guess it is the moment to really solve this.

@David-Estevez
Copy link
Collaborator

@jgvictores
Copy link
Member

Lashing out the action, returning the reaction
[...]
Battery is found in me
Battery
Battery

@JavierIH
Copy link

🍿

@jgvictores
Copy link
Member

Ongoing PR: robotology/yarp#1583

@jgvictores
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants