Endless L.

asked • 05/22/21

what is the answer of this Robotics Design and Coding

build the circuit and and write the suitable code to do the following:



we want to build a multi-mode system with three modes, the user Enter from 0 to 2 through Serial monitor to select the mode.



  1. mode 0: off, nothing to do, or turn off mode 2 or 3.




  1. mode 1: thermometer mode, three LEDs and a temp. sensor, the first led will light if temp < 30.


second led will light if 30 <= temp <= 60



third led will light if temp > 60



  1. mode 2: buzzer with photoresistor, the buzzer will tone from 500 to 1000 HZ depends on the input of photoresistor (54 to 974)




hint: (use map function on mode 3, to map 54~974 to 500~1000)

.



connect:

LED1 to 2

LED2 to 3


LED3 to 4


Buzzer to 5

temp. sensor to A0

photoresistor to A1

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.