Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Please make sure that no more than 5v regulated is being supplied to the Arduino
**Voltage reading (optional):**
Add a voltage divider between supply and ground, highest resistance value towards positive (R1), middle going to A0.
Choose resistors in the tens of kiloohms range, with a ratio appropriate for the intended supply voltage.
e.g. R1=33k, R2=5.1k, ratio of 6.471, measurement range 21.3V (3.3V Arduino reference * 6.471)
Set VOLT_DIVIDER to 1024/measurement range e.g. 1024/21.3 = 48, then adjust as necessary if not precise enough.
e.g. R1=33k, R2=5.1k, ratio of 7.471 ((33+5.1)/5.1), measurement range 24.7V (3.3V Arduino reference * 7.471)
Set VOLT_DIVIDER to 4096/measurement range e.g. 4096/24.7 = 166, then adjust as necessary if not precise enough.

![Arduino DJI 03 RC ARM Wiring](https://i.imgur.com/88jpdS7.png)
2 changes: 1 addition & 1 deletion arduino_DJI_03_RC_ARM.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
#include "OSD_positions_config.h"

#define ANALOG_IN A0 // Voltage Read pin (notice this is now Pin 0, instead of Pin 1)
#define VOLT_DIVIDER 48 // Set to 1024/full scale voltage
#define VOLT_DIVIDER 48 // Set to 4096/full scale voltage
//#define DEBUG //uncomment to see diagnostics from USB serial

#define FC_FIRMWARE_NAME "Betaflight"
Expand Down