Freenove / Freenove_Robot_Dog_Kit_for_Raspberry_Pi

Apply to FNK0050
Other
134 stars 90 forks source link

Voltage calculations mismatched causing server failure #21

Closed ShaneMazur closed 1 year ago

ShaneMazur commented 1 year ago

Curious why these calculations don't match?

  1. Calculation in test module Power=adc.readAdc(0)/255.0*5.0*3
  2. Calculation in ADC module battery_voltage=data[4]/255.0*5.0*2

Im not an electrical engineer so I'm not sure they are even supposed to match but it was causing me to run into the message The batteries power are too low. Please recharge the batteries or replace batteries. and then my server shutdown. Went out and bought new batteries - same thing.

Shaynee-MO commented 1 year ago

Additional supplement Tutorial.pdf It is related to the board version. Please refer to the attachment to operate.

ShaneMazur commented 1 year ago

Thanks @Shaynee-MO. Im on v1.6 so I'll proceed with the change. Just wondering, why for v2+ does it use 2 different calculations?