|Purchase From||majenko.co.uk/lenny microchipDIRECT.com|
The chipKIT Lenny is designed to be as close to the Arduino Leonardo as physically possible. The choice of microcontroller, the PIC32MX270F256D with advanced Peripheral Pin Select, means GPIO pin functions can be mapped to match those of common Arduino boards. By default that mapping is configured to be equivalent to the Arduino Leonardo.
The Board Design
- PIC32MX270F256D - 256K Flash, 64K RAM @ 40MHz 32-bit MIPS core
- UECIDE supports chipKIT Lenny out of the box
- 27 Digital IO (many are 5V tolerant)
- 6 Analog inputs (10-bit)
- 2 hardware serial ports (UARTs) - one accessible on pins 0 (RX) and 1 (TX), the other on pins 2 (TX) and 4 (RX), plus a serial connection over USB (12Mbps)
- Uno R3 / Leonardo footprint
- Directly compatible with 3.3V devices. No level converting necessary.
- Easy to program, no additional hardware is required to load sketches – just plug into a USB port and run UECIDE
- ICSP Header for use with optional Microchip hardware programmer/debuggers (like PICKit3, ICD3 or REAL ICE)
- Can be powered through USB, or 6.5V to 12V DC input power
- USB bootloader (STK500v2 compatible) for seamless sketch uploading within UECIDE
Useful Board Pins
Full Pin Layout
LED L is on digital pin 22. LED TX is on digital pin 23. LED RX is on digital pin 24. Power (ON) LED is on 3.3V power.
|Analog Input||Digital Pin|
|Serial Object||UART||TX Pin||RX Pin|
|I2C Object||Channel||SDA Pin||SCL Pin|
|DTWI0 / Wire||1||SDA (28)||SCL (29)|
|SPI Object||Channel||MOSI Pin||MISO Pin||SCK Pin|
|DSPI0 / SPI||1||11||12||13|
The PROG button used to enter bootloader mode is on digital IO 21. By default it is connected to the FastProg circuit to allow rapid single-finger access to the bootloader. This may be disabled by cutting the link adjacent to the PROG button.
When you want to upload a new sketch to the chipKIT Lenny, you need to put it into bootloader mode. This is done by simply tapping the PROG button.
If FastProg has been disabled you should instead hold the PROG button whilst briefly pressing the RESET button.
The LED "L" should start blinking to indicate the bootloader is running.
The computer doesn't detect my Lenny when it's plugged in. Is it broken?
No, it's not broken. The USB interface is only active when either the bootloader is running or your sketch has specifically requested that it be used through the use of, for example, "Serial.begin(115200);". If your sketch (such as the default Blink sketch) doesn't use the USB interface then the computer won't see the board at all. Pressing the PROG button will enter the bootloader and the computer should then see the board as a COM port.