Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
i use a universal TV-remote to control a philips TV.And what kind of IR receiver must i use. Is a normal Ir receiver okay?And how about the code?
Quote from: dannytemmerman on February 09, 2009, 03:00:36 AMi use a universal TV-remote to control a philips TV.And what kind of IR receiver must i use. Is a normal Ir receiver okay?And how about the code?Do you know the pulse frequency of the remote?
for(int i = 0; i < 25; i++){if(frequentie < i) { ja_sensor(); } else { nee_sensor(); }}
An easier way to write that would be:Code: [Select]for(int i = 0; i < 25; i++){if(frequentie < i) { ja_sensor(); } else { nee_sensor(); }}
I have created a device that can sent 20,30,40,50 and 60Hz.Now i need a code to recognise with frequency is send to the robot.
for detecting i/o pin changes, there are macros defined in sfr_defs.h which is included in io.h, but for the timing with an MCU, I don't know how accurate it would be without some sort of real-time clock or a 555 or something. In the case of IR pulses, how accurate does the timing need to be?