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 @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27
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
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24
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
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20
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
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8
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
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
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
Oct 18
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
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13
More…