Showing posts from June, 2016

Photon: A Simple Analog Line Follower

The robots that I build do not stay for long as I dismantle them and use their parts to build other
projects. Actually I do that to save money and whenever my friends ask me to show some of my robots, I am left with nothing. So I decided to build a permanent robot that I can show to my friends and relatives if they ask me to do so. I wanted to keep the robot as cheap and simple as possible so as to not hamper other projects. I decided to build a simple line follower as line followers, though simple, are very entertaining to watch.

SensorsPhoton had to be cheap so I decided to use LDRs and LEDs to build a line sensor. The principle behind its working is very cheap, white reflects light whereas black not so much. I used white LEDs to allow Photon to follow any colored line on a contrasting surface. 

Motors I used geared motors in Photon because they are cheap, provide sufficient torque and draw sufficiently small amounts of current under load.

Brain I had to keep the main circuit cheap so…

How does the Movie Search Engine work?

Recently I put together a Movie Search Engine that has built-in Sentiment Analysis that reads the reviews for the movie and gives the rating accordingly. The rating also takes in some other factors. Its built using php. It was just a fun project and was very quick to build because of some excellent APIs.

The site uses the TMDB API for the posters and OMDB API to get the IMDB ID and the user rating. I used a web scraping to collect user reviews from IMDB using the collected ID. If a movie is searched for the first time on the search engine, it stores its details locally on the server to decrease the load time when the movie is searched for again.

The disadvantage of using 2 different APIs for searching a single movie is that sometimes the poster and the movie doesn't match, but I had to use both the APIs as the OMDB API doesn't allow poster access for free. IMDB doesn't allow its poster to be used.

For the sentiment analysis I used the PhpInsight Library. It was very easy to…