- Install Jesse 2015-11-21
- Go thru the configuration
(Menu > Preferences > Raspberry Pi Configuration) - Under the System Tab:
- Expand the filesystem
- Change the pi password
- Change the Pi Hostname
- Don’t automatically login to ‘pi’ user
- Under the Interfaces Tab:
- Camera = Disable
- SSH = Enable
- SPI = Enable
- I2C = Enable
- Serial = Disable
- I don’t change anything under the Performance Tab
- Under the Localisation Tab:
- Change the locale to Canada (English)
- Set the Timezone to Canada (America) > Mountain (Edmonton)
- I’m still having a problem with changing the keyboard layout
- It is a noted problem on the Raspberry Pi Forum
- Still using sudo raspi-config to config to Canada > English
- sudo apt-get update
- sudo apt-get upgrade
- sudo adduser robin
- sudo visudo to give robin the same rights as pi user
- sudo apt-get install arduino-mk
- sudo apt-get install arduino (add robin to dialout group)
- Make a link to the Arduino.mk file:
ln -s /usr/share/arduino/Arduino.mk ~/Arduino.mk - Copy the original avrdude.conf file into my home directory
- cp /etc/avrdude.conf ~/avrdude_gpio.conf
- Modify it to work with the GPIO pins
- nano ~/avrdude_gpio.conf
- Aff the following lines at the end of the file:
- # Linux GPIO configuration for avrdude
- # Change the lines below to the GPIO pins connected to the AVR
- programmer
- id = "pi_1";
- desc = "Use the Linux sysfs interface to bitbang GPIO lines";
- type = "linuxgpio";
- reset = 12;
- sck = 24;
- mosi = 23;
- miso = 18;
- ;
- With the Arduino connected to the Raspberry Pi, run the following line to make sure the Raspi can see the arduino:
sudo avrdude -p atmega328p -C ~/avrdude_gpio.conf -c pi_1 -v - git clone https://github.com/robingreig/raspi-git
- cp -r ~/raspi-git/Python ~ (to copy the Python directory to my home)
- cp -r ~/raspi-git/Uno ~ (to copy the Uno directory to my home)
- Goto the .hex file @ ~/Uno/Serial/Voltages/build-uno/Voltages.hex & run:
sudo avrdude -p atmega328p -C ~/avrdude_gpio.conf -c pi_1 -v -U flash:w:Voltages.hex:i - If you overwrite the bootloader, reload it by going to:
cd /usr/share/arduino/hardware/arduino/bootloaders/optiboot/
and running the avrdude line with the optiboot_atmega328.hex file
Wednesday, December 16, 2015
Avrdude 6.1
I just installed the latest version of Raspbian Jessie 2015-11-21 for my Pi 2's. I found that now when I installed the arduino package, it comes with avrdude 6.1. So I don't need to link to the adafruit repository anymore. Here is a list of the steps I take to install Jessie, Arduino, Arduino-mk, and check that I can communicate between the Arduino & Raspberry Pi 2 via Serial. You'll note that I clone my git repository where I keep all of my files as I'm working on them. I find this extremely useful since I'm working on the files on my Pi2 or Gertduino/PiB at home, or the same setup that I have at work:
Labels:
Arduino,
Battery Monitor,
Gertduino,
Raspberry Pi
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment