Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Interfacing analog Joystick with AVR

In this tutorial, we are going to learn something interesting which is already sued by many people to play games. Yes, the analog joystick which is used to control the motion of a vehicle or a character. They are also used to control the movement of an RC car or maybe an RC helicopter. Usually, all the joysticks are two axis joysticks. The ‘y’ axis is used to move the object forward or backward while the ‘x’ axis is generally used to move the object left or right. These joysticks are available both in digital and analog outputs. The digital joystick gives pulse width modulated output but is more costly than the analog output joystick. In this tutorial, we will get the input from the joystick from both the ‘x’ and the ‘y’ axis, convert the analog data into a digital value and then display the data into LCD.  Before starting the tutorial, I will recommend you to read the LCD tutorial, if you haven’t, which can be found in the AVR tutorial section. Also, before displaying the data, there… Continue reading

Feel the Difference with Servo’s Joystick Control

Have you ever inspired by any walking servo or pixel rocket before? Did you have the urge to build a similar or even better prototype for yourself? Since the servo is the easiest to be controlled, you should try to manipulate it into your joystick control. Yeah, your task for today is to create a simple joystick control with a servo over a USB connection. Let’s start with the hardware part first, and what you need to do is: You need to make sure that the JR Sport ST47 standard servo is wired directly to Arduino’s 5V power and ground. Also, connect the servo’s control wire to Digital pin #2. The Arduino and the standard USB joystick need to be connected to a PC with a USB cable as well. The software part includes a Python script (Interpreting inputs from the joystick) and the Arduino sketch. A common joystick normally has six different axes. The Python’s responsibility is to sense inputs from each axis, and then print the values of stick positions. The joystick axis will reports a range of… Continue reading