Category: Tutorials

  • Motion Detection with PiCam

    The Raspberry Pi camera module can take picture when a motion occurs, so you can use it for surveillance purposes. Here is how this can be done: 1. First, make sure that your Raspberry Pi is running the latest firmware by running the command: sudo rpi-update 2. If not already installed, install the picamera python module by…

  • Node Red Tutorial

  • Scripts at Startup

    Run a Program On Your Raspberry Pi At Startup In this tutorial we show you five ways you can run a program on your Raspberry Pi at startup.  The five methods that are available to run a program at boot are: rc.local .bashrc init.d tab systemd crontab In the /home/pi directory, open a file for editing:…

  • Setting up Apache, PHP and MySQL

    1. Web Server To explore the data we will be collecting, we need to set up a web server that will present web pages to other computers within the network (remembering that this is not intended to be connected to the internet, just inside your home network). Run the following command; sudo apt-get install apache2 apache2-utils…

  • Visualizing Data

    We need a way of presenting the temperature data that has been saved to the database in the last tutorial. This tutorial shows how we can create a simple representation of the data and is only intended to as a starting point for the display of data and can be taken much further. For the purposes of this…

  • VNC Resolution

    By now you’ve probably tried to connect to your Pi with VNC. In VNC Viewer on your laptop the resolution of the your Pi is set low by default. To change this default we’ll need to change a setting in raspi-config. To use raspi-config, access Terminal and run raspi-config. Then navigate to Advanced Options >…

  • Recording Data

    To record data from a sensor we will use a Python program that checks the sensor every minute and writes the temperature (with a time stamp) into our MySQL database. First we’ll need to install a package that will help us connect Python to MySQL: sudo apt-get install python3-mysqldb Database preparation First we will set…

  • RaspberryPi 05: Remote Desktop

    UPDATE: This article is out of date, RealVNC is now installed on Raspbian, see this article for more info (excerpt from page 27 of MRE-RPi book) Often all you need to control your Raspberry Pi is an SSH connection, however sometimes it is useful to be able to remotely control your RPi using the mouse…

  • RaspberryPi 04: First Time Configuration

    RaspberryPi 04: First Time Configuration

    The first time you run Raspberry Pi you will need to make some basic configurations. The configuration panel can be found in the main menu (Main/Preferences/RPI Configuration) Expand File System Change Hostname Change Password (unique) from default (raspberry) Enable SSH & VNC (in the interfaces tab of settings)

  • RaspberryPi 03: Connecting RPi to WiFi

    Overview For these tutorials we will not use the Emily Carr Wifi network as it is problematic, instead we’ll be using my own network for this course, here is the login: SSID: wifi network name: ecu-ixd Password: babelfish67 To connect your Raspberry Pi to this network, you’ll need to edit: /etc/wpa_supplicant/wpa_supplicant.conf We’re going to use nano to do this.…