Category : hardware

Abstract This article is a recollection of fun memories from the Guinness World Record Scuba Diving Event with Allen “The Grouper” Sherrod, and my personal involvement in building an underwater live streaming system to broadcast the event live to the world. In the end, Allen Sherrod broke the world record! Here’s how we did it. ..

Read more

Install VLC Enable the camera and select finish, reboot. Start streaming Add contents: Save, test it: If it works, stop it again, Control + C Create a startup script with contents: Save it. Make it executable Add it to always start up Reboot and test that it starts up Reboot and test that it starts ..

Read more

I recommend this: https://github.com/cubieplayer/Cubian/wiki/Install-Cubian Grab the HDMI image from http://cubian.org/downloads/ , like this one: http://cubieplayer.github.io/static_files/torrents/Cubian-nano-x1-a20-cubietruck-hdmi.img.7z.torrent Download it. Unzip it. Burn the .img file to a USB drive using Win32DiskImager: put it in the cubietruck, boot with it go through the setup, advanced, enable ssh server, save, exit Do everything here as root Check your version Edit the sshd confi ..

Read more

# install pip sudo su cd curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py pip –version # install DHT libraries sudo pip install Adafruit_Python_DHT # https://github.com/adafruit/Adafruit_Python_DHT/issues/63 sudo apt-get update sudo apt-get install rpi.gpio sudo apt-get install python3-rpi.gpio sudo apt-get install build-essential python3-dev sudo apt-get install python3-setuptools sudo apt-get install libzbar-dev libzbar0 git clone https://github.com/adafruit/Adafruit_Python_DHT.git cd Adafruit_Python_DHT sudo ..

Read more

Without the library, you can get this error: Could not locate the Phidget C library (libphidget22java.so). Make sure it is installed, and add it’ s path to LD_LIBRARY_PATH. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1320) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879) ~[spring-beans-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] ..

Read more

/home/pi/live.sh #!/bin/bash # Rotation # raspivid –nopreview –rotation 180 -o – -t 9999999 -b 3000000 -w 1280 -h 720 | cvlc –ffmpeg-hw -vvv stream:///dev/stdin –sout ‘#rtp{sdp=rtsp://:8554}’ :demux=h264   raspivid –nopreview -o – -t 9999999 -b 3000000 -w 1280 -h 720 | cvlc –ffmpeg-hw -vvv stream:///dev/stdin –sout ‘#rtp{sdp=rtsp://:8554}’ :demux=h264 /etc/init.d/startcam #! /bin/sh ### BEGIN INIT INFO ..

Read more

You don’t need any pull up or pull down resistors, use  pull_up_down=GPIO.PUD_DOWN instead. The setup: The wiring: The test program: test.py # Door open/closed detector # # (c) Alan Lupsha 2020 # wiki.lupsha.com import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) # GPIO Numbers instead of board numbers MAGNET_GPIO = 18 GPIO.setup(MAGNET_GPIO, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # GPIO ..

Read more

Also see: https://wiki.lupsha.com/raspberry-pi-3-setting-up-a-phidgets-voltage-reader-2/ #!/bin/bash # # hits the sensorreading app and grabs sensor raw value, and computes it, per phidgets 1117 raw to voltage # # Alan Lupsha 10/20/2019 # # hit the API and get the reading # # ex: {“userCommand”:”/sensor/0″,”errors”:[],”workLog”:[],”port”:{“index”:0,”value”:584}} # READING=`curl –silent -H “Accept: application/json” http://10.1.10.12:50003/sensor/0` echo “API reading: $READING” # # ..

Read more

Turns out you need a powered USB hub, otherwise the Pi 3 won’t see the Phidgets 8/8/8 board. The setup: Pi3 Phidgets 8/8/8 board ( https://www.phidgets.com/?tier=3&prodid=16 ) Phidgets 1117 voltage sensor https://www.phidgets.com/?&prodid=88 Rosewill self-powered 7 port USB hub https://www.newegg.com/rosewill-rhub-300-usb/p/N82E16817182057 Once a self-powered USB hub is provided, the Phidgets IO board is detected: Setting up the Pi: sudo su apt-get ..

Read more

Listed at: https://packages.debian.org/stretch/firmware-misc-nonfree Need: firmware-misc-nonfree_20161130-5_all.deb see: https://packages.debian.org/stretch/all/firmware-misc-nonfree/download Get the deb file from: http://ftp.us.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-misc-nonfree_20161130-5_all.deb Copy firmware-misc-nonfree_20161130-5_all.deb to a USB stick. On the linux box: Find your USB stick: sudo fdisk -l In my case it’s /dev/sdf1 Mount it and run the file mkdir /mnt/myusb mount /dev/sdf1 /mnt/myusb cp /mnt/myusb/firmware-misc-nonfree_20161130-5_all.deb /root cd /root deb -i firmware-misc-nonfree_20161130-5_all.deb Find ..

Read more

The board: The board I worked with is a 16 channel relay board: https://www.sainsmart.com/products/imatic-rj45-ethernet-wi-fi-control-board-with-integrated-16-ch-dc-12v-relay I believe this process should also work with the 8 channel relay  board: https://www.sainsmart.com/products/imatic-rj45-tcp-ip-remote-control-board-with-8-ch-relay The relay board has this ethernet card: The problem: The problem is that the board comes pre-programmed with the IP 192.168.1.4. The solution: The following steps show you how ..

Read more