Coper LEDS low voltage does this feature work?

Hi all,

I finally have some time to work with my tricopter project.  I've been slowly getting things working.  I just added the UBlox GPS to my APM 2.0.  Nice upgrade - the tricopter no longer has the jitters in Loiter mode and the lock is super fast.  Need to do more tweaking.

I have implemented the copter leds feature on my tricopter and I presently have motor arm status and GPS lock status working.   Works great - the arming status is a good safety feature. 

The only thing that doesn't seem to work is the low voltage alarm.  I set the bit on and off and nothing happens.  I assume the motor leds are supposed to oscillate at low voltage which appears to be set at 9.6V.  I moved the voltage up higher - no change.

I have the AttoPilot sensor and its working properly - voltage and current displayed in Mission Planner.   When voltage is below the set limit (verified in Mission Planner) nothing happens.


What am I missing?

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

Join diydrones

Email me when people reply –

Replies

  • I assume the LEDs you guys are talking about are the tiny ones on the APM board?

    What I was hoping to do is have larger red/green/white nav lights on my quad (for orientation) which are solid when >75% charge, and have them blink when they hit 75%. Is there a straightforward way of getting something like that hooked up? I assume I could just power the LEDs from any available 5V output on the APM for the first part of the functionality, but how would I hook into the low voltage alarm blinking?

    If this was easy to get set up, I think it would be a really handy feature to help everyone keep their batteries in good shape, and help normalize the flight times people are quoting, if they count from takeoff to when the lights start blinking.

  • Hi Lloyd,

    Thank you for the response.  I haven't tried modifying and compiling the base code.  I'm sure the BATTERY_EVENT set to DISABLED is my problem.  I don't see a way to set this in Mission Planner.

    My BATTERY MONITOR flag is set already to 4 for voltage and current so I don't think that parameters turns on BATTERY_EVENT.

    Well I'll have to learn how to download and compile the code for testing.  I'm sure that will be a good learning experience.

    Thank you again,

    Brian

     

  • Brian,

    I wasted a lot of hours on this one.  I even wrote my own low voltage detect logic and added it to the LED code.  Then one day, just couldn't stand it and found the answer staring me in the face.

     

    In config.h,   BATTERY_EVENT  is DISABLED.      BATTERY_EVENT enables the low voltage check logic. 

    To enable it, I added the following two lines to APM_Config.h:

    #define  BATTERY_EVENT        ENABLED

    #define  LOW_VOLTAGE          10.2

    I only add the LOW_VOLTAGE define since I'm in there and it saves setting it in the parameters config screen of Mission Planner. 

    You could also ENABLE BATTERY_EVENT in config.h, but I tend to avoid modifng things in that file. 

    Also, I couldn't find a way to enable BATTERY EVENT in Mssion Planner.  I'd love to know if there is a way.

    One other thing.  I set LED_MODE to 1 for my quad.

    Hope this works for you!

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @breadcentric: See how the April AWS DeepRacer races have ended and a couple bits of news: https://blog.deepracing.io/2021/05/09/aws-deepracer-league-2021-update-11-end-of-april-special/ #AWSDeepRacer #Machin…
yesterday
DIY Robocars via Twitter
RT @sunilmallya: Representation Learning +Instance Transfer to learn new reward functions along with advantage based filtering of new exper…
yesterday
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
RT @f1tenth: Sliding (autonomously) into the weekend like ... 🤖😎 #f1tenth #robots #AutonomousVehicles @OpenRoboticsOrg @NVIDIAEmbedded @Aut…
Apr 25
DIY Robocars via Twitter
RT @chr1sa: One of the problems with autonomous car racing is that watching software drive is not a very exciting spectator sport. To help…
Apr 25
DIY Robocars via Twitter
RT @SmallpixelCar: Replaced AGX Xavier with @NVIDIAEmbedded Jetson Xavier NX. Now both cars look fast and clean https://t.co/jlcoY2EjZf
Apr 25
DIY Robocars via Twitter
RT @chr1sa: Yesterday we had a record number of competitors (36) in our monthly @DIYRobocars virtual autonomous car race. We kept it going…
Apr 25
DIY Robocars via Twitter
Apr 16
DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
Apr 11
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
Apr 11
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Apr 7
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Apr 7
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
More…