ESC arming problem

Hi, I'm building my first quad and am having problems getting the ESCs to arm. I have followed the ESC calibration instructions, several times, but no luck. On the APM (loaded with the latest code V2.1.0) I get a solid green light indicating it is armed. Radio has been calibrated. I attached a Fluke Scopemeter to the ESC drive pins on the APM to see what was going on and found everything OK, once the APM is armed I get pulses ranging from about 1.00ms to 1.80ms as the throttle is advanced. The pulse repetition rate (frequency) was 400Hz. To test the ESC I used a pulse generator and found that the ESC will not arm at any frequency above  150Hz (1.0ms pulse width). The ESC arms correctly when connected directly to my radio receiver (50Hz rep rate, 1.0ms pulse width).

The ESC is a E-flite 30 Amp Pro. Eflite technical phone support couldn't offer any suggestions.

As I see it I have two options, buy different ESCs and hope for the best or use the ones I have and change the ESC drive frequency to 150Hz in software and reprogram the APM.

Does anyone know where in the code I can change the frequency? I am not a programmer but can usually tinker with existing code to make things work.

Any ideas or suggestion would be welcome, thanks....

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

Join diydrones

Email me when people reply –

Replies

  • I had a similar problem to this, and wrongly assumed from the ESCs beeping that the ESCs were forgetting their calibration once powered down. Once I scoped it, I saw the real problem. I originally posted this in a thread about user hooks, but it should be here:

    "To anyone following this: I've determined that my ESCs are 'special', but it's not that they forget the calibration each time they boot!

    http://www.4-max.co.uk/pdf/PP-EESCProgramming-ins.pdf

    They are emitting 'bidoobidoobidoo' *pause* 'bidoobidoobidoo' *pause* on repeat once booted. This is because they won't boot until you reduce the throttle signal they're receiving to the calibrated lowest setting OR because they're receiving no signal at all. I'll investigate what signal I'm getting from the output pins of my APM (the RC output pins) using my oscilloscope and go from there."

    "The scope showed that my PWM widths were identical between the receiver throttle channel and the APM output, but the continued beeping of the ESCs (and the much higher frequency that I was getting as output from the APM) indicate that they simply can't take an update rate this high.

    I'll get back to the manufacturer, and move this thread where it might be more helpful, it doesn't belong here."

    The manufacturer hasn't yet got back, but meantime I've recompiled with INSTANT_PWM ENABLE in APM_CONFIG.h and hey presto, the ESCs spin the motors when I arm the APM and bring up the throttle.

    http://www.4-max.co.uk/pdf/PP-EESCProgramming-ins.pdf
  • Anyone know if it still slows the main loop down? Looks like the functionality to change the interrupt? (or is it just a PWM (does atmel call it a CCR register?)) is not there anymore. Its seems to be less obvious in one of the libraries.

  • I'm also having problems with arming my turnigy plush 40 ESCs. Was the higher frequency just recently introduced? My last successful flight was on apm1 running 2.0.50. Now attempting apm2 with 2.1
  • Try putting 

    # define INSTANT_PWM ENABLED

    in your apm_config file and see if that solves your problems, it worked for me

  • 3D Robotics

    Yes, we use 400Hz to overdrive the ESCs for better performance. Yours are the first I've heard of that don't like that. 

    The function is called INSTANT_PWM. Here's the relevant code in the motors.pde file for whatever frame you're using:

     


    {
            #if INSTANT_PWM == 0
            ICR5 = 5000;    // 400 hz output        CH 1, 2, 9
            ICR1 = 5000;    // 400 hz output        CH 3, 4, 10
            ICR3 = 5000;    // 400 hz output         CH 7, 8, 11
            #endif
    }

    5000 is the timer setting for 400hz
    40000 is the timer setting for 50hz

This reply was deleted.

Activity

Gremsy liked Gremsy's profile
Mar 12
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…