Go into the OpenSprinkler directory and build the firmware.This will create a directory in /usr/local called OpenSprinkler. Clone the OpenSprinkler firmware repository.Change directory to /usr/local cd /usr/local.sudo su so you don’t have to sudo for every command.Install GPIO Zero (optional, so you can run the pinout command later) sudo apt install python3-gpiozero.Update/install any other packages you want For example:Īpt-get update apt-get upgrade Could update raspian: sudo apt-get dist-upgrade.Change the hostname, passwords, and configure it: run: sudo raspi-config Enable SSH permanently. Using Putty, open a remote session to the Raspberry Piĭefault hostname: raspberrypi user: pi pass: raspberry.Install and run Putty on your computer. Put the SD card in your Raspberry Pi and power it up.This will enable Secure Shell, which will allow you to connect to your Raspberry Pi from a remote computer. Add a file to enable SSH Create an empty file in the boot directory called ssh.Enter your WiFi details, replacing the placeholder text with your own details.Ĭountry=AU ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network= Create a file wpa_nf in the base directory of the SD card. Put the SD card into your card reader on your computer.The following steps allow the Raspberry Pi access to your WiFi network and enable remote access. I recommend connecting the Raspberry Pi Zero to your wireless network and accessing it remotely from your computer. Since this is a Raspberry Pi Zero, I did not connect any monitors or keyboards to it. The SD card that I suggest comes pre-loaded with a 'lite' version of Raspian. The web page is accessible only on my home WiFi network. To schedule my sprinkler system, I access a web page served by the Raspberry Pi on my home network. In this project, I took a new Raspberry Pi, installed OpenSprinkler on it, and used a simple relay board to trigger my home sprinkler system. Replace the old sprinkler controller in your garage with a web-page based Raspberry Pi controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |