Control the servo motor

Assignment Help Physics
Reference no: EM131725488

OVERVIEW

In this activity, you will control the servo motor provided along with the 321Maker shield.

OUTCOMES
By the end of this assignment you will be able to:
- Use Servo library to control micro servo.
- Control servo using input devices.

REQUIREMENTS
- Arduino-Compatible board
- 321Maker shield
- USB Cable
- Arduino Software
- SG90 9 g Micro Servo
- Account on a Git repository hosting service

BACKGROUND

"Servos have integrated gears and a shaft that can be precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees.".

LEVEL 1: SETUP
- Create a new source code repository on your GitLab account. Use the starter code repository as your starting point.
- Open Visual Studio Code.
- Clone the repository into your local hard drive.
- Select file servoControl.ino.
- Connect your servo motor to the 321Maker shield as follows: Connect the devices as follows.
321Maker Servo GND ----------- GND
VCC ----------- VCC
D9 ----------- Pulse
- Connect the Arduino to your computer using the USB port.
- Make sure you select the correct Arduino board and communications port (don't forget to set bound rate).
- Make sure the code uses the correct pin, change it if necessary.
- Fix code so that it complies with servo specification:
- Verify that code compiles without error.
- Upload program to Arduino board.
- Congratulations, your should see the servo motor sweep side to side.
- Demo to your instructor

LEVEL 2: PROGRAM MODIFICATION
- Implement knob functionality using the 321Maker rotation sensor. You probably want to use the map function.
- Commit changes.
- Demo to your instructor

LEVEL 3: ADVANCED
- Add code so that servo also rotates depending on the button pressed. Button 1 should move the servo to the left (1 degree at a time). Button 2 should rotate the servo to the right (1 degree at a time).
- Commit changes.
- Demo to your instructor
- Change code so that it uses the buzzer to indicate that the servo has reached its maximum rotation angle.
- Commit changes
- Demo to your instructor

Attachment:- Visual Studio Code.rar

Reference no: EM131725488

Questions Cloud

Describe the concepts of least privilege : In your own words, describe the concepts of "least privilege" and "need to know". Why are these principles important to maintaining a secure environment?
How effectively are facts and conclusions written : How effectively are facts and conclusions written? How effectively is the message targeted to its audience?
Ram chips and memory is word addressable : Suppose that a 8M X 16 main memory is built using 1M X 8 RAM chips and memory is word addressable.
Explain each new category you created and present reasoning : Briefly explain each new category you created and present your reasoning for each category. Focus on the reasoning behind each pairing.
Control the servo motor : TECH1102 - Implement knob functionality using the 321Maker rotation sensor and you will control the servo motor provided along with the 321Maker shield
Functions to assist programs to deal with files : File management of any OS has several basic functions to assist programs to deal with files, describe those basic functions with examples
Embracing sustainable technologies : Why do you think UPS is embracing sustainable technologies? What business benefits will UPS gain from virtualization?
Find the optimal timing of plant additions : Use both graph method to estimate the optimal timing of plant additions, then use Excel Goal Seek to find the optimal timing of plant additions
Draw a smooth curve and a set of markers on the plot : Central Limit Theorem - You will draw a smooth curve and a set of markers on the plot. The markers will NOT be on the smooth curve

Reviews

len1725488

11/16/2017 3:38:20 AM

Assignment will not be accepted after submission end date (see D2L). File(s) with wrong name and/or format/extension will be ignored and will not receive marks. This is an in-class graded activity. You are required to perform the assignment during class time to receive marks. Only working code shown during class time will be considered for marks. Files submitted to the wrong assignment dropbox will be ignored. You will receive 0 (zero) if the URL for your commit is not correct or accessible to your instructor.

len1725488

11/16/2017 3:38:12 AM

SUBMISSION INSTRUCTIONS Upload your submission file (md) and the .ino file to this graded learning activity D2L droppox folder. Submission file should be named as follows: IOT_TermYear_GLA8_Firstname_MyBVCUsername.md Make sure your submission file is clear, organized, and easy to read. The header of your submission file must indicate: Course code : TECH1102 Term/Year : TermYear Assignment code : GLA8 Author : BVC Username : Date created : YYYY-MM-DD Description : URL to last commit: For md format you can use Visual Studio Code (with an extension), or any other text editor. A quick Google search reveals plenty of online markdown

Write a Review

Physics Questions & Answers

  What was the change in velocity of the bus

A bus was initially traveling with a velocity of 50 km/hr east. Later it was observed traveling with a velocity of 100 km/h north. What was the change in velocity of the bus

  Find the change in electric potential energy

find out the change in electric potential energy. For lengths of 1.000 m, 0.750 m, and 0.500 m, total time.

  Three magnetic materials

Name any three magnetic materials that we may have come across in our day to day life?

  What is the angular velocity of the disk and its speed

A compact disk on a CD player rotates clockwise. The disk completes one revolution in 0.234 s, what is the angular velocity of the disk and its speed at 1.42 cm from the axis of rotation

  A diamond has a mass of 566 g and the gold ring it is set

1. a diamond has a mass of 56.6 g and the gold ring it is set in has a mass of 125.6 g. how many carbon atoms are

  What is the speed of the bob at this point

A pendulum of length L with a bob of mass m swings back and forth. At the low point of its motion (point Q), the tension in the string is (3/2)mg. What is the speed of the bob at this point?

  You are driving into st louis missouri and in the distance

question you are driving into st. louis missouri and in the distance you see the famous gateway-to-the-west arch. this

  Using conservation of energy find the velocity of the

a roller coaster is initially at a height of 40 m above the ground and has an initial velocity of 15 ms. using

  Particle decays at the moment it completes one single trip

A subatomic particle has an unknown lifetime τ. The particle is created at t = 0 and travels around the Earth’s equator at speed 0.982 c. If the particle decays at the moment it completes one single trip around the Earth, what is τ?

  Two long straight wires are parallel and carry current in

1 a coil made of 5 loops of wire with a radius of 10.0 cm rotates about its diameter in a uniform magnetic field of

  Find the magnitude of its average velocity

A meteor streaking through the night sky is located with radar. At point A its coordinates are (5.40km, 1.25km ), Find the magnitude of its average velocity between these two points

  What is the temperature of the rod 25cm from the cool end

A copper rod 81cm long is used to poke a fire. The hot end of the rod is maintained at 105 degrees celcius and the cool end has a constant temperature of 21 degrees celcius. What is the temperature of the rod 25cm from the cool end?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd