CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug Reports on this forum. Send them to support@ccsinfo.com

PPM signal to control a LED R/C Receivers

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
oceanssoul



Joined: 16 Oct 2014
Posts: 1

View user's profile Send private message

PPM signal to control a LED R/C Receivers
PostPosted: Thu Oct 16, 2014 6:17 am     Reply with quote

I have a receiver with 8 channels. I want to use one of that channels as a auxiliary switch to send a PPM signal to a pic to control a LED which is connected to another pin of PIC.
temtronic



Joined: 01 Jul 2010
Posts: 8057
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Oct 16, 2014 7:08 am     Reply with quote

You really need to give more details about this project.
1) the 'receiver' that has 8 channels. WHAT kind of 'receiver'? I can take a HUGE 'leap of faith' and think it's a regular RC hobby type receiver though it might not be !

IF it is then the 'normal' output is a data train of 1.0 to 2.0 ms pulses, where the width determines the 'control' value.

IF that is the case your first PIC just needs to compute the width of the pulse and store the result. How 'fine' a control is up to you. If you can live with 8 bits it's real easy.

Now PIC to PIC communications is equally simple depending on what you're communicating. sending a single byte is easy and CCS does supply examples in the 'examples' folder as well as the FAQ or help section of the manual.

break down the project into 3 or 4 sections...
1) get first PIC to receive and show data from 'receiver'
2) get 1st PIC to talk to 2nd PIC
3) get 2nd PIC to recv from 1st PIC
4) get 2nd PIC to do something with the data.

I do suggest using the same type PIC for both units as it makes coding/debugging a lot easier !!

hth
jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group