https://github.com/radames/rap-robot
https://github.com/radames/rap-robot
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/radames/rap-robot
- Owner: radames
- Created: 2017-11-10T07:58:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-16T20:24:49.000Z (over 8 years ago)
- Last Synced: 2025-03-24T10:51:34.867Z (over 1 year ago)
- Language: Python
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rap-robot
1. Download Raspbian from [raspberrypi](https://www.raspberrypi.org/downloads/raspbian/)
2. Install the thermal printer based on Adafruit tutorials [[1]](https://learn.adafruit.com/networked-thermal-printer-using-cups-and-raspberry-pi/connect-and-configure-printer),[[2]](https://learn.adafruit.com/instant-camera-using-raspberry-pi-and-thermal-printer/system-setup)
Libraries:
```bash
sudo apt-get update
sudo apt-get install libcups2-dev libcupsimage2-dev git build-essential cups system-config-printer
```
Custom Driver from Adafruit:
```bash
git clone https://github.com/adafruit/zj-58
cd zj-58
make
sudo ./install
```
Set up the defaul printer to be the thermal printer:
```bash
sudo lpadmin -p ZJ-58 -E -v serial:/dev/ttyUSB0?baud=9600 -m zjiang/ZJ-58.ppd
sudo lpoptions -d ZJ-58
```
3. Install tensorflow 1.3 compiled for Python 2.7
```bash
git clone https://github.com/DeftWork/rpi-tensorflow.git
cd rpi-tensorflow
pip2 install tensorflow-1.3.0-cp27-none-linux_armv7l.whl
```
4. Python dependencies
```bash
pip install subprocess32 unidecode twython twilio pygame python-escpos
```