USE DISCOUNT CODEEXPERT30TO SAVE $30 USD
IOT based veehicle speed monitoring and controlling system
Vincent , 04-19-2025, 01:46 PM
Hey everyone, I’m working on an IoT-based project where I’m using the following components:2 IR sensors (one for RPM measurement, one for obstacle detection)L298N motor driver30 RPM DC motorESP32GPS module (NEO-6M)BuzzerIncrement/Decrement buttonsLCD display with I2C moduleMy project goal is:When the vehicle is moving at a normal speed, and it approaches a restricted zone like a school or hospital (within 500 meters), the buzzer should alert.Once it enters the restricted zone, the vehicle’s speed should automatically reduce to a predefined limit.After exiting the restricted zone, the speed should return to the previous level.Additionally, if the vehicle detects an obstacle, it should stop immediately.The motor’s real-time RPM should be displayed on the LCD.The speed can be set using increment and decrement buttons.We can be determined the restricted zones with the help of gps. I want to create a prototype but i couldn't able to do that....I dont know how to code ...could anyone figure it out for me. Also I asled chatgpt for the help it did give me a solid circuit cinnection but it couldnt figure out the code ..
QDrives , 04-19-2025, 03:27 PM
"*I dont know how to code*" -- you are not showing anything coming close to coding. It seems more that you have difficulty creating the schematic?For speed detection of motors it is better to used a incremental encoder with quadrature output.What is the motor used for anyway?
Mr. Nerdy , 04-20-2025, 03:59 AM
I can help you
Vincent , 04-20-2025, 06:08 AM
basically its a prototype. the motor used to measure speed of the vehicle
Mr. Nerdy , 04-20-2025, 09:39 AM
you can just use tachometer to read the speed. using motor as sensor have errors and require calibration
QDrives , 04-20-2025, 01:39 PM
Can't you use the GPS to measure the speed?
Robert Feranec , 04-22-2025, 01:41 PM
I found grok much better than chatgpt. I think grok should be able to help you with the code. But don't ask to write the whole code at once, start with something simple (e.g read RPM and show it in console output) and improve your code step-by-step. however, don't expect production like code, it can help you to test your project but the code will be mess.
Use our interactive
Discord forum to reply or ask new questions.