User Tools

Site Tools


notes:c4eng:fall2024:projects:stl0

STL0

PREPARATION

INSTALL CUSTOM WIRINGPI

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

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

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

ACCESSING STL0 FROM YOUR PI

After finishing the set up of your pi and all updates have been downloaded and installed onto your pi, you then need to access a command prompt on your pi. Next, you will enter in the command prompt “wget https://lab46.g7n.org/~wedge/piph/download -O piph”. Then in order to run piph after it has been downloaded you enter the command “bash ./piph”. Then when asked for a password phrase simply hit the “enter” button and then follow the rest of the prompts given. After this has been downloaded and installed successfully then run the command “getconf LONG_BIT”, this will allow you to know what version of Raspberry Pi OS you are running. Based on this number (either 32 or 64) you will then either enter “wget https://lab46.g7n.org/~wedge/wiringpi_3.10_armhf.deb” then “sudo dpkg -i wiringpi_3.10_armhf.deb” (for the 32 version) or “wget https://lab46.g7n.org/~wedge/wiringpi_3.10_arm64.deb” then “sudo dpkg -i wiringpi_3.10_arm64.deb” (for the 64 version). After this you should be be able to cd directly into src, fall2024 and any other directories you have created as though you are on a non pi lab 46 shell. As well, if you have not already run the grabit command in order to get the stl0 project file you can do this now and have access to the project file for stl0 on your pi.

USING WIRINGPI: THE gpio TOOL

USING WIRINGPI: SETTING MODE OF PINS

USING WIRINGPI: WRITING TO PINS

ELECTRICITY

VOLTAGE / VOLTS

Voltage is the difference in electrical potential. In ohmic materials, V=IR, or voltage is equal to the product of the electric current times resistance. 1 volt equals 1 joule per coulomb.

GROUND

A physical connection between an electrical circuit and the ground, or some other body that acts as a safe path for excess electrical energy. Can also be a reference point from which voltage or electric potential is measured.

AMPERAGE / AMPS

Measurement of current through a circuit. 1 ampere is equivalent to 1 coulomb per second.

RESISTANCE / OHMS

A measure of how an object opposes the flow of electrical current. The units of resistance are ohms. One ohm is equal to one volt/ampere and can be calculated with V-IR → R=V/I which is voltage divided by current. Hence once ohm equals one volt/ampere.

DIGITAL ELECTRONICS

LIGHT EMITTING DIODE

A hardware component composed of a plastic covering over a small light source. Whenever electrons flow through the diode, they power the light source when the Light Emitting Diode (or LED) is connected to a motherboard or breadboard. The electrons can only flow one way through the wire; if the LED is not lighting up despite being hooked up to a working power source, the usual method to fix the issue is to simply switch the ends of the LED into their respective sockets to allow electron flow. LEDs can only be lit up for a limited amount of time; the longer they are lit and/or the brighter they are, the shorter their “lifespan.”

RESISTOR

A hardware device that limits the amount of electrons flowing through the circuit so as not to let the other components connected to the same power source be damaged by excessive electricity, which can cause irreparable damage to the system and result in one or multiple components needing to be replaced.

SERIES CIRCUIT

COMPONENTS

BREADBOARD

T-COBBLER / INTERFACE TO PI GPIO PINS

LED

An LED is actually just an acronym for “Light Emitting Diode”.

RESISTOR

TARGET CIRCUIT

notes/c4eng/fall2024/projects/stl0.txt · Last modified: 2024/09/24 13:07 by dnayo