View previous topic :: View next topic |
Author |
Message |
hgrueneis
Joined: 04 Apr 2009 Posts: 902 Location: A-4786 Brunnenthal
|
Posted: Tue Aug 23, 2016 7:41 pm Post subject: RC Pulse receiver-decoder 200 to 2500usec |
|
|
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 |
|
|
luizabbadia
Joined: 11 Dec 2007 Posts: 112 Location: rio de janeiro
|
Posted: Wed Aug 24, 2016 2:55 pm Post subject: |
|
|
Yes, please.
I´m interested.Thanks |
|
Back to top |
|
|
hgrueneis
Joined: 04 Apr 2009 Posts: 902 Location: A-4786 Brunnenthal
|
Posted: Sat Aug 27, 2016 8:57 pm Post subject: |
|
|
Here is the file |
|
Back to top |
|
|
luizabbadia
Joined: 11 Dec 2007 Posts: 112 Location: rio de janeiro
|
Posted: Sun Aug 28, 2016 12:27 am Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
Printpix52
Joined: 18 Jun 2014 Posts: 282 Location: D.F.
|
Posted: Sun Aug 28, 2016 2:42 am Post subject: |
|
|
Hello!!
As calculated in 41.66 nsec?
Regards!! |
|
Back to top |
|
|
Printpix52
Joined: 18 Jun 2014 Posts: 282 Location: D.F.
|
Posted: Sun Aug 28, 2016 3:22 am Post subject: |
|
|
It is for 24 mhz = 41.66nseg
As step 6300 is calculated? I could explain? Sorry for the inconvenience.
|
|
Back to top |
|
|
hgrueneis
Joined: 04 Apr 2009 Posts: 902 Location: A-4786 Brunnenthal
|
Posted: Sun Aug 28, 2016 8:47 am Post subject: |
|
|
@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 |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 6025 Location: Holland
|
Posted: Fri Sep 02, 2016 9:28 pm Post subject: |
|
|
Thank you for sharing your work Hubert.
A nice example. _________________ Mark |
|
Back to top |
|
|
|