Jannie Hamman



This site is always under construction!

Here you can find stuff I keep myself busy with when not at work! (Actually this is what I do for a living as well!) All related to electronics. I've included color pictures and some programs from my book "Complete PIC® MCU Programming and Project Guide" as well.


Although I am a very private and introvert person, below some information about myself:

I was born 27/07/1965 near Prieska in the NorthWest province in South Africa.

I am a C&IE engineer, married to Karin and have 3 kids, Chantelle, Janika and WF.

We live in Middelburg in the Mpumalanga province of South Africa.

My daytime work is in heavy industry, where I normally spend my time in management and projects.

I am a gadget dad, love my micro-controllers! I do programming, training and even workplace upgrades with them.


My workplace beginnings and not so far endings ...

After my studies, I started to work as a Learner Engineer at the then (1989) Yskor in Vanderbijlpark, South Africa.

I was promoted to Tegnologist early in 1990 and left YSKOR in 1994, after 10 years. (5yrs bursary).

I joined Columbus Stainless in 1994 as the Maintenance Manager for the Continuous Caster and Griding areas of the Steel Plant.

My career there spanned 30+ years and was mostly in the Instrumentation field. I really enjoyed my time there.

At the beginning of 2010 I joined Assmang Manganese in Cato Ridge (between Durban and Pietermaritzburg) as Plant Engineer C&IE.

In September 2016 I joined Clifford Machines & Technology in PMB as their Mechatronic Engineer. I currently feel that it is not work, as I now do what I always wanted to do.

As a family we returned back to Middelburg in 2021, where I was the manager for JND PC and Pheripherals for 3 years, before starting my own bussiness in the laboratorium and instrumentation field.

This is in short what I'm upto relating to work. More can be found at LinkedIn...

Interresting things

I published a book, details under "Book"-tab. My IoT project for my house automation also have its own website!

My Book
Now available as e-book! (US$23.75)
This 967 page book covers the programming of PIC® microcontrollers in CCS C V5 in a practical hands-on approach. It also has complete examples of all functions and circuits for you to build and use. The PIC16F88 was used as a starting point, used here to connect various sensors. I then move on to stuff like TFT displays, USB, GSM and GPS. More information and how to order under the "Book" tab to the left. (or just scroll down)

My Book
IoT Home automation!
Click on link to visit: >> Home Automation/IoT Demo site

Other people's comments

What people say about me as person and author


Jannie Hamman is a well-known figure in the world of microcontrollers and robotics, which I have the pleasure of knowning for more than 20 years.

The author spent all of his working career as an Instrumentation Engineer in heavy industry, looking after various automation- and control systems. During this time, he designed, programmed and built 100s of microcontroller circuits used to solve problems and various applications (Black Boxes).

The author also trained many young and upcoming engineers in various fields.

Although an Engineer with a wide field of knowledge, he focused on micro-electronics, microcontrollers and programming and can write in total 18 programming languages.

This stretches throughout the whole spectrum from hardware PLA and assembler up to today’s 4th generation languages, including OS environments for Linux and Microsoft PC software.

The author has registered a few patents during his lifetime. He is currently working on IoT for use in home automation in his spare time.

This book is a must for any person interested in electronics and microcontrollers – all the information and examples you’ll find in this book are from real life solutions through the author’s career.

The book is an asset in your toolbox of knowledge.

Theo A. Moelich


We continuously define our own rules and boundaries throughout life w.r.t what and how we do things. Things referring to our engineering, programming, electronic hobby or work activities. I have come to know Jannie Hamman as someone who has a very unique viewpoint and constantly challenge these walls and boundaries. This book opened my eyes to different opportunities and possibilities whilst vastly improving my skills.

This book combines the worlds of electronic hardware and programming in a unique synergy. It provides the reader with the knowledge to realize his ideas and inventions with the underlying theme – If you can think it, you can build it. It diminishes the line of impossibilities as told by a person with extensive knowledge and over 30 years of experience in electronic design and programming.

The book is packed with knowledge, projects, diagrams and examples, but yet talks to you in a personal tone with a great sense of humour. Even if you are more inclined to the hardware or software environment, you will find the information you need together with the understanding required to finalize your potential. You will be amazed how you can interface old and new technologies. Get ready to even push the boundaries and completely interface your Raspberry Pi or Arduino boards!

Get ready for an exciting read and open the door to a new world of electronic interfacing. You will definitely read this book multiple times and still learn more every time. Remember, the best way to learn how to think out of the box is to ask someone already on the outside.

Andrew Schnuir


Summary, example programs and color photho's


1 Introducing PIC and C

PIC® vs. CPU
Comparison table
The C structure
Writing your first CCS C program
The PIC16F88
C output functions
C input functions
Tut1 with circuit diagram
Using the PCW compiler
Burning the program
Burning the program directly from PCW


Bits and bytes
Pre-processor directives


Data definitions
String manipulation
Logic gates & flip-flops
User defined functions


Bit/byte manipulation
Math functions

5 PIC® hardware and C software

The memory inside
Core SFR’s
Processor control
Inputs and outputs
Modules: Comparators and voltage reference, FVR, ADC, RS232/485, SSP, I2C, Timers, CCP, DAC, Op-amps, PSP, PMP, CWG/COG, SMT, PSMC, PPS, DMA, QEI, RTC, LCD, CRC, NCO, CLC, AngTMR, ZCD, PID and USB peripherals

6 Interfacing the outside world

De-bouncing inputs
Matrix keyboards
7-segement displays
DC motors
Stepper motors
I2C devices like RTCC and memory
Infrared and PIR
Flow, Distance, Gas
Operational amplifiers with IA
Strain guage, Force and Flex sensors
MEMS: Barometric pressure, compass, inclinometers, accelerometers, gyroscopes, Wii Nunchuk
Humidity, Vibration, Sound, Light, Hall-effect, Encoders, Tachometers, 1-wire devices and DAC
Interfacing and connecting AC
Measuring AC
Interfacing 4-20mA

7 Displays

Character LCD
Monochrome graphic LCD
Colour TFT display

8 Temperature measuring

Analogue – LM35, thermocouples, thermistor, RTD
Digital – DS1820 etc.


Send a SMS via terminal example
AT commands
Initializing commands
Ring buffer
Parsing a SMS
Check for RING
Security tips

10 RF (Wireless comms)

Cheap RF link
nRF905 transceiver

11 SD card and FAT

SD card info

12 Touch screen (TFT)

Description and operation

13 GPS

NMEA sentences
GPS based RTC

14 PC interfacing

Visual Basic frontend

15 Bootloading

16 Voltage regulators

LM317, LM7805, L200, TC1264, LD1117
Transformer-less PSU’s

17 Food for thought (or my second book?)

RFID or RF tags
NFC (Near Field Communication)
Raspberry Pi (RPi)

18 Getting it together

9 complete projects:
Access control
Random selector
Sunrise/sunset switch
Generic gate controller
kW/h meter
Trainer board
MBPIC prototype board
Solar controlled LED skylight
RF based Home Automation system

Appendix A

JDM compatible serial programmer
Parallel (printer port) programmer
Power supply circuit
Installing PICPgm software
Using PICPgm software
My PK2 clone on Vero board

Appendix B

ASCII control characters (character code 0-31)
ASCII printable characters (character code 32-127)
The extended ASCII codes (character code 128-255)

Appendix C

Type K Thermoelectric table
Sub-zero table (mV)
Positive table (mV)

Appendix D

PT100 Resistance reference table
-200 ̊C to 240 ̊C

Appendix E

PIC® (14 bit) Instruction set
Byte-orientated instructions
Bit-orientated file register instructions
Literal and control instructions

Appendix F

Modifying a servo for continuous rotation

Appendix G

MS Initiative FAT32 File System Specification

Appendix H

Using CCSC V4
CCS C-compiler Version 5 notes

Appendix I

Download and installation
Quick instructions
Integrating into CCSC
Using it with CCSC

Appendix J

Microchip Trademarks
Patents of Microchip Technology Inc.
PIC® 8-bit MCU Line card

How to get your copy:

Complete PIC® MPU Programming and Project Guide

In hardcopy (printed) $59.99 (ex.VAT) (ZAR956,00) - Limited offer! (Overprints!!!)

It is available as a hardcopy in South Africa only! (Special requests to other countries only - $59US excl. postage)

The reason is shipping or courier cost, which normally ends up being more than the selling price of the book!

That said, there are a limited amount of books still available for especially students as notes can be made in this stitch-bounded book with ease!

The hardcopy is currently offered for R956.00 (ex. VAT), which includes courier charges (Aramex) within 24hrs (main areas) within SA.

E-mail here if you want to order your copy! Include your name, address (for delivery) in the e-mail. You will receive a confirmation with banking details back from us. Once payment is made, an invoice with the tracking number for your 2.6kg packet will be send...

e-book DRM protected PDF $23.75 (ZAR380.00 incl. VAT)

The e-book is available to the world (SA included)!

It can be directly downloaded from this site, but you need a code to open it.

This will allow you to read it on basically any device (PC, OSx, MAC, Android and iOS), using a special reader app.

You can have a maximum of 3 devices and need to register once using your keycode.

E-mail for your digital copy here! Include your name. You will receive a confirmation with details back from us. Use PayPal to pay and receive your invoice which contains the download link and key, once payment is received.

Examples and photo's

Additional stuff for yout perusal


You can copy the content directly into PCW or save it wherever you want!


Select a Chapter or Appendix from the links below.
Colour images from "Complete PIC® MCU Programming and Project Guide" will be displayed thumbnail style!

Family stuff

I will update with newer photo's soon...