===== What is Leonard Pirate ===== Leonard Pirate (NOT Leonardo !!) is also Arduino Leonardo clone. You can connect this into USB port easily (no cables!!) and enjoy Arduino environment. :-) \\ Some Arduino ports (e.g. 3.3V, IOREF) was omitted.\\ \\ I was inspired this from Bus Pirate. [[http://dangerousprototypes.com/docs/Bus_Pirate|Bus Pirate]] is easy to control or hack SPI/I2C devices from CLI (Command Line Interface).\\ So, you can play with Bus Pirate clone, Bus Ninja!! (I'm Japanese.)\\ (Ian [[http://dangerousprototypes.com/2011/12/07/leonard-pirate-at-make-tokyo-meeting-07/|taught me]] Bus Ninja. This is not a syntax compatible, but it's also easy to use.)\\ \\ I strongly recommend USB-A style. But, you can choose Micro-B with cable, when you build.\\ USB connector is EXCLUSIVE!! Do not load both A&B!!\\ \\ USB-A connector:\\ {{http://farm7.static.flickr.com/6038/6237845177_dc04ea8842_m.jpg}}\\ Micro-B connector:\\ {{http://farm7.static.flickr.com/6237/6238366920_2e4861f537_m.jpg}}\\ \\ ===== Schematics ===== This schematic is RC version.\\ {{:leonard_pirate_rc_sch.png?direct&500|}}\\ I refered Arduino's github master blanch. [[https://github.com/arduino/Arduino/blob/master/hardware/arduino/variants/leonardo/pins_arduino.h|pins_arduino.h]]\\ \\ ===== BOM ===== ^Part.^Value^Name^Package^Store^Akizuki code^Price^ |C1|1uF|C-USC0603K|C0603K|秋月|P-02996|2| |C2|22pF|C-USC0603K|C0603K|千石| |4| |C3|22pF|C-USC0603K|C0603K|千石| |4| |C4|0.1uF|C-USC0603K|C0603K|秋月|P-04940|0.5| |C5|10uF|C-USC3216|C3216|秋月|P-01185|12.5| |C6|0.1uF|C-USC0603K|C0603K|秋月|P-04940|0.5| |C7|0.1uF|C-USC0603K|C0603K|秋月|P-04940|0.5| |IC1|ATMEGA32U4-AU|ATMEGA32U4-AU|TQFP44|SSCI| |480| |L|D13|LEDCHIP-LED0805|CHIP-LED0805|秋月|I-03978|10| |L1|500mA|PTCFUSE-1206|R1206| | | | |L2|TX|LEDCHIPLED_0805|CHIPLED_0805|秋月|I-03978|10| |L3|RX|LEDCHIPLED_0805|CHIPLED_0805|秋月|I-03978|10| |PWR|GREEN|LEDCHIP-LED0805|CHIP-LED0805|秋月|I-03980|10| |R1|22|R-US_R0603|R0603|千石| |4| |R2|22|R-US_R0603|R0603|千石| |4| |R3|1K|R-US_R0603|R0603|千石| |4| |R4|10K|R-US_R0603|R0603|千石| |4| |R5|1K|R-US_R0603|R0603|千石| |4| |R6|1K|R-US_R0603|R0603|千石| |4| |R7|1K|R-US_R0603|R0603|千石| |4| |R8|10K|R-US_R0603|R0603|千石| |4| |S1| |TAC_SWITCHSMD|TACTILE_SWITCH_SMD|秋月|P-03006|20| |X1|USB|USB|MOLEX_480371000|秋月|C-02236|50| |X2|USB-MICROB|USB-MICROB|USB-MICROB|千石| |200| |X3|FA238-16MHz|XTAL-4-3225| |秋月|P-02457|50| \\ Most of parts could buy from Akizuki and Sengoku in Tokyo, Japan.\\ Fuse is difficult to buy in Japanese stores. I bought "NANOSMDC050F/13.2-2" of TE, from mouser.\\ ===== How to build ===== I don't have any special advice for SMD soldering guys. :-D\\ \\ I omitted XTAL's silk print, so please see the picture below. Pins are on opposite angle. So, you need to care only long or short sides of a rectangle.\\ Please refer this board layout.\\ {{:leonard_pirate_rc_brd.png?direct|}}\\ \\ ===== How to flash ===== After soldering, please write bootloader to the 32U4.\\ You can burn with Arduino 1.0. Choose your Programmer, Arduino Leonardo for the boards. And just click "Burn Bootloader". If you can't see "Arduino Leonardo" on your Arduino 1.0, please edit "boards.txt".\\ \\ Or, I ported "Bus Ninja" to this board. You can download hex file from [[https://raw.github.com/ytsuboi/Bus-Ninja/master/precompiled/ninja-leonard-pirate-atmega32u4.hex|here]]. And, customized "Bus Ninja" code is available on [[https://github.com/ytsuboi/Bus-Ninja|my github repository]].\\ When you flash hex, here is the sample command. avrdude -p atmega32u4 -c stk500v2 -P usb -F -U flash:w:ninja-leonard-pirate-atmega32u4.hex -U lfuse:w:0xCE:m -U hfuse:w:0xD8:m -U efuse:w:0xFF:m