Skip to content

hacking-papa/nuricame-pi

Repository files navigation

nuricame-pi

Make a contour by pictures, Raspberry Pi version.

How to Setup

Run setup.sh or see below.

LiPo SHIM

RPi+LiPoSHIM

To use LiPo battery, implement Pimoroni LiPo SHIM to Raspberry Pi.

VBAT+ and GND are used for charging. EN can be pulled to ground to cut the power output from LiPo SHIM.

chmod +x setup_LiPoSHIM.sh
./setup_LiPoSHIM.sh

Config: /etc/cleanshutd.conf

Camera

IMG_2124

Arducam 5MP OV5647 is Motorized Focus Camera Sensor for Raspberry Pi.

Append the following line to /boot/config.txt.

dtparam=i2c_vc=on

Install packages.

sudo apt install python3-opencv
sudo apt install python3-pygame
sudo reboot

I2C Display

IMG_2123

Waveshare 1.3inch LCD HAT is 240x240 diagonal display with 1 joystick and 3 buttons via SPI interface.

sudo apt install wiringpi

Install BCM2835 driver.

wget -O - http://www.airspayce.com/mikem/bcm2835/bcm2835-1.62.tar.gz | tar zxvf -
cd bcm2835-1.62
./configure
make
sudo make check
sudo make install

Add the following 2 lines to /etc/modules.

i2c-dev
i2c-bcm2708

sudo raspi-config to enable I2C and SPI.

Thermal Printer

We use Paperang.

sudo apt install python3-bluez
sudo apt install libatlas-base-dev
sudo apt install libjasper-dev
sudo apt install libqtgui4
sudo apt install libqt4-test
sudo apt install python3-pyqt5
sudo apt install python3-skimage

Find libatomic.so.

sudo find / -type f -name '*atom*.so*'

Run with LD_PRELOAD.

LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0 python3

Find Paperang's Bluetooth MAC address, like 00-15-83-55-5C-48.

import bluetooth

nearby = bluetooth.discover_devices(lookup_names=True)
for addr, name in nearby:
    print(f"{addr} -> {name}")

Thanks, BroncoTc/python-paperang.

Enclosure

design image IMG_2139

(Optional) Visual Studio Code

wget -qO - https://packagecloud.io/headmelted/codebuilds/gpgkey | sudo apt-key add -
sudo su
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
exit

Misc

LICENSE

The software is distributed freely under GOOD DADDY LICENSE, see LICENSE.md.

About

Make a contour by pictures, Raspberry Pi version.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published