embedded programming

Blinking LED , Arduino IDE and setup in OSX 10.7

For this assignment I decided to set up the correct dependencies on my Apple laptop OSX 10.7 for embedded programming. I installed AVR dude and Arduino IDE on my machine, however after hours of problem shooting why things were not working,, it was discovered that my mac book has USB3 ports which don’t like communicating to burn the bootloaders,,, (also explained the issue I had programming the fab isp on my mac) problem fixed with a USB2 hub. With some advice from Bas, we got the code right and working,,, blinky, blink, blinky.All set up for embbed programming on OSX now, should be usefull in the lab to have as alternate OS.

The above error was caused by the USB3 ports running OSX 10.7.5 on 2.6 Ghz Intel ore i7 MacBook Pro 15inch, the fix,,, a good old USB 2 hub!

 

 

 

We had issues with the example code once we had bootloader on the chip, the led was on but the button would not turn it off.

Bas help us add the right code in the right place,

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
digitalWrite(buttonPin, HIGH);

}