The Use of Joystick Sensor

来自Microduino Wikipedia
1304410487@qq.com讨论 | 贡献2015年10月28日 (三) 02:51的版本 (Created page with " {| style="width: 800px;" |- | ==Purpose== This tutorial will show you how to use Microduino Joystick. ==Equipment== *'''Microduino-CoreUSB''' *'''Microduino-Joystic...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

Purpose

This tutorial will show you how to use Microduino Joystick.

Equipment


  • Other Hardware Equipment
    • USB cable One

Principle

The X-axis and Y-axis of the Joystick correspond two analog values. The move of X- and Y-axis changes the analog values.

Program

[MicroduinoJoyStick]

Debugging

Step 1: Plug Microduino buzzer to the D6 pin of Microduino-Sensorhub and Microduino Joystick to A2 , A3.


Step 2: Connect USB cable to your PC, download the code and program it to Microduino-CoreUSB.


Step 3: The Joystick is in the middle after power-on.


Step 4: Move Joystick X-axis and he sound frequency of the buzzer changes along with it.

Result

You can control the tone of a buzzer through Joystick.

Video