You are viewing an older revision! See the latest version
m3pi preparation
Before you start using the mbed with your Pololu 3pi, you need to program the on board AVR with Pololu's "Serial Slave" example.
The easiest way is to use the binaries as described below. If you want to build your own then there are great instructions on at www.pololu.com with some handy links at m3pi-Development
The Easy Way¶
To do this the easy way you simply need to temporarily repurpose your mbed Microcontroller to be an AVR ISP programmer by using Aaron Berks mbedAVR programmer. This enables an AVR binary dragged onto mbed LocalFileSystem to be be programmed into the AVR over SPI - drag and drop programming for AVR :-)
You will need :
- m3pi AVR Programmer
- Program.zip - Contains "program.avr" - the file the programmer looks for
Setting up your hardware¶
The hardware connections between the mbed and the 3pi are simple. On the 3pi side, there is just a standard 6 way AVR ISP header :
The connection to mbed is straight forward.
| AVR ISP | mbed |
| 1 MISO | p6 |
| 2 VCC | n/c |
| 3 SCK | p7 |
| 4 MOSI | p5 |
| 5 nRST | p8 |
| 6 GND | GND |