![]() |
IR help
i have absoulutly no idea how to program the IR. can someone post a sample code so i know what it looks like please?
|
Re: IR help
You plug the IR board into the Digital IO and program it just like you would a switch.
if(!rc_dig_in15) {command1(); } Something like that. |
Re: IR help
Quote:
|
Re: IR help
yea, im using MPLab
|
Re: IR help
Quote:
if (rc_dig_in01 == 1) { run mottors == XXX } then just if(rc_dig_in02 == 1) { run motors == XXX } and repeat that for all 4 commands you just need to tell it was motors to run when you hold the button down... PM me if you need more help |
Re: IR help
I thought it gave you a 0 in programing when you sunk the pull ups of the digital IO to ground. Am I wrong?
|
Re: IR help
Quote:
|
Re: IR help
Yeah the IR gives you 1's
|
Re: IR help
I haven't hooked ours up yet. It could be possible the IR receiver board sinks it to 0 when there is no IR signal. Probably what's happening I guess.
|
Re: IR help
Quote:
|
Re: IR help
Quote:
|
Re: IR help
Quote:
|
Re: IR help
Here is something I wrote in another thread. It's pretty much completely ready, and will work (as I found out today, because we didn't have power going our IR board and it came back as an error :D)
http://www.chiefdelphi.com/forums/sh...1&postcount=19 |
| All times are GMT -5. The time now is 23:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi