Make a contour by pictures, Raspberry Pi version.
Run setup.sh
or see below.
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
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
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
.
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.
wget -qO - https://packagecloud.io/headmelted/codebuilds/gpgkey | sudo apt-key add -
sudo su
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
exit
The software is distributed freely under GOOD DADDY LICENSE, see LICENSE.md.