top of page

Arduino Rangefinder

Apr 2018- May 2018

Project Description:

A bare-metal C programmed Arduino. The Arduino connects to an LCD shield and operates a rangefinder. The sensor measures up to 4 meters in one shot or continuous mode. A rotary encoder is used to set a threshold. Whenever a range is below this threshold, a buzzer sounds. The system also communicates via UART with another identical Arduino rangefinder. The two systems will compare data and whichever rangefinder is closer will light a green LED while the farther one lights a red LED. 

Responsibilities:

  • Assembled breadboarded circuit and Arduino system together.

  • Handled rangefinder operation. This included a pin change interrupt based on pulsing the rangefinder and a state machine to determine operation mode.

  • Programmed rotary encoder that used a state machine to set threshold of up to 255. Threshold value was saved to Arduino's EEPROM.

  • Programmed buzzer firmware that utilized a timer interrupt to create sound.

  • Programmed UART communication with TX interrupt and corresponding LED logic based off distance comparison.

arduino.jpg

© 2024 by Jeff Cui.

  • LinkedIn
  • YouTube
bottom of page