Hello everyone,
I am trying to figure out an issue with my IR sensor. It is not working with the most basic circuit, which involves an Arduino Uno, the IR sensor and a battery pack. These are my connections:
Sensor VCC => Arduino 5v
6xAA battery pack positive => Vin
6xAA battery pack negative => GND
Sensor GND => GND
Sensor signal pin => 7
I believe my IR sensor is supposed to have a flashing red LED, but it isn't flashing, it is just a solid red. I made a functional IR transmitter. I also used multiple different sensors for this issue as I thought it was a hardware issue. I also ensured that the VCC pin of the sensor is getting 5v. However, the signal pin is getting 2-3v. Does anyone know what the problem could be? Thank you!
In the Arduino IDE, use CtrlT or CMDT to format your code then copy the complete sketch. Use the < CODE / > icon from the ‘posting menu’ to attach the copied sketch.
You can change the PWM frequency and so modulate the light from the Arduino PWM pin.
Do a net search for this, but this is one I found after a short search.
When it is flashing at 38KHz it will look solid due to you persistence of vision. There two ways "see" the flashing:-
Use an oscilloscope to look at the LED signal.
Rapidly move the Arduino from side to side in front of your face.
If you see a blur of lights it is not flashing.
If you see individual spots for the LEDs it is flashing.