Embedded Programming

I used Arduino's Blink sketch to make the LED flash

Programmed it using FabISP and here is it in action

The board was damaged afterwards due to an accident so I wanted to make another.

I used HTML5 Fabmodules in a Modela MDX-40A machine. The milling went well but when I tried to cut-out the board the machine didn't behave good. The spindle went down slowly to the home point and then suddenly went up fast and moved over the toolpath in midair!

So I cut out the board using a saw and then soldered the components minus the FTDI header.

I created an Arduino Sketch that reads the status of the push button and set the status of the LED accordingly

/*
Blink
  Turns on an LED according to the status of a push button
 */
int led = 8;
int button = 7;
int status = HIGH;
// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT); 
  pinMode(button, INPUT);
}
// the loop routine runs over and over again forever:
void loop() {
  status = digitalRead(button);
  digitalWrite(led, status);
}

And it worked. The button is set to low when pressed as it is connected to ground which turn the LED off.

Files