Difference between revisions of "Arduino IDE with Minimus"

From Nottinghack Wiki
Jump to navigation Jump to search
(move link to main board page)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
This is how to load Arduino sketches to the Minimus AVR stick without modifying the bootloader.<br />
+
This is how to load Arduino sketches to the [[Minimus AVR Board]] stick without modifying the bootloader.<br />
 
As the hardware is identical to the teensy 1.0, any sketch compiled for the teensy will run on minimus.<br />
 
As the hardware is identical to the teensy 1.0, any sketch compiled for the teensy will run on minimus.<br />
 
<br />
 
<br />
Line 6: Line 6:
 
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.
 
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.
  
 +
== How To ==
  
 +
=== Installation ===
  
''* This is a bit messy as Im copying from my hand written notes, I'll tidy up as I go along''
+
# Install the following
 
+
#* [http://arduino.cc/en/main/software Arduino IDE]
== How To ==
+
#* [http://www.pjrc.com/teensy/loader.html Teensy Loader]
''* 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.''<br />
+
#* [http://www.pjrc.com/teensy/td_download.html Teensyduino]
 +
#* [http://www.atmel.com/tools/FLIP.aspx Atmel Flip]
 +
# Plug in a Minimus and you'll see it's an unrecognized device in device manager.  Update driver, pointing it at C:\Program Files (x86)\Atmel\Flip 3.4.7\usb  (and saying yes when prompted)
 +
# In FLIP, go to Device > Select > AT90USB162
  
''* This assumes you already have the minimus working with Flip loader''
+
=== Programming ===
  
  
# Install the following
 
## [http://arduino.cc/en/main/software Arduino IDE]
 
## [http://www.pjrc.com/teensy/loader.html Teensy Loader]
 
## [http://www.pjrc.com/teensy/td_download.html Teensyduino]
 
 
# Launch Arduino IDE and Teensy Loader
 
# 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 upload
#* Behind the scenes, Arduino IDE will create a temp folder containing the .hex file to load onto the AVR
+
#* It will compile then pop up the Teensy program with a button to 'open HEX file'  Click this and drag it to desktop.  Then cancel out of Teensy program.
# Find the .hex file and load onto the minimus using Flip loader.
+
# Open Flip
 +
# Plug in Minimus
 +
# To put Minimus in programming mode, push reset, push HWB, release reset, release HWB
 +
# Select communication USB [open]
 +
# Run the operations flow to program the Minimus (erase, program, verify)
 
# Reset the minimus  
 
# Reset the minimus  
 
# Profit
 
# Profit
  
== Finding the output hex ==
+
== Minimus to Arduino Pin Out ==
From the [http://arduino.cc/en/Hacking/BuildProcess Arduino site]
 
''The .hex file is the final output of the compilation which is then uploaded to the board. During a "Verify" the .hex file is written to /tmp (on Mac and Linux) or \Documents and Settings\<USER>\Local Settings\Temp (on Windows). ''<br />
 
  
If you are still having troubles finding the file you can use a disk monitoring application such as [http://www.diskpulse.com/ DiskPulse] to look at files written during the verify process.
+
                    +------+<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 />
  
== Minimus / Arduino Pin Out ==
+
==Resources==
 +
* [https://www.re-innovation.co.uk/docs/minimus-avr-and-arduino-ide/ Minimus AVR and Arduino IDE (RE-Innovation)]
 +
* [https://www.instructables.com/id/Using-Minimus-AVR-with-Arduino-IDE/ Using Minimus AVR With Arduino IDE (Instructables)]
  
                    +------+<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 />
+
[[Category:Arduino]]
 +
[[Category:Software]]

Latest revision as of 15:49, 29 March 2019

Introduction

This is how to load Arduino sketches to the Minimus AVR Board 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.

How To

Installation

  1. Install the following
  2. Plug in a Minimus and you'll see it's an unrecognized device in device manager. Update driver, pointing it at C:\Program Files (x86)\Atmel\Flip 3.4.7\usb (and saying yes when prompted)
  3. In FLIP, go to Device > Select > AT90USB162

Programming

  1. Launch Arduino IDE and Teensy Loader
  2. Select Teensy 1.0 under Tools, Board
  3. Load/Write your sketch and click upload
    • It will compile then pop up the Teensy program with a button to 'open HEX file' Click this and drag it to desktop. Then cancel out of Teensy program.
  4. Open Flip
  5. Plug in Minimus
  6. To put Minimus in programming mode, push reset, push HWB, release reset, release HWB
  7. Select communication USB [open]
  8. Run the operations flow to program the Minimus (erase, program, verify)
  9. Reset the minimus
  10. Profit

Minimus to 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
+ + +----------+ + +

Resources