# Joystick Controlled Robot – Circuitry

Lesson Details
How to control movements of a two-wheel mobile robot? Visualizing Joystick on evive’s Pin State Monitor.

Activities:

• Connecting the motors of the robot to evive. Making the robot move forward, backward, left, and right using evive's menu. Connecting the Joystick to evive and visualizing the reading on the Pin State Monitor.
Classroom Bundle Used:

## Lesson Overview

• In this activity, students will make a joystick-controlled robot whose motion will be controlled according to the position of a joystick module attached to the robot.
• If the joystick is moved forward – the robot will move forward.
• If the joystick is moved backward- the robot will move backward.
• If the joystick is moved left – the robot will turn left.
• If the joystick is moved right – the robot will turn right.
• If the joystick is in the center position – the robot should be at rest.
• During the activity, students will go through the following activities:
• Circuitry and testing the circuit.
• Logic

## Material Required

1 set of the following material per group of 3-5 students:

Component Image Quantity Available in Bundle
evive 1
BO Motor Mount 2
Dual Shaft BO Motor 2
BO Wheel 2
Acrylic Part: Base Plate 1
Caster Wheel 1
M3 bolts of 8 mm Length 10
20mm M3 (Female to Female) 3
USB A-B Cable 1
XY-axis Joystick Module 1
Male to Female Jumper Cable 20cm 5
Screw Driver (+) 1

## Lesson Outline

Introduction - 5 minutes
Circuitry - 30 minutes
• Connect the motors to evive.
• Connect the joystick to evive.
Logic - 25 minutes

Discuss the logic behind the programming of the robot, like when should the robot do the following things:

• Move forward
• Move backward
• Turn left
• Turn right
• Stop