### Author Topic: How to count the frequency from IR sensor?  (Read 3227 times)

0 Members and 1 Guest are viewing this topic.

#### Zveil

• Beginner
• Posts: 4
##### How to count the frequency from IR sensor?
« on: February 28, 2009, 11:10:32 PM »
If i want to use an IR sensor to detect speed of car wheel, how do i count the numbers of IR sensor when it is in high level? Got such a thing to count frequency before it sends the data to PIC???

#### superchiku

• Supreme Robot
• Posts: 952
• cooll
##### Re: How to count the frequency from IR sensor?
« Reply #1 on: February 28, 2009, 11:13:03 PM »
cant understand wat ur saying..do u mean encoders on an wheel and then counting the speed using IR sensor??
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

#### Zveil

• Beginner
• Posts: 4
##### Re: How to count the frequency from IR sensor?
« Reply #2 on: February 28, 2009, 11:22:52 PM »
I think quite difficult to understand too...sorry ya...erm..i will put an IR emitter outside the wheel, then inside the wheel i will put IR receiver, cos the wheel got rim and it will block the sensor..so got 5 high level and 5 low level when the wheel is rotating for 1 cycle....then i want to count the numbers when the output is high...

#### superchiku

• Supreme Robot
• Posts: 952
• cooll
##### Re: How to count the frequency from IR sensor?
« Reply #3 on: February 28, 2009, 11:27:48 PM »
look at the society of robots encoders tutorial it is well explained there...now if u get 5 high levels in a certain cycle ..count the time in which u get 5 high levels that is ==one rotation of the wheel and u also know how mich distance the wheel moves in1 rotation so now u can calulate the speed and accordingly use that data
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

#### Zveil

• Beginner
• Posts: 4
##### Re: How to count the frequency from IR sensor?
« Reply #4 on: February 28, 2009, 11:32:18 PM »
encoders tutorial ah?i thought i should search for the frequency counter...(but i cant get it..) before send the calculated data to 877A..if the output is directly connected to 877A, it is difficult to write the programming code, right??

#### superchiku

• Supreme Robot
• Posts: 952
• cooll
##### Re: How to count the frequency from IR sensor?
« Reply #5 on: February 28, 2009, 11:40:11 PM »
ok lets clarify one thing....plzzz be clear what u really want if u are attaching ir to the wheel then what do u exactly want to do with it...why do u want to count the frequency...what is the purpose of ur robot ??
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

#### Zveil

• Beginner
• Posts: 4
##### Re: How to count the frequency from IR sensor?
« Reply #6 on: February 28, 2009, 11:57:42 PM »
oh..sorry ya..i'm weak in doing project one...To count the speed of the car and display on LCD..I thought i need another IC to count its speed before send to 877A... If i want to use IR as speed sensor, i just attach it and connect with 877A? Straight away calculate by programming code??

#### superchiku

• Supreme Robot
• Posts: 952
• cooll
##### Re: How to count the frequency from IR sensor?
« Reply #7 on: March 01, 2009, 12:04:16 AM »
i strongly recommend to read this .... after reading if u have any doubts post it here

http://www.societyofrobots.com/sensors_encoder.shtml
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"