Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 26th September 2003, 09:36 PM   (permalink)
Default using the PIC for IR control

hi all. please pardon a newbie question that i'm sure has been asked a thousand times...i teach a basic electronics class and the kids are big into remote control. we have a class set of picbasic pro compilers/programmers so we use PICs often. i can easily configure a PICF627 to PWM 38 hz and have it be picked up by another PIC across the room using the plain ol' three pin sharp receiver...basic on/off stuff. what i need to know is how to carry more than one code on the 38hz PWM and have it decoded by another PIC. i know that rentron has a simple chip that has 4 channel remote control but this won't work for a classroom...the kids can afford a couple of bucks for a PIC but not the cost of the chips from rentron. i need a way of understanding the method so that the kids will understand (and a way that i will...for that matter) is there a simple bit of picbasic pro code i can plug in like "serout and serin" or something? am i just being confusing? HELP!!
-thanks.
-stu mitchell
stumitch is offline  
Reply With Quote
Old 26th September 2003, 09:49 PM   (permalink)
Default

SIRc (Sony) uses timing to encode a code into IR...

For example a startpulse is 2.4mS long, after that the code is transmitted in wich a "1" is 1.2mS long and a "0" is 0.6mS long, and all pulses are seperated by a 0.6mS space

For example the SIRc code 10101 would be...
2.4mS Signal (Start); 0.6mS nothing (space), 1.2 mS Signal (1), 0.6mS nothing (space) and so on.

It can all be done in software with the equipment you already have

Can't help you with basic code, I do all my Pic'ing in assembler

Winpicprog has a tutorial inplementing SIRc using Pic's but it's assembler
http://www.winpicprog.co.uk/pic_tutorial5.htm
Exo is offline  
Reply With Quote
Old 27th September 2003, 12:00 AM   (permalink)
Default

http://www.eng.uwi.tt/depts/elec/sta...r-decoding.pdf offers a more in detail view of SIRc
Exo is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 06:45 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.