Welcome to Laser Pointer Forums - discuss green laser pointers, blue laser pointers, and all types of lasers

Buy Site Supporter Role (remove some ads) | LPF Donations

Links below open in new window

FrozenGate by Avery

Need help programing a picaxe microcontroller

Joined
Nov 9, 2007
Messages
1,045
Points
0
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
 





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

..lazer... ;D ;D ;D
 
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...
 
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
 





Back
Top