Download Print this page

Waveshare Accessory Shield User Manual page 8

Advertisement

Accessory Shield User Manual
program runs properly.
2.2 Basic experiments
Please make sure the libraries in the Demo are imported correctly, before
performing the basic experiments presented in the sections below.
2.2.1 5-way joystick
The Joystick has 5 action statuses: UP, DOWN, LEFT, RIGHT and ENTER. The
keys relative to different statuses are connected to corresponding Arduino pins. The
key-press can be judged by checking the corresponding IO levels.
Operation and phenomena:
Perform program compiling and uploading, and then click the button
the serial port monitor of Arduino IDE. If the program is running properly, the
on-board LED will blink in the frequency of 1Hz, indicating that the whole system
works well. When any key is pressed, the monitor will show the one has been
pressed, for example: you press UP, as the figure shows below.
2.2.2 Adjustable
ATMEGA328P-AU is the main control chip of UNO PLUS development board. It has
a wide power voltage range, supporting 3.3V and 5V power supply. With a 10-bit AD
converter embedded, it can provide 2^10=1024 levels of AD conversion. For 3.3V
power supply, the resolution is up to 3300mv / 1024 = 3.22mv. When the AD value is
1, it corresponds to the output voltage 3.22mv. For 5V power supply, the resolution
th
V1.1.6, March 10
2015
potentiometer
Waveshare
to start
8

Advertisement

loading