View Single Post
Old Sep 23, 2009, 08:09 AM
druzara is offline
Find More Posts by druzara
Registered User
Toronto Canada
Joined Feb 2008
25 Posts
Quote:
Originally Posted by rich smith
Luckily the chips were unlocked so here's code. Should work unmodified on a Tiny26 too or any old AVR with a port B. Pinout should be same as the Tiny13 one with extra channels added on after 4. Just from memory, it's been a few years.

No chance to test it myself because my Futabas batt is dead and also I don't have a Mega8 socket wired up. Please post result so we'll know. Photo would be nice too so others can benefit.

SRVPPM83.HEX:

:020000020000FC
:100000007FE97DBFBC9A61E010D062E00ED064E071
:100010000CD068E00AD060E208D060E406D060E866
:1000200004D0C49A0CD0C498EECF76B37623E9F30B
:10003000C49A05D0C49876B37623E9F7089593E07F
:100040000197F1F708952863292032303036205285
:060050002E536D69746877
:00000001FF
Thanks rich! 7 channel hex image does work Verified even on an obsolete 8MHz 2313 that I had otherwise no use for these days :P

Just a couple of observations that I have noticed that others may find useful:

1.You must supply pulses to all 7 inputs PB0-PB3, PB5-PB7 as there are some blocking codes that will hang if any channel(s) are missing. Which led me to modify the code slightly for a 6 channel Spektrum 6100 reciever.

2.Your receiver must output pulse sequence in order from PB0 to PB7, otherwise, the generated PPM will be all messed up. I found out the hard way by wiring up a Spektrum 6100 receiver with a DX7. It turns out the channels are sequenced in the following order:
1 Aileron
2 Aux
3 Elevator
4 Rudder
5 Throttle
6 Gear
This sequence appears to be dependent on the transmitter, using an Eflite LP5DSM, the pulse sequence is in order of the receiver header pins.
1 Throttle
2 Aileron
3 Elevator
4 Rudder
5 Gear
6 Aux
druzara is offline Find More Posts by druzara
Reply With Quote