Microcontroller Firmware Hints

From RepRap
Revision as of 14:04, 11 October 2008 by 78.150.46.116 (talk) (Compiling and downloading Arduino Firmware using Windows)
Jump to: navigation, search

Compiling and downloading Arduino Firmware using Windows

  • Fresh Install Arduino version 011 software.
  • Copy sub directories in reprap-arduino-firmware-1.3/library (or any later version downloaded from sourceforge https://reprap.svn.sourceforge.net/svnroot/reprap) directory to Arduino hardware/libraries directory.
  • With reprap-arduino-firmware-1.3 you should end up with 14 sub directories below /libraries.
  • Open the appropriate Single_Arduino_SNAP.pde in arduino.
  • Compile.
  • You will see an error regarding obsolete header file.
  • BUT it will compile without error.
  • If you change a file in libraries which you invariably have to do to match your thermister/thermocouple delete the object file ?????.o
  • Otherwise it will not recompile using the changes

Sanguino Firmware

The Sanguino is an Arduino clone using the Atmega64p chip instead of the Atmeg168. The clone is software compatible except that the pins are moved around a bit.

Initial testing on a Sanguino.

If you've just soldered up your Sanguino a good first program to run is Blink. You can find it from the menu in the Arduino host software at File => Sketchbook => Examples => Digital => Blink

The program will toggle “digital pin 13” which is pin 19 on the Atmega644 chip and the leg labelled 13 on the Sanguino board. This pin does not have an LED attached so you will see nothing flash.

If you want to see something flash change the line “int ledPin = 13;” to “int ledPin = 0;”. Compile and upload this and it will toggle digital pin 0 causing the red debug LED to flash.

Refer to the schematic and the pin-out diagram