Write a program for Arduino that controls a set of two traffic lights at a crossroads. Assume that when the east-to-west traffic lights are green or amber, the north-to-south traffic lights are red. Green lights must stay on for 1 minute and the amber lights for 8 seconds (remembering that in all other cases the light must be set to red). You can assume that the Arduino is wired to the traffic lights in the following pin configuration. East-west traffic light .Green light-> Pin 0; Amber light->Pin 1; Red light -> Pin 2 North-south traffic light .Green light-> Pin 3; Amber light->Pin 4; Red light > Pin 5 [10 Marks] (I8) Write a program for Arduino that reads the analog input from a proximity sensor and outputs this value to a light emitting diode (LED). You can assume that the closer an object is to the proximity sensor, the higher its ADC value will be and the brighter the LED should shine. The analog input from the proximity sensor will require calibration in order to define the minimum and maximum of expected values to be read by the proximity sensor. This should be carried out during the first 5 seconds of the program (hint; millis) The circuit: .Proximity sensor attached to analog input 0 of the Arduino, LED attached from digital pin 9 of the Arduino to ground [10 marks]
HOW OUR WEBSITE WORKS
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of
HIGH QUALITY & PLAGIARISM FREE.
To make an Order you only need to click PLACE ORDER on top of this page and we will direct you to our Order Page at WriteDen. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Deadline range from 6 hours to 30 days.
Once done with writing your paper we will upload it to your account on our website and also forward a copy to your email.
Upon receiving your paper, review it and if any changes are needed contact us immediately. We offer unlimited revisions at no extra cost.
Is it Safe to use our services?
We never resell papers on this site. Meaning after your purchase you will get an original copy of your assignment and you have all the rights to use the paper.
Our price ranges from $8-$14 per page. If you are short of Budget, contact our Live Support for a Discount Code. All new clients are eligible for 15% off in their first Order. Our payment method is safe and secure.
Please note we do not have prewritten answers. We need some time to prepare a perfect essay for you.
Interested in purchasing an essay from us? Click PLACE ORDER on top of this page