Things we want to achieve:
Let’s build a security camera using Raspberry Pi Zero W and Movidius Neural Compute Stick to recognize a “person” on the video stream
sudo apt-get install -y libusb-1.0-0-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libatlas-base-dev git automake byacc lsb-release cmake libgflags-dev libgoogle-glog-dev liblmdb-dev swig3.0 graphviz libxslt-dev libxml2-dev gfortran python3-dev python-pip python3-pip python3-setuptools python3-markdown python3-pillow python3-yaml python3-pygraphviz python3-h5py python3-nose python3-lxml python3-matplotlib python3-numpy python3-protobuf python3-dateutil python3-skimage python3-scipy python3-six python3-networkx python3-tk libboost-python-dev
cd ~ git clone https://github.com/movidius/ncsdk
cd ~/ncsdk/api/src make sudo make install
cd ~ git clone https://github.com/movidius/ncappzoo cd ncappzoo/apps/hello_ncs_py python3 hello_ncs.py
Output should look something like this:
Hello NCS! Device opened normally. Goodbye NCS! Device closed normally. NCS device working.
pip3 install paho-mqtt sudo pip3 install paho-mqtt
cd ~ git clone https://github.com/debsahu/PiCamMovidius
echo 'deb [trusted=yes] http://dl.bintray.com/yoursunny/PiZero stretch-backports main' | sudo tee /etc/apt/sources.list.d/bintray-yoursunny-PiZero.list
sudo apt update
sudo apt install python3-opencv
python3 -c 'import cv2; print(cv2.__version__)'
sudo modprobe bcm2835-v4l2
cd ~/PiCamMovidius/ocv3 make
Idea: Wouldn’t be cool for many McLighting (RGB LED lighting using NeoPixels) to talk to each other and synchronize?
Implementation: Here is my naive attempt at this, which requires McLighting to be served as stand-alone web-client.
Idea: Get LIVE stock price on ESP8266
Implementation: Develop a simple Arduino library that retrieves live stock prices from RobinHood in JSON format and processes it for ESP8266. In one example, we demonstrate a whole bunch of stock prices scrolling through a dot-matrix display.
Arduino Library: https://github.com/debsahu/RobinhoodAPI
Here is a naive attempt at predicting a particular stock’s price and displaying it on a ESP8266. This algorithm is not the best one out there, but what is being shown here is the ability to port it elsewhere and easily integrate these complex models with micro-controllers (ESP8266) and other devices.
Idea: Control components on Home Assistant directly from ESP8266.
Implementation: Develop an Arduino Library that can be used in various projects without the requirement of setup of a MQTT sensor + automation on HA. This uses RESTful API commands (link).
Arduino HARestAPI Library: https://github.com/debsahu/HARestAPI
Idea: Did you ever want to use ESP8266 to communicate to Home Assistant directly?
Implementation: Here we use a color sensor to read colors and change a RGB light in Home Assistant to the color observed.
Arduino Code: Link
RGB Lights connected to Home Assistant McLighting: https://github.com/toblum/McLighting
Watch liquid Helium boil off to gaseous state from a decommissioned 360 MHz NMR magnet. For every litre of liquid Helium, 750 litres of gaseous Helium is generated. When the Helium boils off the superconductor is no longer a superconductor and this seizes to be a magnet. Watch the steel screwdriver fall off once this happens.
It was a great opportunity provided by Penn State Postoc Society, that both me and Sasmita were able to present a few projects at ExplorationU @ Mount Nittany Middle School. We presented 3 projects that involved light sensors doing some amazing things, particularly a color sensor detecting colors, a gesture detector sensing hand movements and a proximity sensor to look at the distance of hand from sensor. The joy that kids got from interacting with these sensors made our day!