-
1Build Instructions
Build Instructions
Step 1: Prepare the Hardware
Collect the main components: ESP32, relay module, contactor, RFID reader, power supply, and water pump/motor.
Step 2: Connect ESP32 with Relay
Connect the ESP32 output pin to the relay module input. The relay will work as the switching control signal for the motor contactor.
Step 3: Connect Relay with Contactor
Connect the relay output to the contactor control circuit. The contactor will safely handle the high-power motor load.
Step 4: Add RFID Reader
Connect the RFID reader module to the ESP32 using SPI communication. This will allow users to start a session by tapping an RFID card.
Step 5: Upload ESP32 Firmware
Open the firmware in Arduino IDE or PlatformIO, configure WiFi credentials, API endpoint, device ID, and upload the code to the ESP32.
Step 6: Setup the Cloud Backend
Install the backend dependencies, configure MongoDB, environment variables, authentication settings, and start the Node.js server.
Step 7: Setup the Web Dashboard
Install frontend dependencies, configure the backend API URL, and run the Next.js dashboard.
Step 8: Create User Roles
Create Master, Admin, and User accounts. Assign proper permissions for device management, runtime control, and pump access.
Step 9: Register Device and RFID Cards
Add the ESP32 device in the dashboard and register RFID cards for users.
Step 10: Test Pump Control
Test remote ON/OFF control from the dashboard and verify that ESP32 activates the relay and contactor correctly.
Step 11: Test Runtime Control
Assign minute balance to a user and check whether runtime is deducted automatically while the pump is active.
Step 12: Check Logs and Reports
Verify runtime history, device activity logs, user logs, and CSV export features.
Step 13: Safety Testing
Test runtime auto cutoff, unauthorized access prevention, load shedding recovery behavior, and device status validation.
Step 14: Final Installation
Mount the circuit inside a safe electrical enclosure and connect the system to the real pump setup through a qualified electrician.
Mr. Sarful hassan
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.