Arty OLED ACL Demo
Overview
This project demonstrates the use of the Arty board with expansion modules: Basic IO Shield and PmodACL. It is a simple Microblaze application.
Features Used
Not Used | Used | |
---|---|---|
4 user switches (Arty) | X | |
8 user LEDs (Arty) | X | |
4 user push buttons (Arty) | X | |
USB-UART Bridge | X | |
10/100/1000 Ethernet PHY | X | |
512MiB 1050Mb/s DDR3 Memory | X | |
Quad-SPI Flash | X | |
USB HID Host | X | |
Pmod Connector (JB) | X | |
Arduino/chipKIT Shield connector | X | |
4 user switches (Basic IO Shield) | X | |
8 user LEDs (Basic IO Sheild) | X | |
4 user push buttons (Basic IO Shield) | X | |
Analog potentiometer (Basic IO Shield) | X | |
Screw terminal connectors (Basic IO Shield) | X | |
OLED display (Basic IO Shield) | X |
Description
This project demonstrates the use of the Arty board with expansion modules: Basic IO Shield and PmodACL. The project is implemented as a simple Microblaze application.
The behavior is as follows:
- Periodically, the acceleration on the 3 axes is read from PmodACL. The PmodACL is accessed over SPI and provides acceleration reading as 10 bits raw values.
- The raw values read from PmodACL are converted in values expressed in terms of g, considering that the 10 bits values correspond to the used +/- 2g acceleration range.
- The values in terms of g are formatted and displayed on the OLED display. The OLED display is accessed over SPI.
The sources folder contains two separate folders containing functions for ACL and OLED. These functions can be used in any project using these devices.
Prerequisites
Hardware
- Arty board
- Basic IO Shield
- PmodACL
Software
- Vivado Design Suite & Xilinx SDK 2016.4
- Version 2016.4 must be used to generate the project
- Digilent Board Support Files for Vivado
- Follow the Vivado Board Files for Digilent 7-Series FPGA Boards guide on how to install Board Support Files for Vivado.
Project setup
The picture from the top of this document shows the overall setup of this project.
1. Connect the PmodACL in the JB Pmod connector of Arty.
2. Connect the Basic IO Shield in the Arduino/chipKIT Shield connector of Arty.
3. Connect the USB cable in the PC and in the micro-USB connector J10 of Arty.
Downloads
How to..
1. Generate the Project
1.1) Download the project linked in the download section and unzip it in the location of your choosing.
1.2) Generate the Arty Oled ACL project in the Projects folder by following this guide before continuing: How to Generate a Project from Digilent's Github
2. Build the Project
2.1) Click Generate Bitstream on the left hand menu towards the bottom. Vivado will run through both Run Synthesis and Run Implementation before it generates the bitstream automatically.
Note: If you want, you can click each step by itself in the order of Run Synthesis, Run Implementation and then Generate Bitstream.
3. Export to SDK
4. Import the SDK files
4.1) In Xilinx SDK, select File>Import menu option, then expand the General node and click Existing Projects into Workspace. Select the sdk folder from within the project folder, and click OK. In the Import window be sure to have the Oled_Acl and Oled_Acl_bsp projects selected, click Finish to import the SDK project.
After this you should be able to see the Oled_Acl project in the Project explorer panel.