How to connect a current & voltage sensor to PX4 ?

I suppose the PX4 with its IO kit has analogue ports to receive signals from the current and voltage sensor.

I looked in the wikis for info on this without success. Only info available referred to APM-boards.

 

Please, can anybody confirm that there is a proven way to connect the voltage and current sensor to PX4 and how to

- or that the PX4 is not yet ready (then I can stop trying).

 

Thanks / Tomas

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

Join diydrones

Email me when people reply –

Replies

  • Hi Tomas,

    this page will help to find the analog input and the value that should be entered.

    http://plane.ardupilot.com/wiki/common-analog-and-digital-pins-for-...


    I didn't tried it, so be careful to put a correct divider as some inputs goes directly to the CPU Pins, and if you exceed 3.3V it will reset/reboot or die.

    Ezio

  • By studying the board user manuals and schematics I have been able to find out the following:

    [b]Battery monitoring [/b] Good and bad news: [b]Good[/b]: Battery voltage is per default measured on the battery Power input to the PX4 IO board, that two pole 7-18V Power in connector (see attached photo). Perfect if your motor battery voltage does not exceed 18volt (~4S LiPo)! [b]Bad[/b]: The measuring only works if you power the PX4 assembly direct from your motor battery and the max input voltage is 18 volts. If you Power the PX4IO from a BEC you will just see the BEC voltage  :roll: In my present project I use 6SLiPo to Power the motor - too high to connect directly to the PX4IO. Consequently I have to power the PX4 with a BEC.

     :idea: [b]Maybe [/b]there is a way to select an other ADC pin for voltage measurement by entering another value in the MP parameter list for BATT_VOLT_PIN (default value 100 for PX4) ?? In order to use the PX4 FMU multi function connector pin 5 "Battery monitor" instead ???  :geek:

    3692828892?profile=original

    Below: The multi connector pin 5 I would like to be able to select for battery voltage measurement.

    3692829015?profile=original

    Below: I guess this is the default Battery monitor voltage measurement point:3692828841?profile=original

    [b]Current sensor[/b] Good news: Connect it to the PX4IO "curr" solder pad, next to the Power in connector.

    3692829052?profile=original

     

This reply was deleted.

Activity

DIY Robocars via Twitter
Jan 28
DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ : A Home-brew computer club* for Connected Autonomous Driving. talk at #piandmore ⁦@PiAndMore⁩ on Jan 23rd h…
Jan 23
DIY Robocars via Twitter
RT @a1k0n: New blog post! Deep dive into my ceiling light based localization algorithm which runs in 1ms on a Raspberry Pi 3: https://t.co/…
Jan 23
DIY Robocars via Twitter
Great new guide to using @donkey_car https://custom-build-robots.com/donkey-car-e-book-en
Jan 23
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars virtual AI race is tomorrow morn at 9:00am PT. You can watch live on Twitch https://www.meetup.com/DIYRobocars/events/275268196/
Jan 22
DIY Robocars via Twitter
New version of Intel OpenBot! This resolves many of the issues with the first version, including a much smoother tr… https://twitter.com/i/web/status/1352395636369313798
Jan 21
DIY Drones via Twitter
Using ArduRover with an RTK GPS https://ift.tt/2N9I3RO
Jan 18
DIY Drones via Twitter
Jan 18
DIY Robocars via Twitter
Jan 18
DIY Robocars via Twitter
Jan 15
DIY Robocars via Twitter
Jan 15
DIY Drones via Twitter
Jan 14
DIY Robocars via Twitter
RT @Heavy02011: @diyrobocars : A Home-brew computer club* for Connected Autonomous Driving on Jan 23rd, 2021 https://www.meetup.com/Connected-Autonomous-Driving/events/275728684/ #Meetu…
Jan 14
DIY Robocars via Twitter
Jan 14
DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ Autonomous Driving Assembly at #rC3. join us at https://rc3.world/rc3/assembly/diyrobocars-f1tenth/ ⁦@f1tenth⁩ ⁦@DAVGtech⁩ ⁦@DWalmroth⁩…
Jan 11
DIY Robocars via Twitter
RT @chr1sa: New car designs coming for our next @DIYRobocars @donkey_car virtual race on the 23rd. Choose any one you want at race time Le…
Jan 11
More…