Binary Clock


So I’ve taken up the task of making a binary clock using Arduino. Sounds easy but my general lack of talent and understanding are proving a problem.

Mark 1

Using code found on

I tried to change the code so that I wouldn’t have to worry about buttons, as the breadboard was looking very full. After thinking I had done this right I found that my clock merely counted seconds and that was it!

Mark 2

Using a different setup and code I tried to create this binary clock. Again using LED’s as an output. Again a failure!

Mark 3

Well then believe or not…some hours later and another version of code and I have created my first Binary Clock. After a few errors on the way Mark 3 works!!! hurrah. below is a description of what the LED’s equate too and a timelapse video showing my clock working! it runs from 01.11 В  to 01.47

Here’s the code from my arduino:

int second=0, minute=0, hour=0; //start the time on 0:00:00
int munit,hunit,valm=0,valh=0,ledstats,i;

void setup() { //set outputs and inputs

pinMode(1, OUTPUT);pinMode(2, OUTPUT);pinMode(3, OUTPUT);pinMode(4, OUTPUT);pinMode(5, OUTPUT);
pinMode(6, OUTPUT);pinMode(7, OUTPUT);pinMode(8, OUTPUT);pinMode(9, OUTPUT);pinMode(10, OUTPUT);
pinMode(11, OUTPUT);pinMode(12, OUTPUT);pinMode(13, OUTPUT);

pinMode(0, INPUT);

void loop() {

static unsigned long lastTick = 0; // set up a local variable to hold the last time we moved forward one second
// (static variables are initialized once and keep their values between function calls)
// move forward one second every 1000 milliseconds

if (millis() – lastTick >= 1000) {
lastTick = millis();


// move forward one minute every 60 seconds
if (second >= 60) {
second = 0; // reset seconds to zero

// move forward one hour every 60 minutes
if (minute >=60) {
minute = 0; // reset minutes to zero

if (hour >=24) {
minute = 0; // reset minutes to zero

munit = minute%10; //sets the variable munit and hunit for the unit digits
hunit = hour%10;

ledstats = digitalRead(0);В  // read input value, for setting leds off, but keeping count
if (ledstats == LOW) {

digitalWrite(i, LOW);}

} elseВ  {

//minutes units
if(munit == 1 || munit == 3 || munit == 5 || munit == 7 || munit == 9) {В  digitalWrite(1, HIGH);} else {В  digitalWrite(1,LOW);}
if(munit == 2 || munit == 3 || munit == 6 || munit == 7) {digitalWrite(2, HIGH);} else {digitalWrite(2,LOW);}
if(munit == 4 || munit == 5 || munit == 6 || munit == 7) {digitalWrite(3, HIGH);} else {digitalWrite(3,LOW);}
if(munit == 8 || munit == 9) {digitalWrite(4, HIGH);} else {digitalWrite(4,LOW);}

if((minute >= 10 && minute < 20) || (minute >= 30 && minute < 40) || (minute >= 50 && minute < 60))В  {digitalWrite(5, HIGH);} else {digitalWrite(5,LOW);}
if(minute >= 20 && minute < 40)В  {digitalWrite(6, HIGH);} else {digitalWrite(6,LOW);}
if(minute >= 40 && minute < 60) {digitalWrite(7, HIGH);} else {digitalWrite(7,LOW);}

//hour units
if(hunit == 1 || hunit == 3 || hunit == 5 || hunit == 7 || hunit == 9) {digitalWrite(8, HIGH);} else {digitalWrite(8,LOW);}
if(hunit == 2 || hunit == 3 || hunit == 6 || hunit == 7) {digitalWrite(9, HIGH);} else {digitalWrite(9,LOW);}
if(hunit == 4 || hunit == 5 || hunit == 6 || hunit == 7) {digitalWrite(10, HIGH);} else {digitalWrite(10,LOW);}
if(hunit == 8 || hunit == 9) {digitalWrite(11, HIGH);} else {digitalWrite(11,LOW);}

if(hour >= 10 && hour < 20)В  {digitalWrite(12, HIGH);} else {digitalWrite(12,LOW);}
if(hour >= 20 && hour < 24)В  {digitalWrite(13, HIGH);} else {digitalWrite(13,LOW);}



My wee Camera

The Canon 20D Camera.


Evolved from the analogue camera using a sensor rather than photosensitive film. The analogue camera itself was the result of a want to preserve images from a viewing device called the camera obscura that dates back to the 1015. Photograph associated with truth and since we have been able to we have played with and manipulated this idea.

Video, TV, all resulted from camera. Helped science due to speed.

Niepce, Fox Talbot, Daguerre.


The interaction of the camera has ergonomically evolved so that functions are on wheels to ajust exposures, the in-camera digi display allowing the user to view, metering and SS and AP. We can see our results instantly via the LCD screen and can take as many images as we desire as long as we have enough memory.


The camera has evolved massively from its ancestor the camera obscura and many now redundant models have since ceased. Analogue will soon be finished with also due to technology advancing digital output quality. We are a visual culture with a need to capture events and store them as tangiable evidence. Almost symbolises memory…aids it.

Social/ Anthropologically

The camera lens itself mimics the function of the eye. The iris changes size due to the amount of light available to it, this can also be said of the camera, like the eye a large aperture is needed in low-level light to see or in the cameras case capture the scene.

The design of the camera has evolved from the camera obscura to box cameras to waist level all the way to the now popular DSLR’s and compacts we see today. This evolution of shape and size has resulted from practical needs. Transportability. Ergonomics. Previous models/ tradition.