This code example shows how to display some hardware information using the pi4l java library [codesyntax lang=”java”] import com.pi4j.system.NetworkInfo; import com.pi4j.system.SystemInfo; import java.io.IOException; import java.text.ParseException; public class hardwareinfo { public static void main(String[] args) throws InterruptedException, IOException, ParseException { System.out.println(“—————————————————-“); System.out.println(“HARDWARE INFO”); System.out.println(“—————————————————-“); System.out.println(“Serial Number …
-
-
This examples uses pi4j library to display operating system information [codesyntax lang=”java”] import com.pi4j.system.NetworkInfo; import com.pi4j.system.SystemInfo; import java.io.IOException; import java.text.ParseException; public class osinfo { public static void main(String[] args) throws InterruptedException, IOException, ParseException { System.out.println(“—————————————————-“); System.out.println(“OPERATING SYSTEM INFO”); System.out.println(“—————————————————-“); System.out.println(“OS Name : ” + SystemInfo.getOsName()); …
-
The first step is to verify if you have java installed , to do this open a command prompt and type the following java -version This should return something like the following, if not you’ve probably got an older version of Raspbian or equivalent that …
-
Simple app for checking the status of your Raspberry Pi. RasPi Check shows you overclocking information and free memory, runtime, disk status and lots of other pieces of system information. You can also restart or halt your Raspberry Pi ® and send custom commands! You …
-
The first android app I’m looking at allows you to experiment with the GPIO header on your raspberry pi. The app supports the Quick2Wire Interface, IO Expander and Analog Boards. Adafruit LCD Plate, PiFace Command and Display. DS18B20 Temperature Sensors. DHT11 Humidity Sensor and BMP085. The temperature sensors …
-
In this example we connected an LDR to our Raspberry Pi, we will connect the output to a GPIO pin and detect whether its light or dark Here is a typical module You connect the module to you Raspberry Pi as follows. Pi GPIO header …
-
In a previous example we connected a Max7219 8×8 LED matrix display to our Raspberry Pi, you can also purchase a 7 segment display which uses the same ic. Here is a typical module To make life easy there is a python module already available …
-
As part of my arduino/general microcontroller development I purchase a variety of interesting boards and modules, oneof these is a 8×8 LED array which is controlled by a MAX7219. these modules are low cost and are nice for beginners level projects, you can display text, …
-
The pibrella is a nice little board that connects yo the GPIO connector of your Raspberry PI. It has the folllowing to play around with Red, Green and yellow LEDs A push button switch A buzzer 4 inputs and 4 outputs (protected) I2C connector (not …
-
In a previous example we created a simple console program, in this example we will create a basic GUI program. To do this we need to install GTK. Lets begin by installing GTK for mono [codesyntax lang=”bash”] sudo apt-get install gtk-sharp2 [/codesyntax] Create a folder …