|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: IR help
yea, im using MPLab
|
|
#2
|
||||
|
||||
|
Re: IR help
ok so if you just have
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 |
|
#3
|
|||||
|
|||||
|
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?
|
|
#4
|
||||
|
||||
|
Re: IR help
thats what i thought as well but we hooked ours in and its giving us 1's....
|
|
#5
|
||||
|
||||
|
Re: IR help
Yeah the IR gives you 1's
|
|
#6
|
|||||
|
|||||
|
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.
|
|
#7
|
||||
|
||||
|
Re: IR help
also you are pulsing voltage into the RC where as connecting the pins is a ground to signal connection... that could be why
|
|
#8
|
|||||
|
|||||
|
Re: IR help
What I assume is happening is that the output pins on the PIC on the IR board, is set to 0 which would ground the signal on the RC and give a 0. When it sees the IR pulse it changes the output pin to 1 which is a high 5V. That would give you a 1 in programming.
|
|
#9
|
||||
|
||||
|
Re: IR help
yep exactly
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Grab Frame - Help Help Help... | nmihailidis | Programming | 2 | 04-03-2007 14:44 |
| section 'InterruptVectorLow' type is non-overlay (was: HELP HELP HELP!!!!!) | naor52 | Programming | 14 | 24-02-2007 01:19 |
| Help: How do we get a teacher to help? (was: Help) | ChaosAlchimey | General Forum | 13 | 21-01-2007 11:57 |