This guide will show you how to program an Arduino connected to your Raspberry PI from the Arduino IDE on your local computer. Linux and OS X for now
###On your Raspberry PI
First install avrdude
| FROM zephyrprojectrtos/zephyr-build:v0.24.6 | |
| RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.3/zsh-in-docker.sh)" -- \ | |
| -p git -p 'history-substring-search' \ | |
| -a 'bindkey "\$terminfo[kcuu1]" history-substring-search-up' \ | |
| -a 'bindkey "\$terminfo[kcud1]" history-substring-search-down' | |
| CMD ["/bin/zsh"] |
| [filament:Real PETG] | |
| bed_temperature = 84 | |
| bridge_fan_speed = 100 | |
| cooling = 1 | |
| disable_fan_first_layers = 3 | |
| extrusion_multiplier = 0.75 | |
| fan_always_on = 0 | |
| fan_below_layer_time = 60 | |
| filament_colour = #000000 | |
| filament_diameter = 1.75 |
| diff --git a/Marlin/pins_SANGUINOLOLU_11.h b/Marlin/pins_SANGUINOLOLU_11.h | |
| index a6220c5..a591f81 100644 | |
| --- a/Marlin/pins_SANGUINOLOLU_11.h | |
| +++ b/Marlin/pins_SANGUINOLOLU_11.h | |
| @@ -54,7 +54,7 @@ | |
| #endif | |
| #if IS_MELZI | |
| - #define LED_PIN 27 // On some broken versions of the Sanguino libraries the pin definitions are wrong, so LED_PIN needs to be 28. But you should upgrade your Sanguino libraries! See #368. | |
| + #define LED_PIN -1//27 // On some broken versions of the Sanguino libraries the pin definitions are wrong, so LED_PIN needs to be 28. But you should upgrade your Sanguino libraries! See #368. |
| Arduino: 1.6.9 (Mac OS X), Board:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" | |
| /Applications/Arduino 1.6.9.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Applications/Arduino 1.6.9.app/Contents/Java/hardware" -hardware "/Users/erikkallen/Library/Arduino15/packages" -tools "/Applications/Arduino 1.6.9.app/Contents/Java/tools-builder" -tools "/Applications/Arduino 1.6.9.app/Contents/Java/hardware/tools/avr" -tools "/Users/erikkallen/Library/Arduino15/packages" -built-in-libraries "/Applications/Arduino 1.6.9.app/Contents/Java/libraries" -libraries "/Users/erikkallen/Documents/Arduino/libraries" -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0010 -ide-version=10609 -build-path "/var/folders/85/0xln96zd0mq2rz3ts45nhcn00000gn/T/build0a7b4e7986def2874e572c3c9270f0c8.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/erikkallen/Dropbox/Projects/Marlin/Marlin/Marlin.ino" | |
| /Applications/Arduino 1.6.9.app/Contents/Java/arduino-builder -compile -lo |
| # generated by Slic3r 1.2.9 on Wed Jul 13 23:01:20 2016 | |
| [filament:Black ABS] | |
| bed_temperature = 106 | |
| bridge_fan_speed = 100 | |
| cooling = 0 | |
| disable_fan_first_layers = 3 | |
| extrusion_multiplier = 1 | |
| fan_always_on = 0 | |
| fan_below_layer_time = 60 |
| $ dd if=/dev/urandom bs=1 count=160 | hexdump -v -e '15/1 "0x%02X, " 1/1 " 0x%02X,\n"' | |
| 160+0 records in | |
| 160+0 records out | |
| 160 bytes (160 B) copied, 0.000507955 s, 315 kB/s | |
| 0xB3, 0x4C, 0xD7, 0x9B, 0xC4, 0x83, 0x7C, 0x92, 0xDE, 0xF5, 0x63, 0xBA, 0xAB, 0xCF, 0xDE, 0x13, | |
| 0x7F, 0xCE, 0x9D, 0xE9, 0x9F, 0xF8, 0xA2, 0xCB, 0x52, 0x6A, 0xD7, 0xDE, 0xD8, 0x12, 0xAC, 0x71, | |
| 0x1B, 0x5E, 0xF2, 0x2E, 0x1C, 0x82, 0x24, 0x24, 0xA2, 0x5D, 0x27, 0x90, 0xE4, 0xDC, 0x21, 0xF3, | |
| 0xAB, 0x9F, 0xD6, 0x1A, 0xDE, 0xFC, 0xA3, 0xDC, 0x49, 0xA2, 0xEF, 0xF2, 0x95, 0xCB, 0x8A, 0xE2, | |
| 0x6F, 0xD5, 0x2E, 0x48, 0x2B, 0x4D, 0x35, 0xEC, 0x62, 0x24, 0x75, 0xEB, 0xCF, 0x26, 0x57, 0xB2, | |
| 0x56, 0x65, 0xDF, 0x25, 0xA9, 0xB1, 0xD9, 0x78, 0x7F, 0x76, 0xB2, 0xF4, 0x57, 0xAD, 0xDC, 0xCC, |
| test second gist |
| #!/bin/bash | |
| # Still work in progress! | |
| SCRIPTPATH=$( cd $(dirname $0) ; pwd -P ) | |
| CMD_ARGS=($@) | |
| NEW_ARGS="${CMD_ARGS[3]} ${CMD_ARGS[4]} ${CMD_ARGS[5]} ${CMD_ARGS[6]} ${CMD_ARGS[8]}" | |
| if [ "$8" == "-P/dev/tty.Bluetooth-Incoming-Port" ]; then | |
| echo "starting hack" | |
| OLDIFS=IFS |
| wget https://raw.githubusercontent.com/deanmao/avrdude-rpi/master/autoreset | |
| wget https://raw.githubusercontent.com/deanmao/avrdude-rpi/master/avrdude-autoreset | |
| sudo cp autoreset /usr/bin | |
| sudo cp avrdude-autoreset /usr/bin | |
| sudo mv /usr/bin/avrdude /usr/bin/avrdude-original | |
| sudo ln -s /usr/bin/avrdude-autoreset /usr/bin/avrdude |