Question
Homework 5 - Motor Speed Control Learning Objective: Arduino Analog & Digital IO Problem: Build the circuit given below and write a program that
Homework 5 - Motor Speed Control Learning Objective: Arduino Analog & Digital IO Problem: Build the circuit given below and write a program that achieves following functionality. Button is used for power on/off of the whole system. Potentiometer is used to control the speed of the DC motor and LED turns on when system is on otherwise stays off. Circuit: DIGITAL (PWM-) O UNO ARDUINO - + POWER ANALOG IN 88 9V 11461 abcde NMOS Hints: There are 4 independent sub circuits. Program and verify that each sub circuit works independently. Use the Serial Monitor for verifying button and potentiometer circuit. Remember to scale the input on AO pin (range is 0-1023) to PWM output on pin 3 (range is 0-255). For button functionality, refer to Lab 4, Section 2, Part 5. Note we are using external pull down on pin 2 to avoid the floating pin problem. Reference: https://www.arduino.cc/reference/en/language/functions/digital-io/digitalwrite/ https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/ https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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