Developer

 

Please see tracker issue 157 for the beggining of the story.

 

I think that there is definitely a PPM encoder problem.

I thought at first that my APM board was faultly. Chris kindly sent me a replacement board, a 1280 board instead of the original 2560. After connecting it, loading the latest firmware, radio setup and so on, i did again some tests.

After playing with the throttle stick, all was ok. suddenly after a couple minutes, i loose CH3 input again.

I lost it when i was pushing the transmitter stick quite fast to the max. Motors outputs stayed at a quite low RPM and no more possibility to change it.


After checking, my receiver output 3 was perfectly normal. Going to CLI radio test, i had no more Ch3 input.

 

Scope analysis have shown that when the problem exhibit :

1) the receiver CH3 output is always ok

2) the ppm encoder output is missing output CH3.

 

After resetting only the PPM encoder AVR chip, i get back CH3 input.

 

Conclusion :

I think that there is definitely a problem with the PPM encoder. Certainly a software problem.

For those tests, i've used an USB isolator to be sure that there was no ground loop between the computer and the board.

 

The board was powered by a Castle creation BEC, at 5.1 V.

 

The reason of this malfunction is quite obscur, perhaps a variable overrun in the ppm encoder ?

 

If this occur during fly, this is assured crash.

 

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

Join diydrones

Email me when people reply –

Replies

  • I have same problem. Can't read channel 4 and 6. Receiver FrSky V8Fr. I solved my problem by changing channels 4>8 and 6>7
  • 3D Robotics
    JMD45. I'm not around the hardware now (I'm on the road) but will try to replicate when I'm back. But yours is the first report of this, and there are something like 10,000 of the boards using this PPM encoder out there. (Plus it's just the Paparazzi PPM encoder code, which has been in use for nearly a decade). I'm wondering if it's something unique to your radio. Which RC unit are you using?
  • Developer

     

    I did a few more tests, this time i was using a 4.8V NiMh batery instead of the switching BEC.

     

    No more loosing Ch3. I thought that the switching BEC was the cause of the problem. But after about 8 minutes, i did loose Ch4 (YAW) input.

     

    Switching to CLI, no more CH4 input...

     

    There is definitively a PPM encoder problem.

     

    My assumption is that there is a PWM aliasing problem, producing a variable overrun somewhere in the PPM encoder code. It seems that each time the problem occur, it is when i push a stick quite fast.

     

    I remember that i had lost Ch1 and Ch2 as well, quite rarely, because i'm mostly making ESC and motors tests since the beginning mainly with Ch3 stick. This prouve that the problem does not come from an AVR input dead or bad solder on the board.

     

    I think that only debug mode on the PPM encoder can show where is exactly the problem, using a JTAG probe.

     

    Rarely, only a couple times, i have seen the PPM encoder unlock by himself, but most of the time when a lock occur on a Channel, only a PPM encoder reboot does solve the problem.

     

    Could someone used to the PPM encoder code verify that all variables are limited, and no possibility to have divide by zero or weird things like this in the code ?

     

     

     

     

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #14 - #ParkingLotNerds join us January 15th for #AutonomousRacing #RoboRace ⁦@DAVGtec…
Monday
DIY Robocars via Twitter
RT @chr1sa: And after that came our races, 50 in all. This battle between these two Russians was the best we've ever seen -- incredible fig…
Monday
DIY Robocars via Twitter
RT @chr1sa: Before our @DIYRobocars virtual race this weekend, we had a presentation from the team that won the Indy Autonomous Challenge i…
Monday
DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Dec 4, 2021
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
Nov 28, 2021
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…
Nov 26, 2021
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…
Nov 25, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
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, 2021
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, 2021
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, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9, 2021
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, 2021
More…