Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /srv/http/islandlabs/wiki/lib/plugins/meta/syntax.php on line 91
project:bus_pirate
Table of Contents

Bus Pirate

Jonathan and Bill each have a Bus Pirate v3

Connecting to a Makerbot Cupcake

If you do not have a usb to ftdi cable, you can use a bus pirate. Here is how we setup a bus pirate v3 with firmware and bootloader 4.1 to a Cupcake ( bot 779, batch 11, motherboard firmware XXXX, plastruder firmware XXXX ).

Hardware Setup

Before plugging in the bus pirate, we need to make sure we are using +5v to communicate with the makerbot motherboard. Normally the bus pirate communicates with 3.3v, but luckily for us an internal pullup resistor can bring it up to 5v. Jump the Vup and +5v pins on the board.

There are only three more wires to connect, then we can setup the software. Connect ground to ground (pin 1 on the makerbot motherboard v1.2), BP MISO to Makerbot RXD (pin 5), and BP MOSI to Makerbot TXD (pin 4). This is because the Makerbot is based on a sanguino, so it is a DCE chip, and the bus pirate is DTE.

Now plug in the usb connection to the computer. The makerbot can be kept off until you open replicatorG.

Udev Rule

The bus pirate can show up as /dev/ttyUSBX, with X being any digit. A udev rule to always show up as /dev/buspirate is convenient.

# sudo udevadm info --attribute-walk -n /dev/ttyUSB0  | sed -n '/FTDI/,/serial/p'
# sudo echo 'SUBSYSTEM=="tty", ATTRS{serial}=="XXXXXX", GROUP="users", MODE="0660", SYMLINK+="buspirate"' | sudo tee /etc/udev/rules.d/98-buspirate.rules
# sudo udevadm control --reload-rules

Connecting with minicom

Install minicom, and run

# sudo minicom -s

* Navigate with the arrow keys and enter, choosing Serial port setup and pressing 'A' to change the serial device to '/dev/buspirate'

* Set Hardware Flow Control and Software Flow Control to off

* Exit, and choose Save setup as dfl so we can skip this part next time

Now exit and minicom should automagically connect to the bus pirate, giving you a command prompt.

Setting up a UART connection

Type M for the menu, then choose

You should be back at the serial prompt.

The bus pirate output has already been set to 38400 baud, but we now need to change the baud rate between the computer and bus pirate to 38400.

If all is good, the bottom of minicom should show we are communicating at 38400 8N1 and you are back to the regular menu.

Final steps

Congratulations, you are now ready to use replicatorG to test your makerbot!

Updating Firmware

When updating the plastruder firmware, make sure to be at 19200 baud rate!