Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
raspberry_boards:paperduinopi_hat [2016/07/16 22:18] admin [Install the Shutdown Button and the LED] |
raspberry_boards:paperduinopi_hat [2016/07/17 01:42] admin [Install the Shutdown Button and the LED] |
||
---|---|---|---|
Line 11: | Line 11: | ||
{{:raspberry_boards:paper-duino-pi_51.jpg?400|}}\\ | {{:raspberry_boards:paper-duino-pi_51.jpg?400|}}\\ | ||
{{:raspberry_boards:paper-duino-pi_51.ai.zip|}}\\ | {{:raspberry_boards:paper-duino-pi_51.ai.zip|}}\\ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Parts ==== | ||
+ | * Atmega328p | ||
+ | * 28 pin IC socket | ||
+ | * 4x low current LEDs | ||
+ | * crystal 16MHz | ||
+ | * 2x capacitors 100nF | ||
+ | * 2x capacitors 22pF | ||
+ | * capacitor 68nF | ||
+ | * 2x Z-diode 3.3V | ||
+ | * resistors: 2x 2kOhm, 4x 1kOhm, 1x 6.8kOhm | ||
+ | * 2x reset button | ||
+ | * one row headers, 2x8, 2x3, 1x4 | ||
+ | * a 2x8 pin header | ||
---- | ---- | ||
Line 28: | Line 44: | ||
$ mkdir paper-duino-pi | $ mkdir paper-duino-pi | ||
$ cd paper-duino-pi | $ cd paper-duino-pi | ||
- | Download and unpack the files: | + | Download the files: |
$ wget http://dernulleffekt.de/programme/paperduinopi_v05/paper-duino-hat_01.tar.gz | $ wget http://dernulleffekt.de/programme/paperduinopi_v05/paper-duino-hat_01.tar.gz | ||
- | $ tar -xvf paper-duino-pi_Pi2_Jessy.tar.gz | + | And unpack: |
+ | $ tar -xvf paper-duino-hat_01.tar.gz | ||
Run the setup: | Run the setup: | ||
$ sudo chmod 755 setup | $ sudo chmod 755 setup | ||
Line 49: | Line 66: | ||
Go to your Paper-Duino-Pi folder | Go to your Paper-Duino-Pi folder | ||
$ cd /home/pi/paper-duino-pi | $ cd /home/pi/paper-duino-pi | ||
- | Download and unzip the Python script, one for the button: | + | Download the Python script: |
$ wget http://www.dernulleffekt.de/programme/paperduinopi_v05/shutdown_and_blink_01.tar.gz | $ wget http://www.dernulleffekt.de/programme/paperduinopi_v05/shutdown_and_blink_01.tar.gz | ||
+ | And unpack it: | ||
$ tar xf shutdown_and_blink_01.tar.gz | $ tar xf shutdown_and_blink_01.tar.gz | ||
Change owner & rights | Change owner & rights | ||
- | $ sudo chown root:root shutdownbutton_hat.py | + | $ sudo chown root:root shutdownbutton_hat.py blink_hat.py |
- | $ sudo chown root:root blink_hat.py | + | $ sudo chmod 755 shutdownbutton_hat.py blink_hat.py |
- | $ sudo chmod 755 shutdownbutton_hat.py | + | |
- | $ sudo chmod 755 blink_hat.py | + | |
Create the autostart: | Create the autostart: | ||
$ sudo nano /etc/rc.local | $ sudo nano /etc/rc.local | ||
Write before "exit 0": | Write before "exit 0": | ||
+ | printf " \n" | ||
+ | printf " =============================================\n" | ||
+ | printf " = PAPER-DUINO-HAT =\n" | ||
+ | printf " = =\n" | ||
+ | printf " = wolfgang spahn 07-2016 =\n" | ||
+ | printf " = http://dernulleffekt.de =\n" | ||
+ | printf " =============================================\n" | ||
+ | printf " \n" | ||
# run reset and shutdown script | # run reset and shutdown script | ||
printf "Starts shutdown aund reset button on GPIO 22\n" | printf "Starts shutdown aund reset button on GPIO 22\n" | ||
Line 75: | Line 99: | ||
{{:raspberry_boards:spi-connection_202802.jpg?400|}}\\ | {{:raspberry_boards:spi-connection_202802.jpg?400|}}\\ | ||
- | Raspberry Pi | Arduino | + | Raspberry Pi | Paper-Duino-Hat |
====================================== | ====================================== | ||
MOSI (GPIO 10) | MOSI (pin 11) | MOSI (GPIO 10) | MOSI (pin 11) | ||
Line 82: | Line 106: | ||
RST (GPIO 25) | Reset | RST (GPIO 25) | Reset | ||
GND | GND | GND | GND | ||
- | 3.3V | 3,3V | + | 3.3V | 5V |
Run on the following commands:\\ | Run on the following commands:\\ | ||
Line 96: | Line 120: | ||
Burn the Bootloader:\\ | Burn the Bootloader:\\ | ||
$ sudo avrdude -p m328p -c linuxspi -P /dev/spidev0.0 -U flash:w:optiboot_atmega328.hex:i | $ sudo avrdude -p m328p -c linuxspi -P /dev/spidev0.0 -U flash:w:optiboot_atmega328.hex:i | ||
+ | |||
+ | ---- | ||
+ | ~~socialite:icon facebook twitter googleplus reddit~~ | ||
---- | ---- |