Aquarium Controller – Custom PCB – Arduino Mega – MySensors – Domoticz – Part2

The PCB is ready. received it last week.
Currently I’m busy with 3d printing the enclosure.
I switched from having 2 Arduino Mega to just one.
Still trying to figure out how I’m going to code this but that will be a challenge for tomorrow.

I’ll also upload the schema for the PCB here( Probably call it MyMegaAquaControl v0.1)

Latest Kodi (XBMC) on Raspbian with remote control

pi2Some easy steps to install kodi on raspbian
Update the Pi:

sudo apt-get update
sudo apt-get rpi-update
sudo apt-get dist-upgrade

Install Kodi

sudo apt-get install kodi

For the remote control we need to add group to kodi

sudo adduser kodi input

Now we can start Kodi by running:

kodi &

If you want to start it when the Pi boots edit the file /etc/defaults/kodi
and change the 2nd line to ENABLED=1

How to: HDHomeRun 4DC (HDHR3-4DC) + TvHeadend on Raspberry Pi 2B

pi2First we update the Raspberry Pi:
sudo rpi-update
sudo reboot
sudo apt-get update
sudo apt-get upgrade
sudo reboot

HDhomerun installation:
cd ~/Desktop
sudo apt-get install libgtk2.0-dev
tar -zxf libhdhomerun_20141210.tgz
tar -zxf hdhomerun_config_gui_20141210.tgz
cd hdhomerun_config_gui
sudo make install

Test if the install works:
hdhomerun_config discover

Set the address ( Replace FFFFFFFF withe the id generated by the discover.)
sudo hdhomerun_config FFFFFFFF set /sys/dvbc_modulation a8qam64-6875 a8qam256-6875

Build and Install TvHeadend:
cd ~/Desktop
sudo aptitude install build-essential git pkg-config libssl-dev bzip2 wget -y
sudo aptitude install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev -y
git clone
cd tvheadend
./configure --enable-hdhomerun_client --enable-hdhomerun_static --enable-libffmpeg_static --enable-bundle

We can test the build now by running:
./build.linux/tvheadend -C

When the tuners are visible we can continue:
sudo make install

To run TvHeadend I added to my rc.local:

Metasploit on Raspberry Pi running Raspbian

sudo -i
apt-get update
apt-get dist-upgrade -y
apt-get install ruby subversion libpcap-dev
tar jxpf framework-latest.tar.bz2
cd msf3
gem install bundler
gem install sqlite3 -v ‘1.3.9’
bundle install

Kismet on Raspberry Pi running Raspbian

RaspberryPiOn an Raspberry Pi this process will probably take more then an hour.(Sit back and relax once you typed in make..)
Before installing kismet from source we need some apps from the repository.

sudo apt-get install libncurses5-dev libpcap-dev libpcre3-dev libnl-dev -y

Now we can download and compile the source

tar -zxf kismet-2013-03-R1b.tar.gz
cd kismet-2013-03-R1b
sudo make suidinstall
sudo usermod -a -G kismet pi
sudo reboot

Configuring monitor mode:

sudo iw phy phy0 interface add mon0 type monitor
sudo iw dev wlan0 del
sudo airodump-ng mon0

Open a new windows and configure Kismet:
Edit /usr/local/etc/kismet.conf and add “ncsource=mon0”, “hidedata=true

And starting with:


Install and Test Aircrack on Raspberry Pi running Raspbian

RaspberryPiAfter running kali for a couple hours I had some issues with my Alfa’s and decided to switch to Raspbian and build up my image from there.
We need to see what’s around us so let’s install aircrack and do some ‘monitoring’.
Start with a updated system:

sudo apt-get update && sudo apt-get dist-upgrade -y

Next some requisition:

sudo  apt-get install libnl-dev libssl-dev iw -y

Now grab yourself a beer and the latest sources from the aircack-ng site:


Time to compile it:(and drink that beer.)

tar -zxf aircrack-ng-1.2-beta3.tar.gz
cd aircrack-ng-1.2-beta3
sudo make install

Last step before we can test is to install Airodump-ng OUI file:

sudo airodump-ng-oui-update

Now put your wifi in monitor mode and check if you can read packages:

sudo airmon-ng start wlan0
sudo airodump-ng mon0


cd ..
rm -rf aircrack-ng*

Have Fun 😉

Remote control your Raspberry Pi running Kali using VNC server

RaspberryPiI like low-power devices that you can leave somewhere for some interesting research.
Therefore I need remote access to it and turnout it was an easy task on the Raspberry Pi.
Lets first do a general update/upgrade to make sure the pi is on the latest software..

apt-get update
apt-get dist-upgrade -y

Now lets install the VNC server.

apt-get install x11vnc -y

Before we can start the VNC server we first need to make sure our x11 server is just running fine (if you don’t start it first VNC will throw you an error.)

startx &

(Note: If it is the first time you start your X11 environment you probably want the pi connected to an external output (hdmi) to see if the initial configuration went well on it. after that it can be disconencted from the video source and remoted into.)

Now that we have our X11 server running fine we can start our VNC server to remote into you x11 enviroment:

x11vnc &

I would recommend to tunnel your traffic over a ssh tunnel if your Pi is on a remote location.
(Note: When you disconnect from the VNC server the server will shut down. So if you wanne connect again you need to run x11vnc & again …)

Have fun..:)

Vertical Auto Bed Level Probe for PRUSA i3 RepRap Printer

After building my first 3D printer I was looking for an autobed-level mount for the z-axis.

I found a lot of bed-level mounts on thingiverse but couldn’t find a nice on for Thingv1my PRUSA i3.All the things I found had all a motion rotating forwards/ backwards, but i had an issue with these because they where all touching the bed when calibrating.

To avoid hitting the bed when leveling I think the probe needs to move up/down.

So Let’s make a Thing 🙂

After hobbying around for a couple hours and thinking about the design I made some sketches in my mind and was transfering them to a 3D design.

So here is v1 of my First Thing…(Will be shared on Thingiverse after I complete printing and testing for it…)



Make a rotor that attaches to the probe.(to move it up and down)
Sharing .STL Files 🙂



Check out thingiverse for more updates