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
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…