Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I. Wire up the joystick to your Arduino and write a program to print the joystick position to the serial port every 100 milliseconds a.

image text in transcribed
image text in transcribed
image text in transcribed
I. Wire up the joystick to your Arduino and write a program to print the joystick position to the serial port every 100 milliseconds a. Connect the joystick to the Arduino using this table: Arduino GND 5V A0 A1 JoystickMeaning Ground Power GND +5V VRx VRy Xaxis pin Y axis pin II. Create a motor driver that uses a joystick to control speed and direction a. Connect the H-bridge to the Arduino b. Before connecting the external power supply to the H-bridge, have a TA check your wiring: incorrectly wiring these components can seriously damage your Arduino Pushing the joystick up will increase the forward speed of the motor by an amount proportional to the offset of the joystick and pushing the joystick down will increase the reverse speed of the motor by an amount proportional to the offset of the joystick c. d. If the joystick is within 10% of its center value, the motor should be stopped Show the voltage of one of the joystick axes and the motor voltage variation using 2 channels of an oscilloscope. e. III. Attach a servo to your Arduino Connect the control pin of the servo to a PWM-capable pin a. Connect the servo's power and ground pins to the lab station's power supply, but do not turn the power on until a TA checks your wiring b. Pushing the joystick to the left will rotate the servo counterclockwise by a value by an amount proportional to the offset of the joystick and pushing the joystick to the right will rotate the servo clockwise by a value by an amount proportional to the offset of the joystick c. d. Show the servo signal on an oscilloscope. IV. After demonstrating your solutions, turn off the power supply and oscilloscope

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

Explain strong and weak atoms with examples.

Answered: 1 week ago

Question

Explain the alkaline nature of aqueous solution of making soda.

Answered: 1 week ago

Question

Comment on the pH value of lattice solutions of salts.

Answered: 1 week ago

Question

Understand how to design effective service guarantees.

Answered: 1 week ago