Assignments
All course materials are provided by Dr. Brian Fraser, School of Computing Science, SFU
Suggested: C style guide.
Remote CSIL Access: Official CSIL Linux remote access guide; email helpdesk@cs.sfu.ca if you have any problems.
Assignment 1 - Getting Started
Click to expand...
- Assignment description
- Assignment marking guide
- How-To Guides
- Quick-Start Guide: How to setup the build environment and download code to the BeagleBone.
- Networking Guide: How to get an Ethernet connection between the BeagleBone and the host PC.
- NFS Guide: How to setup the NFS server and connect to it from the target.
- LED Guide: How to control the LEDs via the terminal and C.
- GPIO Guide: How to read and control digital logic pins (button!) via the terminal and C.
- Makefile Guide: Covers the basics of makefiles.
- [UPDATED] Due Oct 31st by 11:59pm.
Submit via CourSys
Assignment 2 - Embedded Linux & Threads
Click to expand...
- Assignment description. [Updated Oct 20 (V3)]
- Provided files including
noworky.c
- Hardware wiring verification application [NEW]
- Sample output [NEW]
- Assignment marking guide [NEW]
- How-To Guides
- Case Assembly Guide: How to put together the BeagleBone and mounting plate.
- Debugging Guide: GDB Server, Cross-GDB, Cross-debugging with VS Code or Eclipse, and Valgrind.
- A2D (Analog) Guide: Covers reading a voltage via the Linux command line, and via C code, and 2-axis joysticks
- Sample C program: potDriver.c
- Light Sensor (photoresistor) video by Dr. Brian.
- Light sensor guide (created by students; just first 2 pages); use a 10kOhm resistor.
- Guide on using I2C to drive 8x8 LED Matrix (or Zen Cape's 2-digit 14-seg display)
- Sample C program: segDisplay.c & i2c_commands.sh
- See GPIO guide from As1 for button.
- Hardware Kit Soldering
- 8x8 LED matrix: Soldering guide, or see 8x8 Matrix info, Backpack info.
- Joystick:
Joystick info,
Breakout board info.
To solder, insert joystick's 6 pins, from the top (over the hash markings) and solder on back. Cut 1x8 pin header to length 4, insert from bottom and solder on top (hint: do this while mounted in a breadboard).
Note that the left and right headers on the breakout board are identical and connected by the circuit board.
- BeagleBone Green Docs
- BBG pin info for P8 Header (top) and P9 Header (bottom)
- BBG System Reference Manual
- BBG Schematic
- Due Nov 30th by 11:59pm.
Submit via CourSys
Assignment 3 - BeatBox
Click to expand...
- Assignment description.
- Provided files including
- Hardware wiring verification application
intervalTimer.h
: To track interval timing and compute statistics.
- Assignment marking guide.
-
Guides and Provided Files:
- USB Audio Adapter Guide covering PCM audio output via ALSA in C
- wave_player: Sample C application for PCM audio output via ALSA. Includes template of an audio mixer for mixing real-time PCM sounds into one output stream
- Drum sounds suitable for creating a drum beat. From Freesound.org, by "menegass", used under Creative Commons license
- Zen Cape Audio Guide covering the Zen cape and PCM audio output via ALSA in C
- See assignment 2 (above) for guides on Joystick, 8x8 Matrix, Valgrind
- See Nov 3rd lecture for guide to assignment, understanding audio, and coding suggestions
- USB Audio Adapter Guide covering PCM audio output via ALSA in C
Assignment 4 - PRU
- Assignment description.
- Assignment marking guide.
- Provided files including
- Morse code encoding and function to convert char to bits.
- Guides
Policies
- Assignment Late Policy
5% penalty per calendar day; usually max 4 days late. Contact the instructor before the deadline if there are extenuating circumstances. Some assignments may not allow late submissions, such as just before an exam. - Extensions and Deferrals
Request a concession via the Faculty of Applied Science's Concessions form. Doctor's notes are not required this semester if sick. - Academic Honesty
- The MOSS tool will be used to check the originality of all electronic submissions.
- SFU's Academic Honesty policy is crucial to earning credit in this course. Violations of the policy will be taken seriously and reported to the department and university.
- Explanation of penalties applied for academic dishonesty.