Giter Site home page Giter Site logo

raspberry_pi's Introduction

Computer Architecture using Raspberry Pi

This repository contains an overview of what I learned while auditing Stanford's class on Computer Systems. Code is available upon request.

The Course Content

  • ARM architecture and machine code
  • From Assembly to C code
  • Communication and the Serial Protocol
  • Modules, libraries and linking
  • Memory Management
  • Keyboards and the PS/2 Protocol
  • Sound, Analog, and Music
  • Interrupts
  • Computer Arithmetics

Assignments

Parallel to the courses were assignments, which aimed to build a computer system from the grounds up:

  • Assignment 1: Implement a Larson Scanner
  • Assignment 2: Implement a Clock
  • Assignment 3: Implement a String Formatting Library
  • Assignment 4: Backtrace and Malloc
  • Assignment 5: Keyboard and Simple Shell
  • Assignment 6: Graphics Library and Console
  • Assignment 7: System Monitor with Interrupts

Final Project: A Musical Keyboard and Shell

There was also a final project, which was to be chosen freely within teams. My teammate and I chose to implement a musical keyboard with a graphic interface and shell.

Project description

We aim to make a musical piano keyboard, where we could play the 12 keys of one octave on specific keys of the keyboard. We extended the shell that we built during the previous assignments by adding a music command which boots the console into a piano graphical interface, and interprets certain keystrokes as piano keys, playing sounds according to which instrument synth the user chooses. The program returns to normal shell function with the 'ESC' key, and a instrument synth can be choosen using the 'Z' key.

An overview of the functionalities

When the user presses a key, the corresponding key is highlighted in the graphical interface (corresponding to a piano keyboard) PutCqptionHere

The shell, with the added 'music' command. PutCqptionHere

Once the musical keyboard is started, the user can choose an instrument PutCqptionHere

And here is what the hardware setup looked like PutCqptionHere

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.