A prototype made to identify potholes on the streets by using an ultrasound sensor installed on street lights. The purpose of this is to give out instant data on positions with potholes in order to enhance the road maintenance and security.
- Real-time pothole detection: Utilizes an ultrasonic sensor to detect potholes.
- User-friendly web interface: Enables visualization of pothole data and allows government officials to update information.
- Ultrasonic Sensor: Detects potholes on the road.
- Arduino Uno: Receives data from the ultrasonic sensor.
- ESP32: Transmits data from the Arduino Uno to the backend server.
- Backend Server: Uses serverless architecture Cloudflare Workers.
- Database: Data storage and management with PostgreSQL and Prisma ORM.
- Frontend: Web interface built with React.js and Tailwind CSS.
- Hardware: Ultrasonic Sensor, Arduino Uno, ESP32
- Backend: Node js, Hono library, PostgreSQL, Prisma ORM
- Frontend: React.js, Tailwind CSS
- Connect the ultrasonic sensor to the Arduino Uno.
- Connect the Arduino Uno to the ESP32 for data transmission.
- Make sure the connections are same as in the picture :
- Clone the repository
- Navigate to the backend directory:
cd roadradar/backend
- Install dependencies:
npm install
- Set up environment variables for Cloudflare Workers and PostgreSQL.
- Deploy the backend using Cloudflare Workers.
- Navigate to the frontend directory:
cd roadradar/frontend
- Install dependencies:
npm install
- Start the development server:
npm run dev