DREAM machine.
Your DREAM machine must be capable of measuring the distance of objects as near as 10.16cm
(4.0in) and as far away as 80.00cm (31.5in), and must display the results at least 10 times per
second in continuous mode or upon demand in single mode. The user must be able to see results
in either metric (cm) or imperial (inches) units on a serial terminal or on a servo-based analog
scale. (The servo scale only needs to indicate distance in inches, but feel free to add centimeters
to the scale if you like.) When displaying results on the serial terminal, inches must display
with one decimal digit of accuracy (e.g. 11.8in), while centimeters must display with two
decimal digits of accuracy (e.g. 13.21cm). All results must include units (either in or cm).
To protect the servo from damage, you must ensure that your code does not move the servo more
than -60? to +60? degrees from center, corresponding to distances of 4.0in (10.1cm) and 31.5in
(80cm) respectively. It is very important not to overdrive the sensor or damage will occur.
You will feel stronger-than-normal vibrations and hear mechanical chatter when the servo is
overdriven. Should this occur, immediately remove the drive signal and do not reapply it
until you’ve located and fixed the problem.
The post DREAM machine appeared first on My Assignment Online.