In this Programming article I will discuss what is Singleton Design pattern. I will also show you how to create a Singleton class in Java without using any framework like Spring.
Let’s make an Obstacle avoiding Robot. In this brief tutorial I will show how to build a perfect obstacle avoiding (run-away) robot using Arduino. I have used an Ultrasonic sensor mounted on a Servo Motor and a motor Shield for this project. The motor driver is Adafruit Motor Shield. This single shield is capable of controlling upto 4 DC motos and 1 servo motor simultaneously. Download link for the Arduino Robot Project Code (Arduino Sketch along with the required libraries) is available below. In this tutorial, I have not highlighted the instructions to setup the Robotic chassis along with BO Motors, Caster Wheel, Arduino Board etc. Rather I have concentrated on the how to extend the circuits to make it usable, connect the circuits and write the Arduino Sketch to make the Motors rotate by sensing the distance from Obstacles. When I created my first Arduino based Obstacle avoiding Robot, I was pretty much done with the mechanical connection, before getting stuck into the circuitry and programming. These were the 2 areas, where I struggled a lot and had to refer multiple tutorials to get a complete road-map. Here I will try to address those problems, which are often encountered by Newbies.
I had an issue with the WordPress Video Gallery Plugin. The Video Categories page was getting redirected to Blog Categories page. Finally I got the solution to this problem from WordPress Support forum.
Last month I have struggled a lot to read value of checked radio button. The default .val() method doesn’t work in many of the versions of various browsers. I’m feeling to write a very short blog on the cross browser solution.