Pelican Crossing – Part 2: I2C MCP23017 & 555

Figure 1 - Working Breadboard Prototype

In Pelican Crossing – Part 1 software threads were used to provide timing to both the lights and the buzzer at the same time.  In Part 2, the I2C MCP23017 is used again but instead of using software to time the operations, the intermittent buzzer is implemented in hardware using a 555 timer.  This simplifies the code but makes the hardware more complex.  I learned something from both versions.

Continue reading

Clocks – Part 2: Daemon Process

The python code in Clocks – Part 1: HD44780 16X2 LCD suffers from (at least) one major drawback; if you close the terminal session, the clock dies.   This post improves on the by running the clock as a daemon process.  That is, one that doesn’t die when the terminal session is closed.

Or by Wikipedia’s definition:

In multitasking computer operating systems, a daemon is a computer program that runs as a background process, rather than being under the direct control of an interactive user.

Continue reading

Spam of the Day: 18 Nov 12

More funny spam:

The building Lord, your noble sentiment so touched. Now such a materialistic society money could have seen the original poster such temperament middleman, no doubt, is my whole life the biggest lucky. Let I deeply feel the greatness of the human nature. A son of the building Lord, is in the dark of the night sky stab crack lightning, and like the sunshine of dark clouds tear, let me drink nectar as a moment, let me understand eternal truth in this world there is real. Only the building Lord that have broad mind and the complete knowledge system can be only one preface of this truth. Saw a son of the building Lord, I sank into the serious thinking. I think, if not the son of the building Lord top up, is a betrayal of the truth, is the great compromise on fallacy. Therefore, I decided to no top!

HC-SR04 Ultrasonic Ranger – Part 1

Figure 1 - In Action

First go with a HC-SR04 Ultrasonice Range Finder with an Arduino Nano.  Very simple, worked out of the box.  Connected it up, downloaded the New Ping Library for Arduino, used the example program and off it went.

Below I’ll include the schematic & example program.  Will need to have a go at some practical uses for this next.
Continue reading

Spam of the Day: 12 Nov 12

Another spam comment that made me laugh.

All these usually are incredibly sweet! Affords your gown which usually further tad. Be it maintaining lunch break with females or even hanging out with typically the girlfriend Which i end up getting flatters on my gown due to their {puffed gucci link chain|gucci cufflinks|gucci outlet california handbags|gucci rapper biography|gucci outlet california vacaville|nike gucci air force 1|gucci rapper wikipedia|gucci hats|gucci horsebit hobo purse|gucci sandals 2010.

Arduino Development using Eclipse

The Arduino Integrated Development Environment (IDE) is good.  Perfect to get you started and to stay with if you wish.

Hewever, I’ve used Eclipse on and off for many years and recently started using it again for Python development for Raspberry Pi.

Now, I’m tinkering with an Arduino Nano, I’d like to use the same IDE.  Well, I can.  There’s an Arduino plugin that allows development of scripts and uploading them to the board.

Eclipse Foundation

Arduino Plugin for Eclipse