Tag Archives: wifi

Building a WiFi enabled IOTs refrigerator temperature monitor with a Raspberry Pi | raspberry pi refrigerator temperature monitor via wifi internet of things

Refrigerator monitoring is a big thing, especially for commercial reasons. So i thought this is perfect raspberry pi territory.

A $50 raspberry pi, a $3 USB extension cable and a $10 USB temp monitor is all it takes. Commercial products that perform the same task cost $500+

So lets start off by updating the OS and installing all the applications we’ll need.

Lets check that the USB temp sensor is connected and online.

Lets download the source for the temp sensor.

The is how you get a reading.

I wrote a script which just grabs the Celsius reading and logs it in a log file, I have this running every minute. This is just for testing purposes, ultimately we’ll get Nagios to monitor the reading and alert based on their outcome.

 

 

Howto setup Raspberry Pi 3 with Mesh wireless networking using B.A.T.M.A.N. | raspberry pi 3 wifi mesh networking batman howto

For around two years I have been trying to get Mesh networking going on the raspberry pi’s. I have used different Pi’s and bought a heap of USB Wifi dongles which also did not work.

I tried again the other day using an out of the box raspberry pi 3 with the standard Jesse Lite os, this worked.

I have been testing the setup lately and I’m really impressed. I have been able to have connectivity throughout my house and into the backyard, this is around 50+ meters of connectivity through brick walls. I will continue testing of the range and application features.

Here is the howto.

FIrst, we install a few packages we might need.

We download the BATMAN source, and install it.

Here we’ll create the script which we just to establish the wifi network and mesh networking. Save it to /root/mesh.sh. Make sure you change the IP address at the last like and increment upward for each device you setup.

Make the script executable.

Add an entry into the crontab to run it at startup by typing “crontab -e” and adding the following line.

Reboot the Pi and it should be operational, to test type “ifconfig” it should look like this.

Note: the bat0 is the mesh network and the eth0 is the hardwired network connection.

Once you have all the devices online, you can ping to see if they’re online or type this to see if batman can see them

Should look like this.

In this example you can see three other Pi’s online.

 

Building a weather station Raspberry Pi 3 IOT | Raspberry Pi 3 weather station weewx IOT

I wanted to build a weather station located at my holiday house, functional reasons were to know when it hasn’t rained in a while so I knew if the garden needs watering.

The nerd in me just wants everything to be network enabled.

The components I used,

  1.  Acurite Pro 5-in-1 Color Weather Station with Wind and Rain
  2. Raspberry Pi 3

The setup was very simple and quick to set up!

Lets get started!

After installing the weather station somewhere around your house and switching on the base station. You should now be able to see the weather at the base station, information such as rain, temp, humidity etc should be flowing.

Now connect the base station to the raspberry pi via the USB cable.

SSH onto the raspberry pi, to check if we have connectivity do the following.

When you see the device we have connectivity.

Bus 001 Device 005: ID 24c0:0003

How to configure the server and install the software, in this setup we’ll be using weewx for our communication with the weather station and data gathering.

Then navigate to the raspberry pi IP address through your web browser.

http://192.168.1.1/weewx

Setup wireless on a Raspberry PI | raspberry pi wireless wifi setup access point wpa wpa_supplicant hoot

Setting up wireless on a Raspberry Pi is very easy, although while googling the topic you get a huge range of results. Here are the two steps I took to setup my wireless.

Edit interfaces config file.

Under the wlan0 section, ensure it configured to dhcp

Edit the WPA supplicant file and enter your SSID and WPA password.

Your spa_supplicant file should look like this.

 

Raspberry Pi – Experiment 2 | raspberry pi wifi batteries AA experiment duration

Raspberry Pi Power Experiment 2raspberry_pi_logo-svg

Raspberry Pi

Going on from my first experiment, this one will be slightly different.

I will be using a 12v to 5v USB converter and a 12v AA battery caddy. This caddy stores 8 x AA 1.5v rechargeable batteries. This design will closely simulate my end design which will include a charge controller and a 60w Solar panel.

img_20160927_180201

I did not commit to this design by soldering the wiring and connecting permanently as its a quick dry run test. I simply want to test the duration in which it will power a raspberry pi with a wifi dongle.

img_20160927_180639

Unfortunetly the results sucked! Taking into account that the batteries are not new, the raspberry pi ran for 4 hours and 37 minutes.

wp-1474982622336.jpg

This is a poor a result and is sending me back to the drawing board in regards to my design. I need to think about getting a sealed lead acid battery with some decent capacity.

Tracking

Experiment 1