- Download and flash raspbian to SD card
- Boot raspbian, ssh into it.
- Install ssh key, and change password
- Run
sudo raspi-setup
. Expand SD-card image. Change hostname. Advanced -> Enable SPI (yes, yes) - Update and upgrade
sudo apt-get update && sudo apt-get dist-upgrade
- Install spidev for python
sudo apt-get install python-dev
git clone https://github.com/doceme/py-spidev.git
cd py-spidev; sudo python setup.py install
- Install gcc-avr
sudo apt-get install gcc-avr avr-libc
- Install spi-supporting version of avrdude
sudo apt-get install libelf-dev flex bison autoconf
git clone https://github.com/kcuzner/avrdude.git
cd avrdude/avrdude; ./bootstrap && ./configure && make && sudo make install
sudo chmod u+s /usr/local/bin/avrdude
- Test connection to the COSMO-hat card
avrdude -c linuxspi -p m1284p -P /dev/spidev0.0
- Check out cosmo-adc project
git clone https://github.com/kristofferkoch/cosmo-avr.git
make fuse
make program
python test.py
-
Notifications
You must be signed in to change notification settings - Fork 1
kristofferkoch/cosmo-avr
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|