Difference between revisions of "Minnowboard:Trainer Lure"
m (Prpplague moved page Trainer Lure to Minnowboard:Trainer Lure without leaving a redirect) |
|||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[File:trainer-lure.png|240px]] | [[File:trainer-lure.png|240px]] | ||
− | + | = Features = | |
* I2C interface(+3.3v) | * I2C interface(+3.3v) | ||
* SPI inteface with ChipSelect(+3.3v) | * SPI inteface with ChipSelect(+3.3v) | ||
Line 10: | Line 10: | ||
** ATmega328 power is +3.3v or +5v selectable | ** ATmega328 power is +3.3v or +5v selectable | ||
** Communicate to the ATmega328 via the MinnowBoard uart | ** Communicate to the ATmega328 via the MinnowBoard uart | ||
+ | |||
= Hardware = | = Hardware = | ||
− | [[File: | + | [[File:trainer-lure-features.jpg|800px| Trainer Lure Rev-B]] |
− | |||
− | |||
− | |||
− | |||
== I²C Interface == | == I²C Interface == | ||
− | The Trainer provides an interface to the | + | The Trainer provides an interface to the MinnowBoard's I²C port. The I²C signals are at +3.3V levels. The I²C signals are located next the the prototyping area. |
How to access the I2C bus (from software): http://i2c.wiki.kernel.org/index.php/Linux_2.6_I2C_development_FAQ | How to access the I2C bus (from software): http://i2c.wiki.kernel.org/index.php/Linux_2.6_I2C_development_FAQ | ||
Line 42: | Line 39: | ||
== ATmega328 (Arduino Hardware Compatible) == | == ATmega328 (Arduino Hardware Compatible) == | ||
− | An ATmega328 embedded processor is located on the Trainer board that is user programmable. The ATmega328 is hardware compatible with the Arduino and it's I/O signals are available next to the prototyping area. The ATmega328 can be user jumpered to run at either +3.3V or +5V. One of the | + | An ATmega328 embedded processor is located on the Trainer board that is user programmable. The ATmega328 is hardware compatible with the Arduino and it's I/O signals are available next to the prototyping area. The ATmega328 can be user jumpered to run at either +3.3V or +5V. One of the MinnowBoard's GPIO signals (GPIO_SUS1) controls the ATmega328's power supply and can turn on or off the power to the ATmega328. The ATmega328 can run off it's internal RC oscillator or it also has an external crystal(footprint provided but not populated). |
'''Note:''' The ATmega328 must be programmed with an external hardware programmer (not included) like the [http://www.sparkfun.com/commerce/product_info.php?products_id=9231 Pocket AVR Programmer] or the [http://www.mouser.com/ProductDetail/Atmel/ATAVRISP2/?qs=sGAEpiMZZMv256HIxPBQcA8%252bsNH3cLLR ATAVRISP2]. | '''Note:''' The ATmega328 must be programmed with an external hardware programmer (not included) like the [http://www.sparkfun.com/commerce/product_info.php?products_id=9231 Pocket AVR Programmer] or the [http://www.mouser.com/ProductDetail/Atmel/ATAVRISP2/?qs=sGAEpiMZZMv256HIxPBQcA8%252bsNH3cLLR ATAVRISP2]. | ||
Line 59: | Line 56: | ||
avrdude -c usbtiny -p atmega328p -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex -U lock:w:0x0f:m | avrdude -c usbtiny -p atmega328p -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex -U lock:w:0x0f:m | ||
</pre> | </pre> | ||
− | * AVR code and Arduino sketches can be uploaded using avrdude on the | + | * (NEEDS TO BE UPDATED)AVR code and Arduino sketches can be uploaded using avrdude on the MinnowBoard: |
<pre> | <pre> | ||
avrdude -V -F -c stk500v1 -p m328p -P /dev/ttyS1 -b 57600 -U flash:w:main.hex | avrdude -V -F -c stk500v1 -p m328p -P /dev/ttyS1 -b 57600 -U flash:w:main.hex | ||
</pre> | </pre> | ||
− | * AVR code and Arduino sketches can be uploaded using [[avrgal]] on the | + | * AVR code and Arduino sketches can be uploaded using [[avrgal]] on the MinnowBoard: |
<pre> | <pre> | ||
avrgal main.hex | avrgal main.hex | ||
Line 74: | Line 71: | ||
*Access to the ATmega328's I/O pins | *Access to the ATmega328's I/O pins | ||
− | = | + | == Attaching to the MinnowBoard == |
− | |||
− | |||
− | |||
− | + | [[File:type-a-front.jpg|200px]] | |
− | |||
− | [[File: | ||
Attach the four board spacers with the screws provided. | Attach the four board spacers with the screws provided. | ||
− | + | [[File:type-a-back.jpg|200px]] | |
− | [[File: | ||
Connect the expansion board onto the TOP SIDE of the MinnowBoard by mating | Connect the expansion board onto the TOP SIDE of the MinnowBoard by mating | ||
with the 100-pin header. Make sure all of the pins align correctly. | with the 100-pin header. Make sure all of the pins align correctly. | ||
− | |||
− | |||
− | |||
− | |||
Continue pushing the two boards together until the connectors mate together. | Continue pushing the two boards together until the connectors mate together. | ||
− | + | [[file:type-a-connector.jpg|200px]] | |
− | [[ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Trainer Schematics = | = Trainer Schematics = | ||
The Trainer Rev-B schematic is availible here: | The Trainer Rev-B schematic is availible here: | ||
− | * [[media: | + | * [[media:Trainer-Lure-Rev-B-schematic.pdf|Trainer Rev-B schematic]] |
= Where to purchase the Trainer board = | = Where to purchase the Trainer board = | ||
− | The Trainer board | + | The Trainer Lure board will be available for purchase from http://www.circuitco.com |
− | |||
− | |||
− | |||
[[Category: MinnowBoard]] | [[Category: MinnowBoard]] | ||
[[Category: MinnowBoard Expansion Boards]] | [[Category: MinnowBoard Expansion Boards]] | ||
− | [[Category: | + | [[Category: CircuitCo]] |
Latest revision as of 11:42, 2 April 2013
Contents
Features
- I2C interface(+3.3v)
- SPI inteface with ChipSelect(+3.3v)
- 8 GPIO's(+3.3v)
- Large prototyping area (0.1" x 0.1" matrix with access to power bus)
- Atmega328 processor (user programmable)
- Arduino compatible
- ATmega328 power is +3.3v or +5v selectable
- Communicate to the ATmega328 via the MinnowBoard uart
Hardware
I²C Interface
The Trainer provides an interface to the MinnowBoard's I²C port. The I²C signals are at +3.3V levels. The I²C signals are located next the the prototyping area.
How to access the I2C bus (from software): http://i2c.wiki.kernel.org/index.php/Linux_2.6_I2C_development_FAQ
SPI Interface
The Trainer provides an interface the the MinnowBoard's SPI port and the signals are level translated to +3.3V. The SPI signals are located next to the prototyping area.
- Accessing the SPI interface
GPIO Interface
The Trainer provides an interface to 8 of the MinnowBoard's GPIO signals. The GPIO signals are at +3.3V levels and are located next to the prototyping area.
Serial EEPROM
The Trainer board provides an AT24C01 serial EEPROM that contains a Vendor ID and a Device ID that the MinnowBoard uses to identify the type of board connected to the expansion header. This information enables the MinnowBoard to auto-configure the signals needed by the Trainer.
ATmega328 (Arduino Hardware Compatible)
An ATmega328 embedded processor is located on the Trainer board that is user programmable. The ATmega328 is hardware compatible with the Arduino and it's I/O signals are available next to the prototyping area. The ATmega328 can be user jumpered to run at either +3.3V or +5V. One of the MinnowBoard's GPIO signals (GPIO_SUS1) controls the ATmega328's power supply and can turn on or off the power to the ATmega328. The ATmega328 can run off it's internal RC oscillator or it also has an external crystal(footprint provided but not populated).
Note: The ATmega328 must be programmed with an external hardware programmer (not included) like the Pocket AVR Programmer or the ATAVRISP2.
- Atmel Atmega328 Product Page
- Flash Programming
- Introduction to programming Atmel AVR's under Linux
- Arduino Homepage
- Arduino bootloader compatible with ATmega328 Pro at 8MHz
- Arduino bootloader source can be found at www.arduino.cc
- Arduino bootloader configuration using ISP programmer:
avrdude -c usbtiny -p atmega328p -e -u -U lock:w:0x3f:m -U efuse:w:0x05:m -U hfuse:w:0xda:m -U lfuse:w:0xff:m avrdude -c usbtiny -p atmega328p -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex -U lock:w:0x0f:m
- (NEEDS TO BE UPDATED)AVR code and Arduino sketches can be uploaded using avrdude on the MinnowBoard:
avrdude -V -F -c stk500v1 -p m328p -P /dev/ttyS1 -b 57600 -U flash:w:main.hex
- AVR code and Arduino sketches can be uploaded using avrgal on the MinnowBoard:
avrgal main.hex
Prototyping / Breakout Area
- provides a prototyping / breakout area with a standard 0.1" x 0.1" spacing matrix
- Access to MinnowBoard's signals
- Access to the ATmega328's I/O pins
Attaching to the MinnowBoard
Attach the four board spacers with the screws provided.
Connect the expansion board onto the TOP SIDE of the MinnowBoard by mating with the 100-pin header. Make sure all of the pins align correctly. Continue pushing the two boards together until the connectors mate together.
Trainer Schematics
The Trainer Rev-B schematic is availible here:
Where to purchase the Trainer board
The Trainer Lure board will be available for purchase from http://www.circuitco.com