{"id":23676941,"url":"https://github.com/spacecodee/esp32firetruckdev","last_synced_at":"2026-01-30T00:36:58.599Z","repository":{"id":263711162,"uuid":"890069674","full_name":"spacecodee/Esp32FireTruckDev","owner":"spacecodee","description":"A remote-controlled fire truck system using ESP32 microcontroller with WebSocket communication and a web-based control interface.","archived":false,"fork":false,"pushed_at":"2024-12-05T03:02:17.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T02:07:02.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spacecodee.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-17T23:22:48.000Z","updated_at":"2024-12-17T23:05:09.000Z","dependencies_parsed_at":"2025-02-19T18:41:44.610Z","dependency_job_id":"7bb21330-2fe2-49f0-a625-2965ba0ec756","html_url":"https://github.com/spacecodee/Esp32FireTruckDev","commit_stats":null,"previous_names":["spacecodee/esp32firetruckdev"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacecodee%2FEsp32FireTruckDev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacecodee%2FEsp32FireTruckDev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacecodee%2FEsp32FireTruckDev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacecodee%2FEsp32FireTruckDev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacecodee","download_url":"https://codeload.github.com/spacecodee/Esp32FireTruckDev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328167,"owners_count":21085261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-29T14:57:29.409Z","updated_at":"2026-01-30T00:36:53.580Z","avatar_url":"https://github.com/spacecodee.png","language":"C++","readme":"# ESP32 Fire Truck Control System\n\nA remote-controlled fire truck system using ESP32 microcontroller with WebSocket communication and a web-based control\ninterface.\n\n## Features\n\n### Hardware Control\n\n- LED Control System\n    - Red LED control (GPIO18)\n    - Green LED control (GPIO19)\n    - Built-in LED status (GPIO2)\n\n- Flame Detection System\n    - 3 flame sensors (GPIO34, 35, 32)\n    - Real-time flame intensity monitoring\n    - 1-100% intensity mapping\n\n- Motor Control System\n    - L298N motor driver integration\n    - 4-wheel drive control\n    - Directional movements:\n        - Forward/Backward\n        - Left/Right turns\n        - Diagonal movements (Forward-Left, Forward-Right, etc)\n    - Speed control via PWM\n    - Safety stop on WiFi disconnect\n\n- Water Pump System\n    - PWM-controlled water pump\n    - ON/OFF control\n    - Safety shutoff features\n\n### Motor Control\n\n- Dual motor control system\n    - Speed control for Motor A\n    - Speed control for Motor B\n    - Direction control\n- Real-time motor status feedback\n\n### Connectivity Features\n\n- WiFi Management\n    - Automatic WiFi portal configuration\n    - Remote WiFi reset capability\n    - Connection status monitoring\n    - Real-time status updates\n\n- WebSocket Communication\n    - Real-time bidirectional control\n    - JSON-based command structure\n    - Status feedback system\n    - Connection health monitoring\n\n### Connectivity\n\n- WiFi connectivity using WiFiManager\n- WebSocket server for real-time communication\n- Web-based control interface\n\n### Pin Configuration\nAll pin definitions are centralized in `include/PinDefinitions.h`:\n- Motor control pins (ENA, ENB, IN1-IN4)\n- LED indicators\n- Flame sensors\n- Water pump control\n\n### WebSocket Commands\nThe system accepts JSON commands for:\n- Motor control\n- LED control\n- Pump control\n- WiFi reset\n- Sensor data requests\n\n## Technologies Used\n\n### Hardware\n\n- ESP32 Development Board\n- Motor control system\n- LED indicators\n- Servo motors\n\n### Software\n\n- PlatformIO for ESP32 development\n- Arduino framework\n- Libraries:\n    - WiFiManager (v2.0.17)\n    - ESP32Servo (v3.0.5)\n    - WebSockets (v2.6.1)\n    - ArduinoJson (v7.2.1)\n\n## Project Structure\n\n├── include/\n\n│ ├── PinDefinitions.h # Hardware pin configurations\n\n│ ├── WebSocketConfig.h # WebSocket server\nconfiguration\n\n│ └── WifiConfig.h # WiFi connection settings\n\n├── src/\n\n│ ├── main.cpp # Main application code\n\n│ ├── WebSocketConfig.cpp # WebSocket implementation\n\n│ └── WifiConfig.cpp # WiFi configuration implementation\n\n├── platformio.ini # PlatformIO configuration\n\n└── esp32.md # ESP32 pin mapping documentation\n\n## Building and Flashing\n\n1. Install PlatformIO IDE\n2. Clone this repository\n3. Open project in PlatformIO\n4. Build the project:\n\n```bash\npio run\n```\n\n## Upload to ESP32:\n\n```bash\npio run -t upload\n```\n\nConfiguration\n-------------\n\nThe system can be configured through:\n\n- WiFiManager portal for network settings\n- WebSocket interface for real-time control\n- Pin definitions in the include files\n\nContributing\n------------\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Submit a pull request\n\nLicense\n-------\n\nThis project is open source and available under the MIT [License](LICENSE).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacecodee%2Fesp32firetruckdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacecodee%2Fesp32firetruckdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacecodee%2Fesp32firetruckdev/lists"}