I write about

    RPi enabling I2C communication

    I have considered to use a combination of an Arduino Uno and RPi for my Home Automation Project. After vigorous research(Googling of cause) on how I am to interface the two, I came to a conclusion that using I2C was the best option as compared to using UART(which required Logic... [Read More]
    Tags: I2C I2C bus

    Arduino Quad Relays : Webserver

    Phase 3: Quad Relays controlled via/on webserver [sourcecode language="c"] /* 4 parallel Relayes and Arduino with Ethernet Shield */ #include <SPI.h> #include <Ethernet.h> int led = 2, led2 = 3, led3 = 5, led4 = 6; byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address... [Read More]

    Arduino Temp Monitor : Webserver

    Phase 2: Temperature monitoring logged on webserver. [sourcecode language="c"] /* Web Server A simple web server that shows the temperature using an Arduino Wiznet Ethernet shield. Parts list: 10k Thermistor Breadboard/Veroboard 10k resistor Arduino ( I use UNO) Arduino Wiznet Ethernet shield The Thermistor Circuit: AREF---+3.3V----Therm----A0(Arduino)----10k res---> Gnd Better Readings:... [Read More]

    Arduino Temp monitor : 16x2 LCD

    Phase 1:I have been procrastinating on creating a home automation system until I decided to dedicate a few of my hours to this project. I have decided to use an Arduino and a Raspberry Pi combination. The idea is to have the Arduino running all ADC calculations and sensors as... [Read More]
    Tags: LCD thermistor

    Advice from an Old Programmer

    Very good read

    Memory - Card game

    I have been spending quite some time learning python for the past few months from text processing to game development using simplegui. And I must say for a person that always thought in C, I find Python completely straight forward and an easy but high level language. As my journey... [Read More]

    Install and configure NFS server on Ubuntu for serving files

    When it comes to serving media content within your local network, a NFS share is way better than Samba/CIFS share in terms of speed and resource usage. If you have a XBMC box to watch TV shows and movies from a central server then a Network File System (NFS) share... [Read More]

    script to generate BASH scripts

    I create scripts on a day to day basis, and I eventually got bored of manually creating scripts from initial phase everytime, hence this master of scripts. [sourcecode language="bash" wraplines="false" collapse="false"] #!/bin/bash # BASH script to generate BASH scripts # Created by Mpho Mphego echo "What do you want to... [Read More]
    Tags: pygame python

    1972 Pong "python"

    That feeling when, your program compiles and runs like it should... So last week, was a pong game challenge, need I say more. Here goes nothing. [sourcecode language="python" wraplines="false" collapse="false"] #http://www.codeskulptor.org/#user38_5WtyGnsPgb_0.py # Implementation of classic arcade game Pong try: import simplegui except: import SimpleGUICS2Pygame.simpleguics2pygame as simplegui # To run simplegui... [Read More]
    Tags: python

    Stopwatch "python"

    Well as for this week, we were to create some sort of stopwatch game. Player gets a point when, they hit "stop" button if it stops on seconds. A bit even more trickier, but challenge was accepted and completed...Hell Yeah. [sourcecode language="python" wraplines="false" collapse="false"] #http://www.codeskulptor.org/#user38_TSo5mURks3_2.py #http://www.codeskulptor.org/#user38_TSo5mURks3_3.py #or http://www.codeskulptor.org/#user38_nJvMd8w50P_0.py # Mini-project... [Read More]
    Tags: python