Hello this is one of my projects in robotics design and coding. I added the question and a photo of my build on tinkercad but I am having a problem of coding. Can anyone help with coding this project?  #RoboticsDesign&Coding #Physics #Programing

icon
Related questions
Question

Hello this is one of my projects in robotics design and coding.

I added the question and a photo of my build on tinkercad but I am having a problem of coding.

Can anyone help with coding this project? 

#RoboticsDesign&Coding

#Physics

#Programing

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.
mode 0: off, nothing to do, or turn off mode 2 or 3.
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
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
Transcribed Image Text: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. mode 0: off, nothing to do, or turn off mode 2 or 3. 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 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
下 雲
TMP
DIGITAL (PWM-)
CO UNO
TX
ON
ARD UINO
RX
ANALOG IN
POWER
apɔ qe
AREF
12
11
T+XI
0+X|
Transcribed Image Text:下 雲 TMP DIGITAL (PWM-) CO UNO TX ON ARD UINO RX ANALOG IN POWER apɔ qe AREF 12 11 T+XI 0+X|
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer