Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
raspberry_boards:paperduinopi [2014/05/23 15:18]
admin
raspberry_boards:paperduinopi [2020/06/11 22:13] (current)
Line 1: Line 1:
-**== Paper-Duino-Pi =======================================**+===== Paper-Duino-Pi =====
  
 {{ :​raspberry_boards:​paper-duino-pi_0961.jpg?​300 |}} {{ :​raspberry_boards:​paper-duino-pi_0961.jpg?​300 |}}
- 
- 
-**== Introduction =========================================** 
  
 The Paper-Duino-Pi is an Arduino shield for the Raspberry Pi. Due to the fact that it is designed as Paper-PCB it is easy to create and one doesn'​t need a printed circuit board. All components are standard electronic parts that are easily available at your favorite electronic shop. Plus they are really cheap. All you need are some electronic knowledge and soldering skills. ​ The Paper-Duino-Pi is an Arduino shield for the Raspberry Pi. Due to the fact that it is designed as Paper-PCB it is easy to create and one doesn'​t need a printed circuit board. All components are standard electronic parts that are easily available at your favorite electronic shop. Plus they are really cheap. All you need are some electronic knowledge and soldering skills. ​
Line 11: Line 8:
  
 One can use the Arduino IDE running on the Raspberry Pi to upload programs on the Paper-Duino-Pi. Once you uploaded the Firmata you have easy access to all the in- and outputs of the Arduino controlled by Pure Data, Python or Processing. This way it's just simple to connect sensores, buttons and potis to control your program running on your Raspberry Pi. It also functions vice versa: connect light, motors, step- and servomotors and control them with the software running on the Raspberry Pi. One can use the Arduino IDE running on the Raspberry Pi to upload programs on the Paper-Duino-Pi. Once you uploaded the Firmata you have easy access to all the in- and outputs of the Arduino controlled by Pure Data, Python or Processing. This way it's just simple to connect sensores, buttons and potis to control your program running on your Raspberry Pi. It also functions vice versa: connect light, motors, step- and servomotors and control them with the software running on the Raspberry Pi.
 +
 +**The version 3 has an additional shutdown and reset button on the GPIO 22 pin.**\\
 +\\
  
 <​html>​ <​html>​
Line 17: Line 17:
 </​html>​ </​html>​
  
- +---- 
-**== Technical documentation ​==============================**+==== Technic ​====
  
 The board is designed with an 6.8kOhm resistor connected to 3,3V and the reset pin (of the Atmega chip) and a 4,7nF capacitor connected to the GPIO18 pin of the Raspberry Pi. It is possible to use the autoreset function with the GPIO18 instead the DTR line. A modification of the Arduino IDE and the avrdude that pull the pin 18 in the right moment do the trick. The board is designed with an 6.8kOhm resistor connected to 3,3V and the reset pin (of the Atmega chip) and a 4,7nF capacitor connected to the GPIO18 pin of the Raspberry Pi. It is possible to use the autoreset function with the GPIO18 instead the DTR line. A modification of the Arduino IDE and the avrdude that pull the pin 18 in the right moment do the trick.
Line 27: Line 27:
  
 The Serial Baud rate of the Arduino Uno is to high so one have to burn the bootloader of an Arduino Duemilanove/​ATmega328 on the chip. That is shown here: The Serial Baud rate of the Arduino Uno is to high so one have to burn the bootloader of an Arduino Duemilanove/​ATmega328 on the chip. That is shown here:
-[[arduino_clones:​bootloader|Burning the Bootloader]]+[[avr_&​_bootloader:​bootloader|Burning the Bootloader]]
  
 {{ :​raspberry_boards:​paper-duino-pi_0956.jpg?​300 |}} {{ :​raspberry_boards:​paper-duino-pi_0956.jpg?​300 |}}
Line 38: Line 38:
 For the header of the board a standard 26 pin header is used - just remove all unnecessary pins (keep the plastic). For the header of the board a standard 26 pin header is used - just remove all unnecessary pins (keep the plastic).
  
 +----
 +==== Image & software modification ====
  
-**== IDE modification =====================================**+That image is based on the [[http://​www.raspbian.org/​|Raspbian wheezy 3.6]] including a reset and shutdown button on GPIO 22, the Arduino IDE with the GPIO autoreset on pin 18, PD-extended and the Firmata:​\\ 
 +[[http://​dernulleffekt.de/​images/​paper-duino-pi_24jan2014.img.7z|paper-duino-pi_24jan2014.img.7z]]\\ 
 +older version:​\\ 
 +[[http://​dernulleffekt.de/​images/​paper-duino-pi_15nov2013.img.7z|paper-duino-pi_15nov2013.img.7z]]\\ 
 +**Without the paper-duino-pi_v3.2 or a button connected to the GPIO pin 22 the Raspberry Pi will immediatly shut down after booting.**
  
-The easiest way is to download the setup for the AlaMode board+All modifications are specified here:\\ 
-[[http://​www.wyolum.com/​downloads/​alamode-setup.tar.gz|alamode-setup.tar.gz]] +[[raspberry_boards:duino-pi_modification|Paper-Duino-Pi - modifications]]\\
-unpack it and run the setup.\\ +
-It will install a new version of the avrdude and will also do the Linux modifications,​ described as below.\\+
  
-For doing the following changes you have to type in the terminal:\\ +loginpi\\ 
-''​sudo leafpad /​usr/​share/​arduino/​hardware/​arduino/​boards.txt''​\\ +passwordraspberry\\
-than change the fuses:\\ +
-''​alamode.bootloader.high_fuses=0xde''​\\ +
-in:\\ +
-''​alamode.bootloader.high_fuses=0xda''​\\ +
-the baud rate should be set to 57600:\\ +
-''​alamode.upload.speed=57600''​\\ +
-and change the name of the board:\\ +
-''​alamode.name=Paper-Duino-Pi''​\\ +
-than save it!+
  
-After resetting the Raspberry Pi a new serial port: dev/ttyS0 and a new board: Paper-Duino-Pi will appear in your Arduino IDE. For uploading a program use the Paper-Duio-Pi board and the ttyS0 port.+---- 
 +==== Paper-PCBs ==== 
 +**Version 3:**\\ 
 +{{:​raspberry_boards:​paper-duino-pi_32.jpg?300|}}
  
-Thanks for the avrdude modification to: +{{:raspberry_boards:paper-duino-pi_32.xcf.zip|Paper-Duino-Pi_v3.2}}
-[[http://wyolum.com/​projects/​alamode/​|Wyolum.com]]+
  
-**== Linux modification ===================================** +**Version 2:**\\ 
- +{{:​raspberry_boards:​paper-duino-pi_22.jpg?​300|}}
-For using the serial line of the Raspberry Pi you have to make some small modifications (just if you hadn't run the alamode setup): +
- +
-In the file: /​boot/​cmdline.txt\\ +
-change:\\ +
-''​dwc_otg.lpm_enable=0 console=ttyAMA0,​11520 kgdboc=ttyAMA0,​115200 console=tty1 root=/​dev/​mmcblk0p2 rootfstype=ext4 rootwait''​\\ +
-to:\\ +
-''​dwc_otg.lpm_enable=0 console=tty1 root=/​dev/​mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait''​ +
- +
-And in the file: /​etc/​inittab\\ +
-comment out:\\ +
-''​2:​23:​respawn:/​sbin/​getty -L ttyAMA0 115200 vt100''​\\ +
-to: \\ +
-''#​2:​23:​respawn:/​sbin/​getty -L ttyAMA0 115200 vt100''​\\ +
- +
-Because the Arduino IDE is not able to find the tty connection of the serial port (ttyAMA0) you have to mirror it to ttyS0. That is to be done with a file in: /​etc/​udev/​rules.d\\ +
-then name it (the number is according to the order in which the rules were loaded):​\\ +
-''​85-paperduinopi.rules''​\\ +
-and put in the following line:\\ +
-''​KERNEL=="​ttyAMA0",​ SYMLINK+="​ttyS0",​GROUP="​dialout",​MODE:​=0666''​ +
- +
-More informations:​\\ +
-[[http://​www.andremiller.net/​content/​raspberry-pi-and-arduino-via-gpio-uart|www.andremiller.net]] +
- +
-[[http://​codeandlife.com/​2012/​07/​29/​arduino-and-raspberry-pi-serial-communication/​|www.codeandlife.com]] +
- +
- +
-**== Paper-PCBs ===========================================** +
- +
-{{:​raspberry_boards:​paper-duino-pi_22.jpg?​100|}}+
  
 {{:​raspberry_boards:​paper-duino-pi_22_publish.xcf.zip|Paper-Duino-Pi_v2.1}} {{:​raspberry_boards:​paper-duino-pi_22_publish.xcf.zip|Paper-Duino-Pi_v2.1}}
  
-**== Components ===========================================**+---- 
 +==== Parts ==== 
 +** for version 2:**
   * Atmega328   * Atmega328
-  * IC socket +  * 28 pin IC socket 
-  * low current LEDs+  * 4x low current LEDs
   * crystal 16MHz   * crystal 16MHz
-  * capacitors 100nF +  * 2x capacitors 100nF 
-  * capacitors 22pF +  * 2x capacitors 22pF 
-  * capacitor ​4.7nF +  * capacitor ​47nF 
-  * resistors: 3x 2kOhm, ​4x 1kOhm, 1x 6.8kOhm, 1x 10kOhm +  * resistors: 3x 2kOhm, ​3x 1kOhm, 1x 6.8kOhm 
-  * reset button+  * reset button
   * headers   * headers
-  * 2x13 pin header +  * 2x13 pin header 
-  * pin header+**plus these for version 3:** 
 +  * a second reset button 
 +  * resisters:​1x 330Ohm, 1x 10kOhm ​
  
-**=========================================================**+---- 
 +==== License ​==== 
 + 
 +The Paper-Duino-Pi was designed by **Wolfgang Spahn** 2012-14.\\ 
 +It is licensed under a [[http://​creativecommons.org/​licenses/​by-nc-sa/​4.0/"​|Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License]]. 
 + 
 +<​html>​ 
 +<a rel="​license"​ href="​http://​creativecommons.org/​licenses/​by-nc-sa/​4.0/"><​img alt="​Creative Commons License"​ style="​border-width:​0"​ src="​https://​i.creativecommons.org/​l/​by-nc-sa/​4.0/​88x31.png"​ /></​a>​  
 +</​html>​
  
 +----