Download Print this page

Advertisement

Quick Links

Accessory Shield User Manual
Overview
Accessory Shield is an Arduino expansion board developed by Waveshare. It
integrates many popular perpheral devices, providing a great support to users in
learning Arduino series products and shortening development period.
Features
5-way joystick
Adjustable
potentiometer
Buzzer
RGB LED
Temperature Sensor
3-axis accelerometer
Extremely accurate
real-time clock
0.96 inch OLED
XBee interface
th
V1.1.6, March 10
2015
Accessory Shield
User Manual
Waveshare
1

Advertisement

loading

Summary of Contents for Waveshare Accessory Shield

  • Page 1 Accessory Shield User Manual Waveshare Accessory Shield User Manual Overview Accessory Shield is an Arduino expansion board developed by Waveshare. It integrates many popular perpheral devices, providing a great support to users in learning Arduino series products and shortening development period. Features ...
  • Page 2 Accessory Shield User Manual Waveshare 1. On-board source [Interface] 5-way joystick 5 action statuses: UP, DOWN, LEFT, RIGHT Arduino interface and ENTER. Easy to connect to different main control 10. XBee status indicator boards with Arduino interface. 11. Power light XBee interface 12.
  • Page 3: How To Use

    Accessory Shield User Manual Waveshare 2. How to use In this chapter, we will introduce the basic operations of Arduino IDE in the section 2.1, including custom library importation, program compiling and uploading. The detailed operations and experiments of the devices on the board are presented in the section 2.2.
  • Page 4 Accessory Shield User Manual Waveshare Find out the folder libraries, and copy it to the folder pointed by the option Sketchbook location: Restart the software, and then click Sketch -> Import Library, to check the library options: adxl345, ds3231, lm75, rgb_p9813 and ssd1306. If all of them are available, the libraries are imported successfully.
  • Page 5 Switch the BOOT mode of UNO PLUS development board to OFF, and set VCC to 5V; Connect the Accessory Shield module to the UNO PLUS development board, and then the development board to your PC via a USB cable. You can see the power light on the module lights up when the module is working properly.
  • Page 6 Accessory Shield User Manual Waveshare Click Tools -> Board -> Arduino Uno, to select relative Arduino development board. Since the setting will be saved automatically, you only need to configure it once. Click Tools -> Serial Port -> COM4, to configure the serial port of the Arduino development board for uploading.
  • Page 7 Accessory Shield User Manual Waveshare Click the button to start program compiling. If there is no error, the software will give a prompt “Done compiling” and display the size of generated file. Click the button to start uploading. When finished, you can see the LED on the UNO PLUS development board blinking in a frequency of 1Hz if the V1.1.6, March 10...
  • Page 8 Accessory Shield User Manual Waveshare 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.
  • Page 9 5000mv / 1024 = 4.88mv. When the AD value is 1, it corresponds to the output voltage 4.88mv. Accessory Shield provides an on-board 10k adjustable potentiometer with the maximum adjustable output voltage of 3.3V. When the development board is powered supply by 3.3V, the ADC output value is in the range of 0 –...
  • Page 10 Accessory Shield User Manual Waveshare three LED chips (R, G and B) embedded in the LED light. And the mixture of RGB can display rich colors. Operation and phenomena: Perform program compiling and uploading to the board. If the program is running well, you can see the RGB LED displays gradient colors.
  • Page 11 Accessory Shield User Manual Waveshare 2.2.6 3-axis accelerometer: ADXL345 The ADXL345 of ADI is a small, thin, ultralow power, 3-axis accelerometer with high resolution (13-bit) measurement at up to ± 16 g. Digital output data is formatted as 16-bit twos complement and is accessible through either a SPI (3- or 4-wire) or I2C digital interface.
  • Page 12 Accessory Shield User Manual Waveshare 2.2.7 Extremely accurate real-time clock: DS3231 The DS3231 is a low-cost, extremely accurate I C real-time clock (RTC) with an integrated temperature compensated crystal oscillator (TCXO) and crystal. The device incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted.
  • Page 13 24-hour system and the whole data length is of 15 characters. For example, February is written into 02, and the like. 2.2.8 0.96 inch OLED: SSD1306 Accessory Shield is provided with a 0.96 inch 128 x 64 OLED display module. It has the following features: ...
  • Page 14 Accessory Shield User Manual Waveshare and Group B, of which Group A includes XBee-A, Accessory Shield-A and Arduino development board-A, and Group B includes XBee-B, Accessory Shield-B and Arduino development board-B. Operation and phenomena: Insert the XBee-A into the XBee interfaces of Accessory Shield-A, and insert the XBee-B into the XBee interfaces of Accessory Shield-B respectively.
  • Page 15 Accessory Shield User Manual Waveshare should be configured correctly. You can configure the XBee module by X-CTU tool, or by AT commands via a serial terminal. This document will introduce how to use X-CUT tool to configure XBee merely. Click the button Test/Query to test whether the software is connected to the XBee module properly.
  • Page 16 Accessory Shield User Manual Waveshare  XBee-A configuraton V1.1.6, March 10 2015...
  • Page 17 Accessory Shield User Manual Waveshare a) Select the option ZIBGEE ROUTER/END DEVICE AT under the pull-down menu Function Set; b) Click the button Show Defaults; c) Select the option PAN ID and modify its parameter to 1234; d) Click the button Write to finish the setting of XBee-A.
  • Page 18 Accessory Shield User Manual Waveshare e) Select the option ZIBGEE ROUTER/END DEVICE AT under the pull-down menu Function Set; Click the button Show Defaults; a) Select the option PAN ID and modify its parameter to 1234; b) Select the option Channel Verification(JV), and modify its parameter to 1-ENABLED;...
  • Page 19: Arduino Uno Plus

    Accessory Shield User Manual Waveshare 3. Appendix: 3.1 Arduino UNO PLUS Arduino UNO PLUS is a development board based on ATMEGA328P-AU. It is compatible with Arduino UNO R3 development board, and has some improvements based on UNO R3. For more information about Arduino UNO PLUS development board referred in this...