• Home
  • Aaenics Store
  • Aaenics community
  • AaenoTutor
  • Explore
  • About

    Shopping Cart

    No products in the basket.

    Sign in Sign up

    Shopping Cart

    No products in the basket.

    • Home
    • Aaenics Store
    • Aaenics community
    • AaenoTutor
    • Explore
    • About

    Aaenics – Nvidia AI Emerging chapters

    Loading…

    Kwaku Effa 24th June 2021
    0 Comments

    Understanding RFIDs and Integrating them in your projects

    The first time I saw an RFID card, my team and I were representing Ghana at the World Robot Olympiad. We lodged in a beautiful…

    Kwaku Effa 6th January 2021
    0 Comments

    Introduction to NRF-24 Radio Transceiver

    At some point, most Arduino DIY hobbyist will decide/want to upgrade/interface their projects to be controlled from a distance or communicate wirelessly with other micro-controllers.…

    Peter 23rd December 2020
    4 Comments

    Digitize Your Soil With A Sensor

    Overview In this section you will learn how to use the soil moisture sensor. With a practical example to help you grab the concept. What…

    Charles 30th September 2020
    11 Comments

    Using the dual axis analog joystick module

    Where are the game center squad? Do you remember those guys behind the UCOM game pad who would be like “oh as for me I play FIFA well with analog…
    Kwaku Effa 7th September 2020
    0 Comments

    Extracting the raw sound waves

    Did you know that humans have a hearing range between 20Hz and 20kHz? and even the fact that as we grow older our hearing becomes…

    Kwaku Effa 18th August 2020
    2 Comments

    Integrate a keypad into your arduino project.

    Systems that allow users to input their own data or in a way allow the users to control them by keypads or buttons are weirdly unique, yeah! They give…
    kwaku 4th August 2020
    4 Comments

    Using the Digital Humidity and temperature sensor

    Of the many sensors you will find yourself using, the DHT sensors are quite complicated. Retrieving data from this sensor is not as simple as it is fo…
    Kwaku Effa 26th July 2020
    1 Comment

    Addressing the Newbie Passions!

    Since the days the worlds were formed by the Great I Am, humanity has never stopped expressing the creative power that was embeded in us since day 1! …
    Kwaku Effa 16th July 2020
    9 Comments

    Using an Infrared Proximity sensor.

    There are so many sensors out there today because of the fact that we want our robots, machines and systems we design to have some…

    Kwaku Effa 18th April 2020
    3 Comments
    Load More

    Basket

    Categories

    Recent Posts

    • Aaenics – Nvidia AI Emerging chapters
    • Understanding RFIDs and Integrating them in your projects
    • Introduction to NRF-24 Radio Transceiver
    • Digitize Your Soil With A Sensor
    • Using the dual axis analog joystick module
    The Multifaceted Tech and Robotics Wheel for the Race
    © 2023 - Built at Aaenics_labs

    Forum Description

    There are so many sensors out there today because of the fact that we want our robots, machines and systems we design to have some kind of interactions with the enviroment just like we humans do and even more. Proximity is a good topic to consider when it comes to machine interactions. A machine would also want to know if there is any obstacle or object near it so that it can know what to do next.

    https://youtu.be/JMAniIuK348

    What is proximity?

    Proximity is the measure of the nearness of something. Since it would be very good if our machines and robots also knew how close or far they are to objects in the surroundings, there are many sensors that help them to measure proximity. Some examples are: Radaar sensors, ultrasonic sensors, sonar sensors and many more.
    However in this tutorial we are looking at a very common one, the Infared proximity sensor.

    Infared proximity Sensors

    An IR proximity sensor is a sensor that uses Infrared signals to detect the nearness of obstacles. In one of my previous tutorials where I talked about the PIR motion sensors we realized that even though it is an Infrared sensor, it was a passive one! But in the case of the IR proximity sensor it is an active one and i will explain that shortly in the mode of operation.

    Mode of operation of IR proximity sensors

    The reason why an IR proximity sensors is recognised as active sensors is because of its mode of operation. Unlike the PIR, it emits some amount of IR signals into the enviroment. Incase there is an object, this emitted IR rays will bounce back to the sensor and the sensor will judge by comparing the difference between the two signals(the sent and the received).
    So in this particular IR module which is common to the maker community, there are two key components on the board, 

    • The IR LED
    • The IR receiver
    The signal is sent through the IR LED and then when it hits an obstacle it bounces back and it is read by the IR receiver. It is important to understand that the IR proximity sensor does not tell you the distance the obstacle is to the sensor. The only thing it can do is to confirm or deny the prescence of an obstacle. Don't also get confused, it doesn't also sense movements unlike the PIR does.
    The blue potentiometer on it is used to regulate the sensitivity of the sensor.

    Hooking up the IR proximity sensor

    The sensor has only 3 pins to worry about and they are mostly inscribed on the pcb.

    • VCC
    • GND
    • OUT
    The output pin is a straight digital pin. It returns 1 when there is no obstacle detected and it returns 0 when there is an obstacle. Hence it is to be conneccted to digital pins of the microcontroller, which is an arduino in our case today. But note that you can use it in your own customized circuits even without a microcontroller. 


     

    Sample circuit with the fc-51 IR proximity module

    In the simple setup above we want to use the Arduino to retrieve the data out of the sensor. And the logic here is this:

    If the sensor detects any obstacle, the red LED should come on and also the piezo alarm should sound!
    But if there is no obstacle, the blue LED should stay alive.
    There are so many applications of this and I cant wait to see you use it in your projects. The basic codes for the project is also below. copy and upload to your arduino IDE, understand it and feel free to edit it to suit whatever project you wish. 
    If you need any help too or have some suggestions, the big comment box down there is for you!

    And yh you can also share your projects with the whole community.

    Codes for the setup

    
    int ir = 2;
    int blue = 3;
    int red = 4;
    int buzzer = 6;
    int irstate;
    void setup() {
    pinMode(ir, INPUT);
    pinMode(red, OUTPUT);
    pinMode(blue, OUTPUT);
    pinMode(buzzer, OUTPUT);
    Serial.begin(9600);
    }
    void loop() {
    irstate = digitalRead(ir);
    Serial.println(irstate);
    if (irstate == HIGH) {
    digitalWrite(blue, HIGH);
    digitalWrite(red, LOW);
    digitalWrite(buzzer, LOW);
    }
    else if (irstate == LOW) {
    digitalWrite(red, HIGH);
    digitalWrite(blue, LOW);
    while (irstate == LOW) {
    irstate = digitalRead(ir);
    analogWrite(buzzer, 200);
    delay(100);
    analogWrite(buzzer, LOW);
    delay(100);
    }
    }
    }
     

    As we begin to Assemble, lets know we are in a Beta Mode. But lets not forget, egobe! Dismiss

    Report

    There was a problem reporting this post.

    Harassment or bullying behavior
    Contains mature or sensitive content
    Contains misleading or false information
    Contains abusive or derogatory content
    Contains spam, fake content or potential malware

    Block Member?

    Please confirm you want to block this member.

    You will no longer be able to:

    • See blocked member's posts
    • Mention this member in posts
    • Invite this member to groups
    • Message this member
    • Add this member as a connection

    Please note: This action will also remove this member from your connections and send a report to the site admin. Please allow a few minutes for this process to complete.

    Report

    You have already reported this .
     

    Loading Comments...
     

      • About WordPress
        • WordPress.org
        • Documentation
        • Support
        • Feedback
      • Log In
      • Register