I am a Computer Science Student at Delaware State University. I started this blog to document progress on my projects using Raspberry pi 2. Feel free to follow along and comment on any projects. Your ideas are welcome! Thanks.
The above clip shows the Cisco95 moving by following the commands and also giving the live feed on my laptop.
I connected my Rpi to my laptop using the remote desktop connection on my laptop. I used my Iphone's hotspot while connecting my pi and i am gonna keep using my hotspot when ever i use my pi connected to my laptop so that the IP address of my pi doesn't change ever time i login in different WiFi settings.
Steps to connect my Rpi to laptop:
1. Turn on your pi, your laptop and your personal Hotspot in your Iphone.
2. Connect your pi and laptop to your Hotspot by selecting your iphone from the WiFi settings on your laptop and your pi.
3. Enter the password when asked.
4. when all the desired devices are connected to personal Hotspot, type the following command in your pi terminal for the IP address:
Your IP address should be in the spot where there is a number highlighted with yellow highlighter.
5. Go to your Laptop, open the remote desktop connection and connect your pi to your laptop by typing your pi's IP address where it asks for computer and click connect.
6. Turn off the pi and turn it back on and see if the IP address is still the same. It should be the same anytime you connect your pi to your personal Hotspot.
I made the robot turn a 360 for starters: one motor moving forward and the other one moving backward.
I used a python code to make the robot go forward, reverse, left and right using specific keys on the keyboard. I also combined the distance finder code with the motors code to make the robot sense the distance every time i press a key for it to move.
I built a compartment on top of the rover which stores the battery, breadboard and motor drive controller board. I used a cardboard box and made wholes on the top and sides for the wires to pass through. I screwed the cardboard box to the rover on the bottom.
I used the Ultra Sonic Range Finder to help the robot detect the obstacle.
I connected the sensor to my Rpi using the bread board, 2 resistors (1k) and some male to female jumper wires. I also wrote the below code that detects the obstacle and outputs the distance from the sensor to the obstacle.
I wrote a python program using the OpenCV which detects the face and takes a picture of it. I included the above command in the python file to give the live stream and use it for facial detection.
I installed Gstreamer and OpenCV in my raspberry pi for the video surveillance and facial detection:
I got the code for OpenCV from:
http://askubuntu.com/questions/537268/installing-opencv-in-ubuntu-14-04
The following link have a data for the xml file:
https://raw.githubusercontent.com/shantnu/webcam-face detect/master/haarcascade_frontalface_default.xml
For Gstreamer installation:
sudo apt-get install gstreamer1.0