Unable to read voltage - not sure how to troubleshoot

Hi All,

 

I am having an issue with the voltage sensor – I just can
not seem to get it to read a voltage. It always displays 17.8 volts. I have installed
an AttoPilot Current Sensor Board. I am using the monitoring number 4 (current
and voltage). I can get a current reading which is working fine (could be 15%
out). The voltage on AN0 is connected directly to the battery so I am not using
the AttoPilot for voltage sensing.

 

I have a 3.9K resistor installed and if I use a multimeter
to check the resistance between ground and the AN0 pin I get 13.9K which I believe
is correct. Because there is a 10K resister on the AN0-3 pins.

 

It doesn’t matter what voltage I put in to the system it doesn’t
change the read out in the current test in the CLI. I have tried 2s and 3s LiPo
packs. I have also tried mode 3 which is just total battery voltage on AN0 but
I get the same results.


I am not sure who to troubleshoot this.


Regards


Simon

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi Guys

    I have the same issue as Simon.

    After upgrading my APM 1280 to a 2560 a few month ago, I have also noticed that the voltage sensing was not working as Simons says.

    I purchased an Attopilot voltage and current sensor and still the voltage was not being read correctly. I notice that the current sensing works ok so I changed my current and voltage leads around so that the current is sensed on AN0 and the Voltage is sensed on AN1. Now the voltage is sensing correctly and the current is not sensing at all. I have now set the set the Voltage to AN1 and current to AN2 in the advanced parameters list in Mission Planner and all seems to be working fine now. 

    I will also check with my old APM 1280 and see if the AN0 works just to confirm that the fault is on the APM 2560 board and not the OIlpan as Simon has stated as well.

    Regards

    John

  • Hi All,

     

    I have been doing some testing - I have 2 APM and 2 Oilpans, both oilpans work fine however only one APM works. The 1280 APM works and the 2560 one doesnt sense the voltage.

     

    How do I troubleshoot to APM.

     

    Cheers

     

    SImon

  • With the standard code, the current sense output is supposed to be connected to AN1.  Have you done that?
  • Moderator
    Hi,
    I don't have battery monitoring hooked up yet- it is next on my list (should have been first). But, I see you mention the "Current" test. Do you want to use the "Battery" test instead to get what you're looking for? (Again, I haven't done this yet, and maybe it's not what you're after, but I thought I'd ask.)
This reply was deleted.

Activity

Chris Anderson liked Zara Mae Pickering's profile
May 21
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
More…