View Full Version : IR
07-31-2005, 03:56 AM
Right now my boe bot is set up with the remote control via IR. Now What Id like to know is how I can change my if then statements from detecting the pulse and powering servos to detecting a pulse and making a connection on two different pins. For an example you have a jumper that you place on your Hard drive cd-rom etc. this if then statement would short those two pins together, momentairly. any ideas would be appreciated.
07-31-2005, 04:04 AM
If you are referring to making two I/O pins go high when·detecting the pulse?· Basically you just create a variable for the PULSIN command and if it equals 1 then you create a subroutine that turns two I/O pins to high.· If you look in the BASIC Stamp manual version 2.1 under the·PULSIN command I believe that they have an example that may help you with this project.
07-31-2005, 04:05 AM
If your looking to control another device, you probably need to do it through a transistor or relay circuit.
07-31-2005, 05:35 AM
ok I made both pins high for the if then statement. But it is still making the connection between the two pins on my device even when the boe is turned off, I am using 1,000 ohm resistors from the I/o pins to my device.
07-31-2005, 07:09 AM
You may want to post your code and a schematic of your circuit.· This will allow·everyone to help·trouble shoot it.