Question: Design a system that uses LED indicators for machine safety applications. Assume an ultrasonic sensor is attached to an assembly robot that operates in its

Design a system that uses LED indicators for machine safety applications. Assume an ultrasonic sensor is attached to an assembly robot that operates in its work cell. People are not supposed to enter the operating zone of the robot. An ultrasonic sensor reads distance to objects or people approaching the work zone, and it sends warning signals as follows: If distance > 100 cm, it is safe (turn on GREEN light) If 50 < distance < 100 cm, warning (turn on YELLOW light) If distance < 50 cm, it is danger (flash RED light every 0.5 second) Note: You need to follow proper procedure to correctly wire your ultrasonic sensor and the LEDs to your Arduino. You can use either a single RGB LED or three separate colored LEDs. Remember to use current limiting resistors for your LEDs. Note: If you choose so, you are free to use TinkerCad for this lab exercise, but note that there are two slightly different ultrasonic sensors available in TinkerCad. The HC-SR04 is identical to the one presented in the Sensors lecture. The HC-SR04 is a four pin device (Vcc, TRIG, ECHO, GND), while the PING))) model from Parallax.com is a three pin device (GND, 5V, SIG). So you need to pay attention to these different options in when interfacing an ultrasonic sensor to the Arduino and when writing your application program.

INCLUDE TINKERCAD DIAGRAM AND CODING

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!