Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

RC Pulse receiver-decoder 200 to 2500usec

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
hgrueneis

Bascom Member



Joined: 04 Apr 2009
Posts: 902
Location: A-4786 Brunnenthal

austria.gif
PostPosted: Tue Aug 23, 2016 7:41 pm    Post subject: RC Pulse receiver-decoder 200 to 2500usec Reply with quote

Hi,
some time ago , I did an 8-channel pulse decoder to decode the signals from an RC-receiver.
The system is based on an AT168 with a 5V supply and an external 24MHz osc. (not Q) and works good.
Tested several AT168 (smd and pin versions) with it and had no failure.
Reason for this is the fact that the servos can be controlled by MCU's instead of the receiver.
Capability of the decoder: 200 to 2500 microsecond (0.2 to 2.5msec) pulses on eight channels without glitches.
It works on systems that transmit pulses in an offset fashion serially (like the Spectrum).
The program is somewhat crude but works.
Works as slave SPI but can be modified for any other communication.

If anybody is interested in it, I will post the Bascom program here.
Can not be used commercially.
Regards
Hubert
Back to top
View user's profile
luizabbadia

Bascom Member



Joined: 11 Dec 2007
Posts: 112
Location: rio de janeiro

brazil.gif
PostPosted: Wed Aug 24, 2016 2:55 pm    Post subject: Reply with quote

Yes, please.
I´m interested.Thanks
Back to top
View user's profile MSN Messenger
hgrueneis

Bascom Member



Joined: 04 Apr 2009
Posts: 902
Location: A-4786 Brunnenthal

austria.gif
PostPosted: Sat Aug 27, 2016 8:57 pm    Post subject: Reply with quote

Here is the file
Back to top
View user's profile
luizabbadia

Bascom Member



Joined: 11 Dec 2007
Posts: 112
Location: rio de janeiro

brazil.gif
PostPosted: Sun Aug 28, 2016 12:27 am    Post subject: Reply with quote

Thanks!
Back to top
View user's profile MSN Messenger
Printpix52

Bascom Member



Joined: 18 Jun 2014
Posts: 282
Location: D.F.

mexico.gif
PostPosted: Sun Aug 28, 2016 2:42 am    Post subject: Reply with quote

Hello!!
As calculated in 41.66 nsec? Rolling Eyes Rolling Eyes
Regards!! Very Happy
Back to top
View user's profile
Printpix52

Bascom Member



Joined: 18 Jun 2014
Posts: 282
Location: D.F.

mexico.gif
PostPosted: Sun Aug 28, 2016 3:22 am    Post subject: Reply with quote

It is for 24 mhz = 41.66nseg Very Happy

As step 6300 is calculated? I could explain? Sorry for the inconvenience.

Crying or Very sad Crying or Very sad
Back to top
View user's profile
hgrueneis

Bascom Member



Joined: 04 Apr 2009
Posts: 902
Location: A-4786 Brunnenthal

austria.gif
PostPosted: Sun Aug 28, 2016 8:47 am    Post subject: Reply with quote

@Pritpix52,
did you see the prescale of 8?
And 1 sec\24000000 cycles=41.66 nsec
Personally I use the info every 40 milliseconds for the servo update by my 16 ch. servo controller which is fed by an other MCU that reads the decoder and other MCUs 25 times per second (7 MCUs in all).
Use it or not.
Hubert
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6025
Location: Holland

blank.gif
PostPosted: Fri Sep 02, 2016 9:28 pm    Post subject: Reply with quote

Thank you for sharing your work Hubert.
A nice example.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum