Arduino programming

OBJECTIVE

Combine an input and output device together with help of sensors and display


COMPONENTS USED

  • Arduino UNO R3
  • MAX7219 8X32 Matrix Display
  • HC-SR04 Ultrasonic display
  • Breadboard
  • Jumper cables

  • SAFETY DISTANCE WITH ULTRASONIC SENSOR AND DISPLAY

    At a certain point specified as 5 cm the display shows STOP to indicate that is unsafe distance


    STEPS INVOLVED:

    Connect the various components in a closed circuit as shown in the wiring diagram below and connect the Arduino board to the computer.



    CODE

    Using Arduino IDE software, a code is required to run the electronics to work. Required libraries such as MAX7219 and Newping for Ultrasonic sensor has been added




    image below shows the complete Arduino board with the wiring and the connection to the computer.



    Here is a video showing the completed Arduino board working as a distance buzzer.