This page describes how to create a simple het cam robot.
If not stated otherwise, the designs and documentation in this repository are made publicly available under a Creative Commons Attribution 4.0 International (CC BY 4.0) License.
Image of the robot.
Biocompatibility is of new untested materials is an important field. This robot is a proposal of an automated het-cam experiment.
- PLA
- stepper motor driver
- stepper motor
- arduino
- raspberry 4
- raspberry hq video camera
- FDM 3D-printer (Prusa MK3, but any model with an similar precision would do)
- Soldering iron
- Hand tools (screwdrivers etc.)
How to make the script run on startup: sudo nano /etc/rc.local
start cam with sudo CAMERA=opencv python3 run.py to open on restricted port 80
How to make the script run on startup: sudo nano /etc/rc.local insert: sudo CAMERA=opencv python3 run.py &
or for additional logging: sudo CAMERA=opencv python3 run.py & > /home/pi/Desktop/log.txt 2>&1
https://blog.miguelgrinberg.com/post/flask-video-streaming-revisited
to start an OpenCV session from bash, you can do this:
$ CAMERA=opencv python3 run.py
From a Windows command prompt you can do the same as follows:
on windows run: $ python run.py CAMERA=opencv $ py -3.7 run.py CAMERA=opencv
or: $ set CAMERA=opencv $ python run.py $ py -3.7 run.py
or on linux with gunicorn: