Reference: RBD-2998
Brand: DFRobot
Banner

The slot type photoelectric sensor is composed of an infrared light emitting diode and an NPN phototransistor with a groove width of 5.9 mm. As long as the non-transparent object passes through the slot type, it can be triggered (used with our car code wheel) to output TTL low level. The Schmitt trigger is used to shake the pulse, which is very stable and can be used for measuring the speed of the car, measuring the distance and the like! M3 screw mounting holes at both ends.Featured By RoboticsBD.
Product Images are shown for illustrative purposes only and may differ from the actual product.
RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD
#include <TimerOne.h>
unsigned int counter=0;
void blink()
{
counter++;
}
void timerIsr()
{
Timer1.detachInterrupt(); //disable the timer1
Serial.print("The speed of the motor: ");
Serial.print(counter,DEC);
Serial.println("round/s");
counter=0;
Timer1.attachInterrupt( timerIsr ); //enable the timer1
}
void setup()
{
Serial.begin(9600);
Timer1.initialize(1000000); // set a timer of length 1sec
attachInterrupt(0, blink, RISING); //INT0
Timer1.attachInterrupt( timerIsr ); // attach the service routine here
}
void loop()
{
; //do nothing
}
RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD
| General Specification | |
| Operating Voltage (VDC) | 3.3 ~ 5 |
| Shipment Weight | 0.007 kg |
| Shipment Dimensions | 12 × 8 × 2.5 cm |
Please allow 5% measuring deviation due to manual measurement.
RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD
1 x Speed Measuring Sensor Groove Coupler Module For Arduino.
RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD
RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD RoboticsBD
Specific References
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent
Write your review
Review sent
Your review cannot be sent
Reference: RBD-2998
Brand: DFRobot
Reference: RBD-2783
Reference: RBD-0492
Reference: RBD-0569
Reference: RBD-2338
Reference: RBD-0222
Reference: RBD-3584
Brand: DFRobot
Reference: RBD-2420
Reference: RBD-3232
Brand: DFRobot
Reference: RBD-0700
Reference: RBD-2095
Reference: RBD-2748
Reference: RBD-2172
Reference: RBD-0132
Reference: RBD-1422
Reference: RBD-4089
Reference: 0245
Reference: RBD-0376
Reference: RBD-0685
Reference: RBD-0041
Reference: RBD-0022
Reference: RBD-0755
Reference: RBD-0770
Reference: RBD-1724
Reference: RBD-0908
Reference: RBD-0355
Reference: RBD-0041
Reference: RBD-1237
Brand: UNI-T
check_circle
check_circle