mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
Updating Sparky battery monitoring documentation.
This commit is contained in:
parent
27f8dbb4bc
commit
54419ef97c
2 changed files with 35 additions and 6 deletions
|
@ -37,6 +37,10 @@ S5_IN/PA0/RC5 is Pin 7 on the 8 pin connector, second to last pin, opposite end
|
||||||
|
|
||||||
Note: When battery monitoring is enabled on the CC3D RC5 can no-longer be used for PWM input.
|
Note: When battery monitoring is enabled on the CC3D RC5 can no-longer be used for PWM input.
|
||||||
|
|
||||||
|
### Sparky
|
||||||
|
|
||||||
|
See Sparky board chapter.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Enable the `VBAT` feature.
|
Enable the `VBAT` feature.
|
||||||
|
|
|
@ -10,13 +10,10 @@ The Sparky is a very low cost and very powerful board.
|
||||||
* MPU9150 I2C Acc/Gyro/Mag
|
* MPU9150 I2C Acc/Gyro/Mag
|
||||||
* Baro
|
* Baro
|
||||||
|
|
||||||
# Status
|
Tested with revision 1 & 2 boards.
|
||||||
|
|
||||||
Flyable!
|
|
||||||
|
|
||||||
Tested with revision 1 board.
|
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
* Sonar
|
* Sonar
|
||||||
* Display (via Flex port)
|
* Display (via Flex port)
|
||||||
* SoftSerial - though having 3 hardware serial ports makes it a little redundant.
|
* SoftSerial - though having 3 hardware serial ports makes it a little redundant.
|
||||||
|
@ -180,3 +177,31 @@ USB VCP *can* be used at the same time as other serial ports (unlike Naze32).
|
||||||
All USART ports all support automatic hardware inversion which allows direct connection of serial rx receivers like the FrSky X4RSB - no external inverter needed.
|
All USART ports all support automatic hardware inversion which allows direct connection of serial rx receivers like the FrSky X4RSB - no external inverter needed.
|
||||||
|
|
||||||
|
|
||||||
|
# Battery Monitoring Connections
|
||||||
|
|
||||||
|
| Pin | Signal | Function |
|
||||||
|
| ---- | ------ | --------------- |
|
||||||
|
| PWM9 | PA4 | Battery Voltage |
|
||||||
|
| PWM8 | PA7 | Current Meter |
|
||||||
|
|
||||||
|
## Voltage Monitoring
|
||||||
|
|
||||||
|
The Sparky has no battery divider cricuit, PWM9 has an inline 10k resistor which has to be factored into the resistor calculations.
|
||||||
|
The divider circuit should eventally create a voltage between 0v and 3.3v (MAX) at the MCU input pin.
|
||||||
|
|
||||||
|
WARNING: Double check the output of your voltage divider using a voltmeter *before* connecting to the FC.
|
||||||
|
|
||||||
|
### Example Circuit
|
||||||
|
|
||||||
|
For a 3Cell battery divider the following circuit works:
|
||||||
|
|
||||||
|
`Battery (+) ---< R1 >--- PWM9 ---< R2 >--- Battery (-)`
|
||||||
|
|
||||||
|
* R1 = 8k2 (Grey Red Red)
|
||||||
|
* R2 = 2k0 (Red Black Red)
|
||||||
|
|
||||||
|
This gives a 2.2k for an 11.2v battery. The `vbat_scale` for this divider should be set around `52`.
|
||||||
|
|
||||||
|
## Current Monitoring
|
||||||
|
|
||||||
|
Connect a current sensor to PWM8/PA7 that gives a range between 0v and 3.3v out (MAX).
|
Loading…
Add table
Add a link
Reference in a new issue