Category Archives: Uncategorized

Using the Adafruit ArduinoISP shield to bootload a 8MHz standalone ATmega328

Programming an ATmega328 using an in-system programmer (ISP) is pretty straightforward. I was tasked with using an Adafruit ArduinoISP shield to make an ATmega328 run standalone using its internal 8MHz clock. These are my notes.

Create A New Board Definition

The Arduino web site doesn’t have very clear instructions for creating a minimal circuit aren’t too clear for the Mac.

  • Close the Arduino IDE if it’s open.
  • Download the Breadboard.zip file.
  • Extract the file contained therein.
  • Append it to the list of definitions found in

[code]
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt
[/code]

When you start the Arduino IDE, you should see ATmega328 on a breadboard (8 MHz internal clock) in the menu.

Screenshot_5_28_13_7_35_PM

Burning the Bootloader

The code to turn the host Arduino into an ISP is here. Copy/paste into a new sketch and upload. Screenshot_5_28_13_7_10_PM

  • Install an ATmega328 in the ZIF socket.
  • Set the programmer to Arduino as ISP.
  • Choose Burn Bootloader.

The board should sing, the green light should blink rapidly while burning, and finally go dark. The Arduino IDE should say Done burning bootloader in the status bar at the bottom of the sketch window.

Old But Funny

Ah the 80’s… big hair, Dr. Demento, and the Frantics. Ran across an old skit from the 1980’s that brought back memories. Somebody synchronized clips from Naurto to give a little video to the skit.

<iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="//www.youtube viagra 50 o 100.com/embed/JzAzIEOdjWs?wmode=transparent&fs=1&hl=en&modestbranding=1&iv_load_policy=3&showsearch=0&rel=1&theme=dark” frameborder=”0″ allowfullscreen>

ØMQ (ZeroMQ) and a Bit of Philosophy

While watching the SLLUG May presentation on SALT by Thomas S. Hatch, I was intrigued by his reference to ØMQ (ZeroMQ). This is a fascinating “intelligent” networking library, but some of the philosophy I found interesting. In the guide it says, for example:

Programming is a science dressed up as art, because most of us don’t understand the physics of software, and it’s rarely if ever taught. The physics of software is not algorithms, data structures, languages and abstractions. These are just tools we make, use, throw away. The real physics of software is the physics of people.

This clicked with me right away. Languages require almost no effort to pick up. Algorithms, etc. are useful toys selected by how well they match the current problem space. The most useful class that I took in university was Computer Theory, the mathematical underpinnings of software, but again it’s a tool.

From the beginning of my software crafting, I intuitively knew that software was about people. Early on I would tell people who approached me, “Write what you think you want, then write what would like in a dream world where anything is possible.” The first list is normally the list constrained by preconceptions of what can and cannot be done. The second list is usually what the client really wants. It’s a great way to trigger discussion on what the real problem space is. And, frequently, many of those items are actually quite feasible.

Code has to talk to code. Code has to be chatty, sociable, well-connected. Code has to run like the human brain, trillions of individual neurons firing off messages to each other, a massively parallel network with no central control, no single point of failure, yet able to solve immensely difficult problems.

I’m sill not convinced about the human brain analogy (a different topic), but I am convinced from my experience that this much is true. Code must talk to code, easily, impromptu, and in unexpected ways… but this hides the greater reality. It is people that drive the whole process. It must be easy for people to arrange the code chatter, and to change it at will to fit the changing needs and desires of individual humans.

While the implementation may show its age, the original Unix model of tiny specialized programs that can be easily threaded together has stood the test of time quite well. The old tools of sed, grep, find, etc. are bits of code that talk to code in a primitive way. Dated they may be, but Un*x and its relatives are the backbone of the Internet.

If you’ve done any work with threads, protocols, or networks, you’ll realize this is pretty much impossible. … Even connecting a few programs across a few sockets is plain nasty, when you start to handle real life situations. Trillions? The cost would be unimaginable. …

Today we face another software crisis, … Only the largest, richest firms can afford to create connected applications. There is a cloud, but it’s proprietary. Our data, our knowledge is disappearing from our personal computers into clouds that we cannot access, cannot compete with. Who owns our social networks? …

[W]hile the Internet offers the potential of massively connected code, the reality is that this is out of reach for most of us, and so, large interesting problems … remain unsolved because there is no way to connect the code, and thus no way to connect the brains that could work together to solve these problems.

Having worked on projects that have tackled pieces of the puzzle, this resonates with me also. Individuals, when left to their own devices to do clever things, can solve this. We have to not buy into the notion that traditional monolithic portals are The One True Way. It’s a seductive ancient paradigm, but software was made for Man. Man was not made for software.

2007年5月28日:戦没者追悼記念日

Edit 2007年6月7日:Second attempt.

今日は、戦没者追悼記念日です。アメリカの重要な祝日です。その目的は戦没者尊ぶことです。私達の伝統は墓地へ芥子と旗を持って行くことです。芥子は戦没者の血の象徴です。

沢山の人々は花を持って行くことで亡くなった最愛の人を思い出します。


英語:
Today is Memorial Day. It is one of America’s important holidays. Its purpose is to honour soldiers who have died in service. It is our tradition to take poppies and flags to the cemetery. The poppies represent the blood of the fallen soldiers.

Many people also take flowers to the cemetery to remember the beloved dead.


写真:

芥子と旗:
芥�と旗

墓地:
墓地

戦没者:
戦没者

最愛に形見:
形見