Raspberry PI A+, B+ and 2B GPIO J8 40-pin pinout. Raspberry PI Models A and B have only the first 26 pins. GPIO# 2nd func pin# pin# 2nd func GPIO# – +3V3 1 2 +5V – GPIO2 SDA1 (I2C) 3 4 +5V – GPIO3 SCL1…
-
-
File and directory command line Directories List directory: ls List directory (wildcard matching): ls *.txt List all files of type: find . -name “*.txt” -print Switch/toggle between dirs: cd – Make empty directory: mkdir sample-directory Remove empty directory: rmdir sample-directory Remove directory with all contents:…
-
In this example we will connect a capacitive sensor to a GPIO pin on our Raspberry PI, when we touch the sensor we will display a message to the user. A practical use may be a touch activated lamp. This is the sensor we used…
-
Flash the ACT led from the command line, this tip was sent to me so I gave it a try, you could this in a script. The LED in question is seen below, this may depend on the version of Raspberry PI you have as…
-
Here are a couple of BASH scripts to display the temperature of the BCM2835 SoC used on the Raspberry PI. Using this its fairly simple to create a temperature logging system or even going a step further and if the temperature exceeded a maximum you…
-
Raspberry Pi hardware information, open up the terminal and type the commands listed below, you can also see the output from the terminal cat /proc/cpuinfo displays details about the device’s processor. cat /proc/meminfo displays details about the Raspberry Pi’s memory cat /proc/partitions reveals the size…
-
In the following example we will connect an LED and resistor to pin 7 of P1 on our Raspberry PI and we will flash an LED on, here is a picture of this OK we will use python, this tutorial assumes you already have Raspbian…
-
The MySQL Client can be used to connect to MySQL Server databases across a network. It provides a text-based interface to a MySQL Server. Commands # Install MySQL Client from the Debian repository sudo apt-get install mysql-client The package manager may suggest some dependencies for MySQL…
-
Installing MySQL Server Start LXTerm and enter the following # Install MySQL Server from the Debian repository sudo apt-get install mysql-server The package manager may suggest some dependencies for MySQL Server. Press “Y” then “enter” to continue installation. The MySQL installation process will prompt for a…