remote control, IR
Archiver
Posts: 46,084
I have a basic stamp project, which I want to be able to control with
a universal remote, so by pushing different channels, i can tell the
stamp to do different things. I know I need to build a circuit to
deal with serial IR data, but I'm a little confused. can anybody tell
me the _easiest_ way to do this? Also, I'm not driven to do
everything by hand - if there is some kind of kit or chip I can
attach to the stamp that decodes for me that would be fine as well.
Thanks,
Mark
a universal remote, so by pushing different channels, i can tell the
stamp to do different things. I know I need to build a circuit to
deal with serial IR data, but I'm a little confused. can anybody tell
me the _easiest_ way to do this? Also, I'm not driven to do
everything by hand - if there is some kind of kit or chip I can
attach to the stamp that decodes for me that would be fine as well.
Thanks,
Mark
Comments
PAK has PAK interface or serial output. By default it works with some
surplus Emerson remotes we will bundle with them, but you can set the
operating parameters so that it works with many different remotes.
We are working out a deal to supply these with the remotes and a 38kHz
sensor, but that's probably 2 weeks away or so. If you really want to try
one early, contact me off list and we'll work something out.
I've read a Sony remote using nothing more than a sensor and the Stamp (it
was an article for Elektor magazine). However, it is about all you can do to
keep up with the data rate from the remote.
I think Andy Lindsey has some code similar to that at
http://wd5gnr.virtualave.net/cgi-bin/TWiki/view.pl/Main/BoeBot
(sign up for an ID or use GuestUser as an ID and guest as the password).
Good luck!
Al Williams
AWC
* Floating point A/D! http://www.al-williams.com/awce/pak9.htm
>
Original Message
> From: markallen [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=GhwYAN8wnIl1zFxywefGmNkNs_1BbL7td5MEXkNrrcAI4NhC4U8-HQT2x9N9YhOJZLKcA2-op7-Jp4eHXA]markallen@m...[/url
> Sent: Tuesday, May 15, 2001 1:00 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] remote control, IR
>
>
> I have a basic stamp project, which I want to be able to control with
> a universal remote, so by pushing different channels, i can tell the
> stamp to do different things. I know I need to build a circuit to
> deal with serial IR data, but I'm a little confused. can anybody tell
> me the _easiest_ way to do this? Also, I'm not driven to do
> everything by hand - if there is some kind of kit or chip I can
> attach to the stamp that decodes for me that would be fine as well.
>
> Thanks,
>
> Mark
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
code for a sony remote that never really worked well, and it took a lot of
RAM. If you can write code for a pic, I've done this, and it works great.
>From: markallen <markallen@m...>
>Reply-To: basicstamps@yahoogroups.com
>To: basicstamps@yahoogroups.com
>Subject: [noparse][[/noparse]basicstamps] remote control, IR
>Date: Tue, 15 May 2001 11:00:08 -0700
>
>I have a basic stamp project, which I want to be able to control with
>a universal remote, so by pushing different channels, i can tell the
>stamp to do different things. I know I need to build a circuit to
>deal with serial IR data, but I'm a little confused. can anybody tell
>me the _easiest_ way to do this? Also, I'm not driven to do
>everything by hand - if there is some kind of kit or chip I can
>attach to the stamp that decodes for me that would be fine as well.
>
>Thanks,
>
>Mark
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
enough, but some of the new stamps just might work. I never cleaned up the
last section and never used the code. I also have code for 2 other remotes
not sure of the brand. Having a scope is ideal for this type of work, not
sure I could have done it without one.
Here are some values you will need to know (sony)
leader = 2.20 msec
synch = .55 msec
"0" = .55 msec
"1" = 1.10 msec
I hope this comes out?
line Idle synch synch synch
________ ____ ____ _____
| | | | | |
| | | | | |
|_______| |____| |________|
leader "0" "1"
' IR CODE READER SONY TYPE
' LARRY GAMINDE LGAMINDE@T...
'
' PIC16F84-10 USED IN THIS EXAMPLE AND TIMING IS DEPENDENT
' ON PROCESSOR SPEED 10MHZ
' I USED A SERIAL BACKPACK ON PORTB.3 FOR DISPLAY AND DEBUGGING
' INPUT FROM RADIO SHACK 40KHZ RECEIVER TO PORTB.1
'
DEFINE OSC 10
TRISB= %01000000
A VAR BYTE(16)
I VAR BYTE
LEADER VAR WORD
VALUE VAR WORD
PAUSE 500
SEROUT2 PORTB.3, $4054,[noparse][[/noparse]254,1]
PAUSE 100
SEROUT2 PORTB.3, $4054,[noparse][[/noparse]" IR CODE READER"]
PAUSE 2000
MAIN: LEADER = 0 'LOOK FOR LEADER OR START BIT
PULSIN PORTB.1, 0, LEADER
IF (LEADER < 310) THEN MAIN
IF (LEADER > 320) THEN MAIN
FOR I = 0 TO 11 'I USED 8 OF THE 12 BITS FOR DISPLAY
PULSIN PORTB.1, 0, A(I)
NEXT
FOR I = 0 TO 11
IF A(I) > 150 THEN ONE
IF A(I) < 130 THEN ZERO
'NEXT THREE LINES USED FOR DEBUGGING
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]254,1]
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]"A",DEC I,DEC A(I)]
PAUSE 2000
ONE:
A(I) = 1
GOTO ENDD
ZERO:
A(I) = 0
ENDD:
NEXT
VALUE1:
VALUE.BIT0 = A(0)
VALUE.BIT1 = A(1)
VALUE.BIT2 = A(2)
VALUE.BIT3 = A(3)
VALUE.BIT4 = A(4)
VALUE.BIT5 = A(5)
VALUE.BIT6 = A(6)
VALUE.BIT7 = A(7)
VALUE.BIT8 = A(8)
VALUE.BIT9 = A(9)
VALUE.BIT10 = A(10)
VALUE.BIT11 = A(11)
VALUE.BIT12 = 0
VALUE.BIT13 = 0
VALUE.BIT14 = 0
VALUE.BIT15 = 0
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]254,1]
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]" ",DEC VALUE]
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]254,192]
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]BIN VALUE]
PAUSE 2000
IF VALUE = 4074 THEN VALUE = 1
IF VALUE = 4042 THEN VALUE = 2
IF VALUE = 4010 THEN VALUE = 3
IF VALUE = 3978 THEN VALUE = 4
IF VALUE = 3946 THEN VALUE = 5
IF VALUE = 3914 THEN VALUE = 6
IF VALUE = 3882 THEN VALUE = 7
IF VALUE = 3850 THEN VALUE = 8
IF VALUE = 3818 THEN VALUE = 9
IF VALUE = 3786 THEN VALUE = 0
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]254,1]
SEROUT2 PORTB.3,$4054,[noparse][[/noparse]" BUTTON # ",DEC VALUE]
LEADER = 0
VALUE = 0
PAUSE 500
GOTO MAIN
ED Ward wrote:
>
> this kind of code is not easily written for a basic stamp. I wrote some BS2
> code for a sony remote that never really worked well, and it took a lot of
> RAM. If you can write code for a pic, I've done this, and it works great.
>
> >From: markallen <markallen@m...>
> >Reply-To: basicstamps@yahoogroups.com
> >To: basicstamps@yahoogroups.com
> >Subject: [noparse][[/noparse]basicstamps] remote control, IR
> >Date: Tue, 15 May 2001 11:00:08 -0700
> >
> >I have a basic stamp project, which I want to be able to control with
> >a universal remote, so by pushing different channels, i can tell the
> >stamp to do different things. I know I need to build a circuit to
> >deal with serial IR data, but I'm a little confused. can anybody tell
> >me the _easiest_ way to do this? Also, I'm not driven to do
> >everything by hand - if there is some kind of kit or chip I can
> >attach to the stamp that decodes for me that would be fine as well.
> >
> >Thanks,
> >
> >Mark
> >
> >
> >
> >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/