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

  Find the magnitude of the resulting magnetic field

A sphere of radius R is uniformly charged to a total charge of Q. It is made to spin about an axis that passes through its center with an angular speed ω. Find the magnitude of the resulting magnetic field at the center of the sphere.

  Find the equivalent resistance

A resistor is in the shape of a cube, with each side of resistance  R . Find the equivalent resistance between any two of its adjacent corners.

  What is the electric field at the location

Question: Field and force with three charges? What is the electric field at the location of Q1, due to  Q 2 ?

  What is the maximum displacement of the bridge deck

What is the maximum displacement of the bridge deck?

  What is the magnitude of the current in the wire

What is the magnitude of the current in the wire as a function of time?

  Blackbody

Questions on blackbody, Infra-Red Detectors & Optic Lens and Digital Image.

  Gravity conveyor

Illustrate the cause of the components accelerating from rest down the conveyor.

  Calculate the dc voltage

Calculate the dc voltage applied to the circuit.

  Quadrupole moments in the shell model

Quadrupole moments in the shell model

  Determine the tension in each string

Determine the tension in each string

  Introductory mechanics: dynamics

Calculate the smallest coefficient of static friction necessary for mass A to remain stationary.

  Evaluate maximum altitude

Evaluate maximum altitude?

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