Difference between revisions of "Arduino IDE with Minimus"

From Nottinghack Wiki
Jump to navigation Jump to search
Line 16: Line 16:
  
 
# Install the following
 
# Install the following
## Arduino IDE
+
## [http://arduino.cc/en/main/software Arduino IDE]
## Teensy Loader
+
## [http://www.pjrc.com/teensy/loader.html Teensy Loader]
## Teensyduino
+
## [http://www.pjrc.com/teensy/td_download.html Teensyduino]
# Launch Arduino IDE
+
# Launch Arduino IDE and Teensy Loader
 
# Select Teensy 1.0 under Tools, Board
 
# Select Teensy 1.0 under Tools, Board
 
# Load/Write your sketch and click verify
 
# Load/Write your sketch and click verify
* Behind the scenes, Arduino IDE will create a temp folder containing the .hex file to load onto the AVR
+
#* Behind the scenes, Arduino IDE will create a temp folder containing the .hex file to load onto the AVR
 
# Find the .hex file and load onto the minimus using Flip loader.
 
# Find the .hex file and load onto the minimus using Flip loader.
 
# Reset the minimus  
 
# Reset the minimus  
 
# Profit
 
# Profit
 
  
 
== Minimus / Arduino Pin Out ==
 
== Minimus / Arduino Pin Out ==
  
 
                     +------+<br />                    |+-++-+|<br />      +    +      |+-++-+|      +    +<br /> OTHER| ARD | AVR  |      |  AVR | ARD |OTHER<br />      |    |    +-+------+-+    |    |<br />      |  20 | PC2 |+    +  +| VCC | VCC |<br />      |  0 | PD0 |+  +    +| PC4 | 19  |<br />      |  1 | PD1 |+    +  +| PC5 | 18  | PWM<br />  RX |  2 | PD2 |+  +--+ +| RST | RST |<br />  TX |  3 | PD3 |+  |  | +| PC6 | 17  | PWM<br />      |  4 | PD4 |+  +--+ +| PC7 | 16  |<br /> LEDb |  5 | PD5 |+        +| PB7 | 15  | PWM<br /> LEDa |  6 | PD6 |+        +| PB6 | 14  |<br />  HWB |  7 | PD7 |+  ++ ++ +| PB5 | 13  |<br />      |  8 | PB0 |+ hwb rst+| PB4 | 12  |<br />  SCK |  9 | PB1 |+        +| PB3 | 11  | MISO<br />      | GND | GND |+ b a  + +| PB2 | 10  | MOSI<br />      +    +    +----------+    +    +<br />
 
                     +------+<br />                    |+-++-+|<br />      +    +      |+-++-+|      +    +<br /> OTHER| ARD | AVR  |      |  AVR | ARD |OTHER<br />      |    |    +-+------+-+    |    |<br />      |  20 | PC2 |+    +  +| VCC | VCC |<br />      |  0 | PD0 |+  +    +| PC4 | 19  |<br />      |  1 | PD1 |+    +  +| PC5 | 18  | PWM<br />  RX |  2 | PD2 |+  +--+ +| RST | RST |<br />  TX |  3 | PD3 |+  |  | +| PC6 | 17  | PWM<br />      |  4 | PD4 |+  +--+ +| PC7 | 16  |<br /> LEDb |  5 | PD5 |+        +| PB7 | 15  | PWM<br /> LEDa |  6 | PD6 |+        +| PB6 | 14  |<br />  HWB |  7 | PD7 |+  ++ ++ +| PB5 | 13  |<br />      |  8 | PB0 |+ hwb rst+| PB4 | 12  |<br />  SCK |  9 | PB1 |+        +| PB3 | 11  | MISO<br />      | GND | GND |+ b a  + +| PB2 | 10  | MOSI<br />      +    +    +----------+    +    +<br />

Revision as of 15:48, 20 January 2013

Introduction

This is how to load Arduino sketches to the Minimus AVR stick without modifying the bootloader.
As the hardware is identical to the teensy 1.0, any sketch compiled for the teensy will run on minimus.

The Teensy runs a closed source bootloader which isnt available.
While it is possible to create a custom bootloader to make the minimus appear as a Teensy, this method doesnt require you to flash a new bootloader.


* This is a bit messy as Im copying from my hand written notes, I'll tidy up as I go along

How To

* I last tested this with older versions of all software involved. Will test with latest versions and link to older versions if this doesnt work.

* This assumes you already have the minimus working with Flip loader


  1. Install the following
    1. Arduino IDE
    2. Teensy Loader
    3. Teensyduino
  2. Launch Arduino IDE and Teensy Loader
  3. Select Teensy 1.0 under Tools, Board
  4. Load/Write your sketch and click verify
    • Behind the scenes, Arduino IDE will create a temp folder containing the .hex file to load onto the AVR
  5. Find the .hex file and load onto the minimus using Flip loader.
  6. Reset the minimus
  7. Profit

Minimus / Arduino Pin Out

                    +------+
|+-++-+|
+ + |+-++-+| + +
OTHER| ARD | AVR | | AVR | ARD |OTHER
| | +-+------+-+ | |
| 20 | PC2 |+ + +| VCC | VCC |
| 0 | PD0 |+ + +| PC4 | 19 |
| 1 | PD1 |+ + +| PC5 | 18 | PWM
RX | 2 | PD2 |+ +--+ +| RST | RST |
TX | 3 | PD3 |+ | | +| PC6 | 17 | PWM
| 4 | PD4 |+ +--+ +| PC7 | 16 |
LEDb | 5 | PD5 |+ +| PB7 | 15 | PWM
LEDa | 6 | PD6 |+ +| PB6 | 14 |
HWB | 7 | PD7 |+ ++ ++ +| PB5 | 13 |
| 8 | PB0 |+ hwb rst+| PB4 | 12 |
SCK | 9 | PB1 |+ +| PB3 | 11 | MISO
| GND | GND |+ b a + +| PB2 | 10 | MOSI
+ + +----------+ + +