So I am making an Arduino controlled car which can detect the presence of alcohol.
my idea is that I want to display all the values like BAC from the alcohol sensor and Distance values from the ultrasonic sensor in the LCD display and at the same time display various texts in the oled display.
the problem I am facing is when turned on i want to display "car is starting" and after 2 sec display "blow into the breathalyzer" upon doing that i want to take the reading and start the motors of the car if BAC values are low if not display "too drunk to drive".
while car's motors are running i want to use the second alcohol sensor if it detects alcohol and measures the distance with the ultrasonic sensor i wnt to stop the car gradually.
Welcome to the forum.
You have told us what should happen, but not what does
happen.
Please post your code.
Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in a code block.
Please post a schematic or wiring diagram. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.
Please post a schematic. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.
Post links to data sheets or other technical information on the components in your project.
Photos of the wiring are often useful.
Because this is a safety item and the liability if something goes wrong I am declining to answer.
This would be an interesting experiment to learn about your own body, assimilation rate, perceived versus actual singing ability, reaction time (pinching a falling meter stick), equation solving, text memory, balance, coordination... to compare experiment versus control... and of course accuracy of coding and the Arduino project.
I would not put it in a public house. It would become another internet challenge (a friend told me).
I moved your topic to an appropriate forum category @electroank.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
A toy car?