Question
Question#4: [15 Pts] We expect to design a project for controlling the temperature inside a room based on a temperature sensor and fun. The required
Question#4: [15 Pts]
We expect to design a project for controlling the temperature inside a room based on a temperature sensor and fun. The required components are shown below. The motor of the fun is assumed to be controllable by a PWM signal.
Wire the temperature sensor and the fun motor to the Arduino Board and justify your wiring
----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------
|
The temperature sensor provides 750 mV at 25 degrees centigrade and 500 mV at 0 degree centigrade. Calculate the output scale factor of this sensor:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Given that the Arduino Uno board Analog-Digital-Converter works with 10 bits. How many values of temperature can be read from the temperature sensor? Justify your answer.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Cite all digital pins number in which the fun can be connected and justify
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------
Write an Arduino Uno sketch that controls the room temperature (Two Arduino Uno instructions are provided)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
analogRead(Analog_Pin_Number);
analogWrite(PWM_Pin_Number, value);
value varies between 0 for 0% duty cycle and 255 for 100% duty cycle.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started