Old 07-11-2008, 07:31 AM #1
Class 3R Laser
 
Join Date: Nov 2007
Posts: 1,047
Rep Power: 457
wooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond repute
wooooooolazer wooooooolazer is offline
Class 3R Laser
 
Join Date: Nov 2007
Posts: 1,047
Rep Power: 457
wooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond repute
Default Need help programing a picaxe microcontroller

Hi, i have a 8-pin version of this microcontroller..http://www.rev-ed.co.uk/picaxe/

I am trying to program it to receive infared signals from a remote then repeat them using a infared led, I already have everything i need for it and have wired the picaxe to a 5v regulator so its ready to go.

What i need help with is programing it to receive the signals then about 10 seconds later start to repeat them in a continuous loop out of the led.

Btw, this is going to be a prank, im going to hide it and all of the sudden the tv will start changing channels and everything is going to look like its going haywire. 8-)

+1 rep to whoever helps me


...lazer... ;D ;D ;D


wooooooolazer is offline   Reply With Quote


















Old 07-11-2008, 09:24 PM #2
Class 3R Laser
 
Join Date: Nov 2007
Posts: 1,047
Rep Power: 457
wooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond repute
wooooooolazer wooooooolazer is offline
Class 3R Laser
 
Join Date: Nov 2007
Posts: 1,047
Rep Power: 457
wooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond repute
Default Re: Need help programing a picaxe microcontroller

Also i have the infrared sensor on pin 4-infrain and i have the led on pin 7-infraout.

..lazer... ;D ;D ;D
wooooooolazer is offline   Reply With Quote
Old 07-11-2008, 10:04 PM #3
Member
 
Join Date: Jun 2008
Posts: 33
Rep Power: 0
Frechy is on a distinguished road
Send a message via MSN to Frechy
Frechy Frechy is offline
Member
 
Join Date: Jun 2008
Posts: 33
Rep Power: 0
Frechy is on a distinguished road
Send a message via MSN to Frechy
Default Re: Need help programing a picaxe microcontroller

I do know a good bit on working with Atmel's chips, but never experimented with PicAxe, only partially recognise the name PIC... I could kinda tell you how i'd do it with an AtMega tho...

Make it wait for an input signal on the IN pin.
As it would probably be hard to check all the codes IR RC's put out, you'd want to check only like next and previous, on/off, volume and maybe something extra.
Add those couple of codes to a readable list.
When getting input, have it check the code to the list.
Have it stored in a register or buffer which code it is.
And loop the thing with that code with a 10 sec delay.
Ouput it on the OUT pin...

Seems a really nice prank, but req-ing a lot of time and effort to make and test.
Those IR codes are pretty nasty, fast sending combined with a nice long code for advanced TV RC's...
Frechy is offline   Reply With Quote
Old 07-11-2008, 10:46 PM #4
Class 3R Laser
 
Join Date: Nov 2007
Posts: 1,047
Rep Power: 457
wooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond repute
wooooooolazer wooooooolazer is offline
Class 3R Laser
 
Join Date: Nov 2007
Posts: 1,047
Rep Power: 457
wooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond reputewooooooolazer has a reputation beyond repute
Default Re: Need help programing a picaxe microcontroller

Im still very new to programming, i originally got all this for a robot which i built and never used much. *Luckely they say that picaxe is one of the easiest to program, it uses basic and you can download the program for free..http://www.rev-ed.co.uk/picaxe/software.htm

I have been trying to read up all i can on how to program and so far can do simple things such as control motors but something complex like this is over my head.

Also it doesn't need to be able to recognize any of the codes, i just want it to record in real-time whatever signals its getting then play them back at the same speed.

...lazer.. ;D ;D ;D
wooooooolazer is offline   Reply With Quote
Reply





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

























Privacy Policy | Advertising Disclaimer | Terms of Use


 


All times are GMT. The time now is 12:39 AM.


Powered by: vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
Privacy Policy | Advertising Disclaimer | Terms of Use
Copyright (C) 2017 Laser Pointer Forums, LLC