Skip to content

How to use the FC 51 InfraRed proximity/obstacle avoidance sensor with Arduino

Hello there,

Welcome to this little tutorial, we gonna see how to use the FC 51 infrared sensor, it’s a module used to detect if something is passing by or an obstacle is nearby, like in obstacle avoidance robot, this module is very easy to use, it sends infrared waves and if there’s something on the way they reflect back and it’s detected by the receiver, and it depends of how you set the module potentiometer  (blue component below) to adjust the detection range.

 

FC 51 Module

The output is a digital one, and you cannot measure distance using this module, all you have to do is to check the distance to detect using the potentiometer, check the video for easier details.

Wiring:

It’s one of the easiest module to use and integrate in a project, but the possibilities are not that many.

The module is powered using 5V, and delivers a digital signal that can be read using a digital pin.

FC-51 wiring with Arduino

Code:

In the code below a distance was set before and if there’s a detection the Arduino internal LED will light up.

No libraries needed, the functionning of the module is very simple, it has a digital output that’s give a high level when it detects something otherwise it’s low, the detection range can be set by the potentiometer on the module.

Yassine View All

Automation and Electrical Engineer, Electronics amateur trying to share my little projects.

3 thoughts on “How to use the FC 51 InfraRed proximity/obstacle avoidance sensor with Arduino Leave a comment

Leave a Reply

%d bloggers like this: