User Tools

Site Tools


notes:c4eng:fall2022:projects:vcc0

This is an old revision of the document!


BACKGROUND

SELECTION LOGIC

RELATIONAL OPERATORS

WIRINGPI INSTALL

WIRINGPI COMMAND-LINE USAGE

ELECTRONICS

BREADBOARD

The breadboard is the device we will use to build our circuits:

The electrical layout of the breadboard is as follows:

Here's a good video overview of the functionality of a breadboard:

COMPONENTS

A breadboard consists of plastic block holding a matrix of electrical sockets of a size suitable for gripping thin connecting wire, component wires or the pins of transistors and integrated circuits. The sockets are connected inside the board, usually in rows of five sockets.

CIRCUIT

ONE LED

Here is a diagram for a circuit driving one LED, from one GPIO pin:

You are after a circuit that drives four LEDs, each one from a unique GPIO pin.

SPECIFICATIONS

PI SETUP

NOTE: As of 20220908, is not working for the pi 400. See the section below for the pi 400 workaround.

First, we need to download the wiringPi library package:

yourpi:~$ wget https://project-downloads.drogon.net/wiringpi-latest.deb

Then, we need to install it:

yourpi:~$ sudo dpkg -i wiringpi-latest.deb

wiringPi on the pi400

For the pi400, we have to do a slightly different process, but will result in the needed functionality becoming available.

On the pi (doesn't matter where, although probably NOT in your repository; base of home directory works fine):

yourpi~$ git clone https://github.com/WiringPi/WiringPi.git

Then:

yourpi:~$ cd WiringPi
yourpi:~/WiringPi$ 

Finally, build and install it:

yourpi:~/WiringPi$ ./build

Provided there are no apparent errors, close out of that terminal and open a new one, then the gpio tool and related WiringPi functionality should now be available.

PROGRAM

notes/c4eng/fall2022/projects/vcc0.1662739432.txt.gz · Last modified: 2022/09/09 16:03 by lbrant2