![ECE 492 Скачать руководство пользователя страница 25](http://html1.mh-extra.com/html/ece/492/492_manual_3859068025.webp)
Software:
Steps for non-volatile version:
1. Navigate to the directory of this project.
2. Run ./scripts/launch_quartus.sh in the terminal.
3. Compile the code in Quartus task section.
4. Flash the compiled .sof file to the DE2 board (JTAG port).
5. Run ./scripts/launch_niosII.sh in the terminal.
6. Run the project as NIOS II Hardware.
Steps for volatile version:
1. Navigate to the directory of this project.
2. Run ./scripts/launch_quartus.sh in the terminal.
3. Compile the code in Quartus task section.
4. Turn the board off and move switch 19 on the DE2 from RUN to PROG
4. Flash the compiled .pof file to the DE2 board (Active Serial Programming).
5. After the DE2 has been flashed, turn off the board.
6. Move SW19 to RUN and turn on the DE2 board again.
7. Run ./scripts/launch_niosII.sh in the terminal.
8. In *_syslib, ensure all components in System Library - Linker Script are pointing to
SDRAM
9. Flash the project to the Cyclone-II processor
How to play:
Steps are the same for both non-volatile and volatile versions:
1. Put on the gloves - accelerometer is on the right hand.
2. Hold one of the notes/chord (depending on which mode) on the left hand.
3. Strum the right hand, there should be output to the speaker.
4. Press once the octave up/down to increase/decrease the octave.
5. Press reset once to reset the guitar to default setting (note mode with 0 octave level).
6. Enjoy the virtual guitar gloves.
Future Work
Backup Plans/Options:
There was much difficulty with interfacing the digital accelerometer (MMA8452Q). It
communicates to an I2C bus, of which there is one on the DE2 board. This bus is physically
wired to the audio CODEC (Wolfson WM8731) on the board, which uses I2C as well. As
including an external component to the I2C bus proved to be troublesome, a distance sensor
23