https://github.com/balaji-avk/roadradar
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.
https://github.com/balaji-avk/roadradar
arduino-uno cloudflare-workers esp32 nodejs postgresql reactjs tailwindcss
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/balaji-avk/roadradar
- Owner: Balaji-Avk
- License: mit
- Created: 2024-04-18T09:32:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T17:45:58.000Z (about 2 years ago)
- Last Synced: 2025-01-01T14:28:32.669Z (over 1 year ago)
- Topics: arduino-uno, cloudflare-workers, esp32, nodejs, postgresql, reactjs, tailwindcss
- Language: TypeScript
- Homepage: https://roadradar.vercel.app
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Road Radar
## Overview
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.
## Features
- **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.
## System Architecture
1. **Ultrasonic Sensor**: Detects potholes on the road.
2. **Arduino Uno**: Receives data from the ultrasonic sensor.
3. **ESP32**: Transmits data from the Arduino Uno to the backend server.
4. **Backend Server**: Uses serverless architecture Cloudflare Workers.
5. **Database**: Data storage and management with PostgreSQL and Prisma ORM.
6. **Frontend**: Web interface built with React.js and Tailwind CSS.
## Technology Stack
- **Hardware**: Ultrasonic Sensor, Arduino Uno, ESP32
- **Backend**: Node js, Hono library, PostgreSQL, Prisma ORM
- **Frontend**: React.js, Tailwind CSS
## Installation
### Hardware Setup
1. Connect the ultrasonic sensor to the Arduino Uno.
2. Connect the Arduino Uno to the ESP32 for data transmission.
3. Make sure the connections are same as in the picture :

### Backend Setup
1. Clone the repository
2. Navigate to the backend directory:
```bash
cd roadradar/backend
```
3. Install dependencies:
```bash
npm install
```
4. Set up environment variables for Cloudflare Workers and PostgreSQL.
5. Deploy the backend using Cloudflare Workers.
### Frontend Setup
1. Navigate to the frontend directory:
```bash
cd roadradar/frontend
```
2. Install dependencies:
```bash
npm install
```
3. Start the development server:
```bash
npm run dev
```