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
How to use the new @donkey_car graphical UI to edit driving data for better training https://www.youtube.com/watch?v=J5-zHNeNebQ
Monday
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Saturday
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Thursday
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Nov 23
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
More…