Tag Archives: raspberry pi 3

Raspberry Pi 3 error IPTables | Raspberry pi error – iptables v1.4.21: can’t initialize iptables table `nat’: Table does not exist (do you need to insmod?)

Was building a RPi3 machine and got the following error after an update.

Turns out nothing to worry about, just reboot the Pi.

Raspberry Pi 3 B+ and comparison with model 3B | raspberry pi 3 B+ improvements companison

The new Raspberry Pi 3 B+ has been release. Its the first release in a while.

I just wanted to highlight the major differences between the 3B and 3B+ models.

   3 B  3 B+
 CPU  1.2 GHz  1.4 GHz
 Wired  10/100BASE-T  10/100/1000BASE-T
 Wireless  802.11ac (2.4ghz)  802.11n (2.4ghz and 5ghz)
 Bluetooth  4.1  4.2

 

Raspberry Pi 3 not detecting camera | raspberry pi camera not working wrong port

I spent a few hours trying to get my camera working with my raspberry pi 3, the errors I was receiving are illustrated below.

I was silly enough to have connected it to the wrong port, but it seems to be a common issue as there are two connectors that are a similar size.

I have attached an image which show which port the camera should be connected to.

Above are the error and below is an image of a raspberry pi which shows all the connectors locations.

The best Raspberry Pi Case Ever! | single unit raspberry pi case includes power

I have looked at a number of Raspberry Pi cases, they all have one thing in common. They have a box (the raspberry pi itself), a USB cable, and an adapter at a minimum.

I wanted to create a unit which will improve these shortcomings for three main reasons.

  1. To look cleaner, neater,  and safety.
  2. Can be installed on sites where you are completing a security audit, the unit will not come under suspicion because of it looks.
  3. Cooling, performance and the ability to expand hardware inside the unit itself.

I used FreeCAD to design the 3D printable design and a Dremel 3D20 printer to print it.

I have made around three designs which I improved on each time, landing on the one published here.

The print contains a space for a Samsung USB power plug and a section for the USB connector, it contains a grove to allow it to sit firmly in place.

The Raspberry Pi sits on four poles which hold it firmly in place, and also allows you to connect the cat5 connected and four USB ports at the bottom.

I have build three slits on the bottom of the cover and three at the top, this is a clever wait to passively cool the Raspberry Pi. The air inside will heat up and rise, then exit from this top slits. This will then create a suction from the bottom, taking in the cool air. No need for a fan! Test proved to be promising.

I am really pleased with the design and use it at home.

I have plans to make it alot smaller, as you can see from the photos the biggest problems are the size of the adapter and the plug into the Pi itself. I have ordered smaller and cheaper power plugs and some L shaped USB connectors. This will allow me to design the casing to be alot smaller, ill keep you posted.

To make this project happen you need the following

Enjoy!

Powerbank endurance test for Raspberry Pi 3. | testing how long a raspberry pi can be powered via a powerpank

Iv like to test and know how much uptime can be achieved by different powerbank.

I purchased this powerbank case on ebay and then purchased the 18650 3.7v batteries separately.

I have built two powerbank with identical cases but different batteries. 

  • Powerbank – $5.35
  • Batteries 18650 9600mha – $24.80
  • Batteries 18650 6000mha – $22.49

The results?

  • Batteries 18650 9600mha – 23 Hours
  • Batteries 18650 6000mha – 18 Hours

It should also be noted that the Raspberry Pi is online via wifi during the whole test while getting pinged every minute.

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.

 

Raspberry Pi – Xbian 1.0 – Kodi 17.0 Default username and password | default username and password for kodi 17.0 xbian 1.0

Been looking this is solution for ages! Finally got it!

Usually the default username and password for Xbian is

username: pi

password: raspberry

But in this scenario its different.

 

 

Building a 24/7 Raspberry Pi using offgrid power. Solar and battery operated outdoors. | raspberry pi 3 iot 24/7 solar panel battery charge cmtp02 wifi mesh node weather station

After doing months of research and experimentation I have finally completed my task. Building a raspberry pi with the ability to running 24/7 outdoors off grid using batteries and solar power.

Why? There are thousands of applications for this kind of setup, here are some I would like to experiment with in the future:

  • Mesh network node, over a wide area
  • Weather station
  • Outdoor wifi hotspot
  • Outdoor wireless camera node
  • Wifi bridge

Priorities. Project objectives were,

  • Cheap
  • Waterproof
  • Heatproof
  • Robust
  • Simple

Considering this was a experiment / proof of concept this was put together using things I found around the house, obviously if this was built for commercial applications the housing would need to be built using steel and this would make the costs go up. This was built using the following components and costs:

  • Raspberry Pi $49.50
  • Raspberry Pi Case $10.85
  • Micro USB Cable $1.00
  • 12v to USB Converter $5.11
  • Solar Charge Controller CMTP02 $12.00
  • Solar Panel 60Watt $59.98
  • Bucket
  • Battery AGM12-20 $65.00
  • Total: $203.44

Once I had all to components I used Styrofoam which I found in my garage to build a base which will be located at the bottom of the bucket, the objective will be to hold the battery in place and also insulate it form the suns heat. see below.

 

 

 

 

Once we have a nice tight fit, we’ll install it in the bucket. I will also use the leftover Styrofoam which I have crusted into small pieces to fill the gap between the battery and the wall of the bucket. This will stop any movement and will also provide insulation to the battery itself.

 

 

Now we need to take note, I have completed a similar experiment here where I tested the battery and Raspberry Pi alone without solar or controller. I managed to get 4 days uptime.

Next we will need to run the wires required for the solar panel, I drilled a hole at the bottom of the bucket and brought the wires up to the top. I did this because if water comes through the hole it will stay at the bottom and not harm the electronics.

 

Next we make another circle with the Styrofoam and fit it on top of the battery, this is where we will house the electronics. Its the safest place as the lid will be water and air tight.

 

Now we can connect the Solar controller CMTP02 to the battery and to the Solar panel, finally onto the 12v to USB controller.

 

Bringing it to life! Install the raspberry and have it connect to my home wifi network. Then seal the bucket and setup somewhere in the backyard where it will get the most sun,facing North (In Melbourne).

Now Im will testing this setup, it should run forever like this. During my first setup run, I had connected the solar panel the wrong way due to bad color coding on the cables. Now that its fixed its been running for three days and the battery is currently on fill charge.

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