joystick project

1) Objective:

本实验利用arduino uno驱动joystick,joystick具有 (X,Y)2 轴模拟输出, (Z)1 路按钮数字输出。用arduino 读取各个轴的值实时通过串口打印出来。

2) Parts and devices:

器材名称
数量
arduino uno
1
joystick
1
USB数据线
1
杜邦线
若干

3) Circuit graph

arduino uno
joystick
5V
VCC
GND
GND
A0
VRx
A1
VRy
D3
SW

4) Download sample code from following link

Download joystick.ino sketch and load it into Arduino.

5) Result:

打开串口终端,摇动摇杆可以看到有信息输出

Posted in 测试

Leave a Reply

WordPress spam blocked by CleanTalk.

Meta