User Tools

Site Tools


notes:c4eng:fall2023:projects:stl0

This is an old revision of the document!


STL0

PREPARATION

INSTALL CUSTOM WIRINGPI

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

NOTE: domain say “dr-OH-gon”, it does NOT say “dragon”

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

USING WIRINGPI: THE gpio TOOL

“gpio readall” will open up a table showing the physical pin layout of your pi. It will also tell you whether a pin is set to input or output, and whether the pin is turned on or off (V=0 shows the pin is off, v=1 shows the pin is on).

“gpio mode WIRINGPI_PIN# MODE” will change the mode of the designated pin. You must use the WiringPi pin number. Mode can either be in (input) or out (output).

“gpio write WIRINGPI_PIN# STATE” will change the ON/OFF state of a pin. 0=off and 1=on

USING WIRINGPI: SETTING MODE OF PINS

USING WIRINGPI: WRITING TO PINS

ELECTRICITY

VOLTAGE / VOLTS

GROUND

AMPERAGE / AMPS

RESISTANCE / OHMS

DIGITAL ELECTRONICS

LIGHT EMITTING DIODE

RESISTOR

SERIES CIRCUIT

COMPONENTS

BREADBOARD

T-COBBLER / INTERFACE TO PI GPIO PINS

GPIO.0 is actually GPIO17 on your T-cobbler

LED

Brief Definition:

A light-emitting diode (LED) is a semiconductor device that emits light
when current flows through it.

RESISTOR

TARGET CIRCUIT

notes/c4eng/fall2023/projects/stl0.1695218537.txt.gz · Last modified: 2023/09/20 14:02 by acuno