Week 2
Aims for week 2
1. LCD Display Setup
Integrated a 16x2 I2C LCD for real-time display of parking information.
Updated the display to dynamically show the number of available parking slots.
The initial state of the LCD
The state when the car park is already full
2.Ultrasonic Sensor Integration
Used two ultrasonic sensors to detect cars at the entrance and exit.
Created the MeasureDistance function for calculating object distance.
We tested the sensors by placing the toy cars at different distances from the sensors in order to determine an appropriate value for the detectionDistance variable, which is a threshold value measured in cm that the Arduino looks for so that the gate is triggered when the car is closer that the value of detectionDistance
3. Combining the sensors and servo motor with the LCD
We successfully integrated the LCD screen with the rest of the system to display all of the correct information. The screen is now capable of displaying the real time count of the number of spaces available which changes when a car enters or leaves the car park.
Challenges Encountered
1. Problem: The LCD initially failed to display anything.
Solution: Adjusted the potentiometer on the back of the LCD module. Adjust until the screen gives a clear display of the desired information.
2. Problem: Ultrasonic sensors occasionally triggered when not intended due to the detection distance threshold being to high, we reduced the distance threshold so that the sensors are not triggered by other objects in the background.




Comments
Post a Comment