complete mbed c code for speed sensor 1

As part of a vehicle development group, you’re initially tasked with developing the prototype of a speed warning system. Mimic the speed sensor with an analog potentiometer wired to pin 15 on the mbed. The sensor measurement value is 0.01*V where V is velocity measured in mph. The desired system velocity is 70 mph. Write complete mbed code that will do the following continuously: 1) read the sensor data, 2) compute speed in mph, 3) compute the error, 4) turn on an LED if the speed is too high, 5) print out the velocity and error on TeraTerm

if an mbed is not available, use (https://simulator.mbed.com/) to write your code

“Get 15% discount on your first 3 orders with us”
Use the following coupon
FIRST15

Order Now