Generic Battery + Arduino = Happy Solo

Joined
May 9, 2017
Messages
48
Reaction score
16
Age
44
With this code the voltage of each individual cell is sent through to the Solo (which then adds them to give total voltage) as that is now what is requested rather than the 3DR firmware which requested just total voltage. The remaining capacity is worked out as a 0-100% of 5200mAh based on the total voltage. The 0% and 100% voltages are programmed so can set as required before programming the Arduino.

I am not sure if there is individual cell set points for RTL in the 3.7 version.
 
Joined
May 6, 2015
Messages
399
Reaction score
224
Age
58
I am not sure if there is individual cell set points for RTL in the 3.7 version.
Not to my knowledge.
But you may trigger action from the Arduino, eg by setting Solo to RTH via mavlink when a cell is going down. Or to trigger the LEDs, or buzzer,...
 
Joined
May 9, 2017
Messages
48
Reaction score
16
Age
44
Hi fpvsteve,

The Arduino board in this setup is just pretending to be a Solo smart battery and delivering data to the Solo from a standard battery. Currently all it does is respond to the requests from the Solo. I have tested a set of 8 Neopixel LED's to give battery level by dropping LED's and changing colour as the voltage drops. There are plenty of outputs available so could add external buzzers etc if the difference between cells gets too large or voltage drops below a certain level.

Once i have this setup running delivering the basics of being able to use any 4S lipo battery on the Solo i am happy to look to add features if people would like.
 
  • Like
Reactions: Wetstone
Joined
May 9, 2017
Messages
48
Reaction score
16
Age
44
I took to the circuit board from my opened battery and cut it just past the plug. (It looks like the +ve is always on and the negative is switched when the battery is turned on). I sanded back the -ve section of the board and soldered on a lead to an XT60. I moved the -ve lead (after the photo) to the same position as the +ve lead (with a better soldering job this time) so it as a better fir in the case. I also removed the +ve lead i cut and then soldered in the other lead for the XT60. I then added 2 wires for the I2C bus. I iwll then glue this back into the case once i finish my voltage divider board and program up my Arduino. Steps forward........

10151
10154
10152
10153
 
Last edited:
Joined
May 9, 2017
Messages
48
Reaction score
16
Age
44
I have joined all my code I have been testing together.
SMBus communication
Voltage divider for cell measurement
Neopixel LEDs for remaining capacity.

I have allowed the high and low limits of the cells and the actual values for the voltage divider resistors to be set before down loading the code.

I have also been testing an OP amp as a differential voltage monitor so I can connect each cell directly and get a reading. This may work but looks like it could involve a lot more resistors and a cheap LM324. This will make a bigger circuit so may just stick with the voltage divider.

I have ordered another current monitor with express delivery so hope to get that early in the week and can then finish off my program and get some testing under way.
 
  • Like
Reactions: jimloss

New Threads

Members online

Forum statistics

Threads
11,919
Messages
139,768
Members
13,779
Latest member
sawork