5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



EASY plug Ultimate Starter Learning Kit Project 14: Joystick

Posted by Fiona Su on

Overview
Lots of robot projects need joystick. This joystick module provides an affordable solution. In the following, we are going to test the joystick.
Component Required
  • EASY plug control board*1
  • EASY plug Joystick Module *1
  • EASY plug LED module *3
  • RJ11 cable *4
  • USB cable*1

Component Introduction


Lots of robot projects need joystick. This module provides an affordable solution.
By simply connecting to two analog inputs, the robot is at your commands with X, Y control.
It also has a switch that is connected to a digital pin.
This joystick module can be easily connect to EASY PLUG control board with only one cable.
  • Interface: Easy plug
  • Supply Voltage: 3.3V to 5V
  • Interface: Digital

Connect It Up
Connect the EASY Plug Joystick module to control board using an RJ11 cable.

thumb

Note: X-axis is connected to A6, Y-axis is connected to A7, Z-axis is default by D2
Upload the Code

thumb

What You Should See

thumb

Done uploading the code, open the serial monitor and set the baud rate to 9600. If push the Joystick button towards different direction, you should get the different value.

thumb

Controlling LED Lights

Hookup Guide

thumb

Test Code

thumb

What You Should See
Upload the code successfully, push the Joystick X-axis to downward, the LED light connected to D5 will become off.
If push the Joystick Y-axis to leftward, the LED light connected to D6 will be turned off. Z-axis will control the LED light connected to D7.

thumb

thumb

All Tutorials

Buy >> EASY plug Ultimate Starter Learning Kit 

0 comments

Leave a comment

Please note, comments must be approved before they are published