Skip to content

bugbiter/applied-cam-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

applied-cam-demo

Demo for camera tilt & pan using Google PubSub for angle input Ubuntu 18.4 on Raspberry Pi 3 B+ Servo: https://www.servocity.com/hs-225mg

sudo apt-get install -y python3-pip sudo apt-get install build-essential libssl-dev libffi-dev python-dev #virutalenv .. pip3 install wiringpi pip3 install google-cloud-pubsub

for GPIO:

Based on /proc/cpuinfo, create /root/fake-cpuinfo: processor : 0 BogoMIPS : 38.40 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 1 BogoMIPS : 38.40 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 2 BogoMIPS : 38.40 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 3 BogoMIPS : 38.40 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

Hardware: BCM2837 Revision: a020d3

sudo mount -v --bind /root/fake-cpuinfo /proc/cpuinfo #when done: sudo umount -v /proc/cpuinfo

#@boot, to run: sudo mount -v --bind /root/fake-cpuinfo /proc/cpuinfo sudo ~/applied/applied-cam-demo/env/bin/python3 servotest.py

#systemd config: copy demo.service to /etc/systemd/system, chmod 664 #verify: sudo systemctl start demo.service #for test systemctl status demo.service sudo systemctl enable demo.service #start at boot

wlan config:

Connect Pi to your cabled network. Open a command line (e.g. Cmder) and connect with ssl:

ssh ubuntu@ Enter password (in Keybase).

cd /etc/netplan/ ls -l Locate the file similar to -rw-r--r-- 1 root root 666 May 15 22:00 50-cloud-init.yaml Backup the file, and edit cp 50-cloud-init.yaml 50-cloud-init.yaml.bak sudo nano 50-cloud-init.yaml Find network:wifis:wlan0:access-points: and edit the name and password to your required wifi. Save and exit.

Test and apply:

sudo netplan --debug try sudo netplan --debug generate sudo netplan --debug apply sudo reboot

Disconnect the network cable, wait for reboot to finish. Connect with ssh ubuntu@ to verify.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages