Difference between revisions of "Raspberry Pi"
(Created page with " == POE == For running these devices, many times it's desirable to get power delivered over the network wire, less cables to pull. There are pre-fab and DIY hats that can b...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | A number of the OpenTHC projects build on top of the Raspberry Pi platform. | ||
+ | Projects such as EMC and POS use these tools for physical-world integrations. | ||
+ | |||
+ | Mostly, we don't care what case or hardware you choose for the Pi. | ||
+ | Many of these tools will work on other similar platforms (eg: Banana Pi). | ||
+ | |||
+ | == Operating System == | ||
+ | |||
+ | Mostly we depend on Raspbian, recommend using a 16GiB MicroSD. | ||
+ | |||
+ | View downloads at https://www.raspberrypi.org/downloads/raspbian/ | ||
+ | |||
+ | curl -vL https://downloads.raspberrypi.org/raspbian_lite_latest > raspbian.zip | ||
+ | unzip raspbian.zip | ||
+ | dd bs=1M if=2016-02-26-raspbian-jessie-lite.img of=/dev/mmcblk0 | ||
+ | |||
+ | Then boot the Raspberry Pi | ||
+ | |||
+ | sudo -i | ||
+ | apt-get update ; apt-get upgrade | ||
+ | raspi-config | ||
+ | |||
+ | |||
+ | == Cases == | ||
+ | |||
+ | * https://www.amazon.com/Ceetech-Raspberry-Aluminum-Enclosure-Compatible/dp/B07GH4NK2C/ref=pd_day0_hl_147_7?_encoding=UTF8&pd_rd_i=B07GH4NK2C&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT | ||
+ | * https://www.amazon.com/Unistorm-Raspberry-Model-Aluminum-Compatible/dp/B079CF5FNX/ref=pd_day0_hl_147_13?_encoding=UTF8&pd_rd_i=B079CF5FNX&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT | ||
+ | * https://www.amazon.com/Raspberry-Protective-Enclosure-Cooling-Heatsink/dp/B072LXCWSS/ref=pd_day0_hl_147_15?_encoding=UTF8&pd_rd_i=B072LXCWSS&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT | ||
+ | * https://www.amazon.com/ZkeeShop-Protective-Aluminum-Compatible-Raspberry/dp/B078ZZ1499/ref=pd_day0_hl_147_17?_encoding=UTF8&pd_rd_i=B078ZZ1499&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT | ||
+ | * https://www.amazon.com/SODIAL-Aluminum-Enclosure-Replacement-Raspberry/dp/B07DXL3FZT/ref=pd_sbs_194_4?_encoding=UTF8&pd_rd_i=B07DXL3FZT&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3 | ||
+ | * https://www.amazon.com/GeekTeches-Aluminum-Raspberry-Model-Ultra-Thin/dp/B07HVLWC9L/ref=pd_sbs_194_5?_encoding=UTF8&pd_rd_i=B07HVLWC9L&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3 | ||
+ | * https://www.amazon.com/Aluminum-Case-Raspberry-Heatsinks-Enclosure/dp/B07G28CKJK/ref=pd_sbs_194_27?_encoding=UTF8&pd_rd_i=B07G28CKJK&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3 | ||
+ | * https://www.amazon.com/Eleduino-Raspberry-Aluminum-Enclosure-Heatsinks/dp/B01LRSX4W4/ref=pd_sbs_194_34?_encoding=UTF8&pd_rd_i=B01LRSX4W4&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3 | ||
+ | * https://www.amazon.com/Raspberry-Touchscreen-Input-Display-Screen/dp/B07HF4SFMT/ref=pd_sbs_194_38?_encoding=UTF8&pd_rd_i=B07HF4SFMT&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3 | ||
+ | |||
+ | |||
+ | === Cases + Touch Screen === | ||
+ | |||
+ | * https://www.amazon.com/SmartiPi-Official-Raspberry-Touchscreen-Display/dp/B01HV97F64/ref=pd_sbs_194_15?_encoding=UTF8&pd_rd_i=B01HV97F64&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3 | ||
+ | * https://www.amazon.com/Raspberry-Touchscreen-Input-Display-Screen/dp/B07HF4SFMT/ref=pd_sbs_194_38?_encoding=UTF8&pd_rd_i=B07HF4SFMT&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3 | ||
+ | |||
+ | |||
+ | == Printing == | ||
+ | |||
+ | Please also see the instructions in https://github.com/openthc/rpi | ||
+ | |||
+ | apt-get install cups | ||
+ | |||
+ | * http://www.howtogeek.com/169566/how-to-turn-a-raspberry-pi-into-a-google-cloud-print-server/ | ||
+ | * https://support.google.com/a/answer/2906017?hl=en | ||
+ | |||
+ | === Configure CUPS === | ||
+ | |||
+ | * Add Printer | ||
+ | * Select 'Share This Printer' | ||
+ | * Model: 'Zebra ZPL Label Printer (en)' | ||
+ | * Default Options: Set Page Size - 2.25 x 1.25 | ||
+ | * Fit to Page: Un-Check | ||
+ | * Set Scaling to 100% | ||
Line 7: | Line 66: | ||
* https://thepihut.com/collections/raspberry-pi-hats/products/pipoe-switch-hat-power-over-ethernet-for-raspberry-pi | * https://thepihut.com/collections/raspberry-pi-hats/products/pipoe-switch-hat-power-over-ethernet-for-raspberry-pi | ||
+ | * https://amzn.to/2Qb07vN | ||
+ | |||
+ | |||
+ | == Breakout Boards == | ||
+ | |||
+ | * http://rasp.io/breakout/ | ||
+ | * https://www.amazon.com/Elegoo-tie-points-breadboard-T-Cobbler-Raspberry/dp/B01E93M4P2/ref=sr_1_110?s=pc&ie=UTF8&qid=1482951442&sr=1-110&keywords=raspberry+pi+3 | ||
+ | * https://www.amazon.com/dp/B01FE9EQ88/ref=pd_luc_rh_sim_01_04_t_img_lh?_encoding=UTF8&psc=1 | ||
+ | * https://www.amazon.com/SunFounder-Modules-Sensor-Raspberry-Extension/dp/B014PF05ZA/ref=sr_1_27?s=pc&ie=UTF8&qid=1482951098&sr=1-27&keywords=raspberry+pi+3 | ||
+ | * https://www.amazon.com/dp/B017C54VZA/ref=pd_luc_rh_sbs_02_01_t_img_lh?_encoding=UTF8&psc=1 | ||
+ | * https://www.amazon.com/Arduino-Raspberry-Kuman-Projects-Tutorials/dp/B016D5L5KE/ref=pd_sim_147_1?_encoding=UTF8&psc=1&refRID=JSAV4DAGTAE2KRVZFPQ5 | ||
+ | |||
+ | |||
+ | == Serial == | ||
+ | |||
+ | apt install python-serial | ||
+ | |||
+ | * http://pyserial.readthedocs.io/en/latest/shortintro.html | ||
+ | |||
+ | View the tty Settings | ||
+ | |||
+ | for x in /dev/ttyUSB*; do echo "Port: \$x"; stty --file=\$x --all; done | ||
+ | |||
+ | Configure the tty settings, here it's basically 9600,8,n,1 | ||
+ | |||
+ | stty --file=/dev/ttyUSB0 9600 cs8 -cstopb -parenb | ||
+ | |||
+ | See `man stty` or https://unix.stackexchange.com/questions/242778/what-is-the-easiest-way-to-configure-serial-port-on-linux for details. | ||
+ | |||
+ | |||
+ | == IR == | ||
+ | |||
+ | * https://www.stavros.io/posts/how-turn-your-raspberry-pi-infrared-remote-control/ | ||
+ | * http://www.raspberry-pi-geek.com/Archive/2015/10/Raspberry-Pi-IR-remote |
Revision as of 21:47, 3 December 2019
A number of the OpenTHC projects build on top of the Raspberry Pi platform. Projects such as EMC and POS use these tools for physical-world integrations.
Mostly, we don't care what case or hardware you choose for the Pi. Many of these tools will work on other similar platforms (eg: Banana Pi).
Contents
Operating System
Mostly we depend on Raspbian, recommend using a 16GiB MicroSD.
View downloads at https://www.raspberrypi.org/downloads/raspbian/
curl -vL https://downloads.raspberrypi.org/raspbian_lite_latest > raspbian.zip unzip raspbian.zip dd bs=1M if=2016-02-26-raspbian-jessie-lite.img of=/dev/mmcblk0
Then boot the Raspberry Pi
sudo -i apt-get update ; apt-get upgrade raspi-config
Cases
- https://www.amazon.com/Ceetech-Raspberry-Aluminum-Enclosure-Compatible/dp/B07GH4NK2C/ref=pd_day0_hl_147_7?_encoding=UTF8&pd_rd_i=B07GH4NK2C&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT
- https://www.amazon.com/Unistorm-Raspberry-Model-Aluminum-Compatible/dp/B079CF5FNX/ref=pd_day0_hl_147_13?_encoding=UTF8&pd_rd_i=B079CF5FNX&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT
- https://www.amazon.com/Raspberry-Protective-Enclosure-Cooling-Heatsink/dp/B072LXCWSS/ref=pd_day0_hl_147_15?_encoding=UTF8&pd_rd_i=B072LXCWSS&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT
- https://www.amazon.com/ZkeeShop-Protective-Aluminum-Compatible-Raspberry/dp/B078ZZ1499/ref=pd_day0_hl_147_17?_encoding=UTF8&pd_rd_i=B078ZZ1499&pd_rd_r=e08c724e-2ef0-11e9-9785-9966c44d7ef0&pd_rd_w=z9n6p&pd_rd_wg=7UCk9&pf_rd_p=ad07871c-e646-4161-82c7-5ed0d4c85b07&pf_rd_r=N2YBR4P1JKGTP260QXRT&psc=1&refRID=N2YBR4P1JKGTP260QXRT
- https://www.amazon.com/SODIAL-Aluminum-Enclosure-Replacement-Raspberry/dp/B07DXL3FZT/ref=pd_sbs_194_4?_encoding=UTF8&pd_rd_i=B07DXL3FZT&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3
- https://www.amazon.com/GeekTeches-Aluminum-Raspberry-Model-Ultra-Thin/dp/B07HVLWC9L/ref=pd_sbs_194_5?_encoding=UTF8&pd_rd_i=B07HVLWC9L&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3
- https://www.amazon.com/Aluminum-Case-Raspberry-Heatsinks-Enclosure/dp/B07G28CKJK/ref=pd_sbs_194_27?_encoding=UTF8&pd_rd_i=B07G28CKJK&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3
- https://www.amazon.com/Eleduino-Raspberry-Aluminum-Enclosure-Heatsinks/dp/B01LRSX4W4/ref=pd_sbs_194_34?_encoding=UTF8&pd_rd_i=B01LRSX4W4&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3
- https://www.amazon.com/Raspberry-Touchscreen-Input-Display-Screen/dp/B07HF4SFMT/ref=pd_sbs_194_38?_encoding=UTF8&pd_rd_i=B07HF4SFMT&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3
Cases + Touch Screen
- https://www.amazon.com/SmartiPi-Official-Raspberry-Touchscreen-Display/dp/B01HV97F64/ref=pd_sbs_194_15?_encoding=UTF8&pd_rd_i=B01HV97F64&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3
- https://www.amazon.com/Raspberry-Touchscreen-Input-Display-Screen/dp/B07HF4SFMT/ref=pd_sbs_194_38?_encoding=UTF8&pd_rd_i=B07HF4SFMT&pd_rd_r=fa016949-2f01-11e9-b753-7fe8787a53f8&pd_rd_w=YviEb&pd_rd_wg=dkEpF&pf_rd_p=588939de-d3f8-42f1-a3d8-d556eae5797d&pf_rd_r=8C51XF5MZJPJ5E2VY7T3&psc=1&refRID=8C51XF5MZJPJ5E2VY7T3
Printing
Please also see the instructions in https://github.com/openthc/rpi
apt-get install cups
- http://www.howtogeek.com/169566/how-to-turn-a-raspberry-pi-into-a-google-cloud-print-server/
- https://support.google.com/a/answer/2906017?hl=en
Configure CUPS
- Add Printer
- Select 'Share This Printer'
- Model: 'Zebra ZPL Label Printer (en)'
- Default Options: Set Page Size - 2.25 x 1.25
- Fit to Page: Un-Check
- Set Scaling to 100%
POE
For running these devices, many times it's desirable to get power delivered over the network wire, less cables to pull. There are pre-fab and DIY hats that can be attached to the Pi,
- https://thepihut.com/collections/raspberry-pi-hats/products/pipoe-switch-hat-power-over-ethernet-for-raspberry-pi
- https://amzn.to/2Qb07vN
Breakout Boards
- http://rasp.io/breakout/
- https://www.amazon.com/Elegoo-tie-points-breadboard-T-Cobbler-Raspberry/dp/B01E93M4P2/ref=sr_1_110?s=pc&ie=UTF8&qid=1482951442&sr=1-110&keywords=raspberry+pi+3
- https://www.amazon.com/dp/B01FE9EQ88/ref=pd_luc_rh_sim_01_04_t_img_lh?_encoding=UTF8&psc=1
- https://www.amazon.com/SunFounder-Modules-Sensor-Raspberry-Extension/dp/B014PF05ZA/ref=sr_1_27?s=pc&ie=UTF8&qid=1482951098&sr=1-27&keywords=raspberry+pi+3
- https://www.amazon.com/dp/B017C54VZA/ref=pd_luc_rh_sbs_02_01_t_img_lh?_encoding=UTF8&psc=1
- https://www.amazon.com/Arduino-Raspberry-Kuman-Projects-Tutorials/dp/B016D5L5KE/ref=pd_sim_147_1?_encoding=UTF8&psc=1&refRID=JSAV4DAGTAE2KRVZFPQ5
Serial
apt install python-serial
View the tty Settings
for x in /dev/ttyUSB*; do echo "Port: \$x"; stty --file=\$x --all; done
Configure the tty settings, here it's basically 9600,8,n,1
stty --file=/dev/ttyUSB0 9600 cs8 -cstopb -parenb
See `man stty` or https://unix.stackexchange.com/questions/242778/what-is-the-easiest-way-to-configure-serial-port-on-linux for details.