Posts

Showing posts from May, 2019

Light Tracking Gimbal

Image
Preface Based on my previous project ( Joystick Control Gimbal ), I slightly modified it into a Light Tracking device.  It took me about two days to fine-tune the Light Tracking Gimbal to move smoothly and hold its position while light source is not moving. Goal of this tutorial Let's see the video below to see what's the final result of this tutorial. Gimbal Panel Area There are Top Left, Top Right, Bottom Left, and Bottom Right. In each area, there is a light sensor. Programming Logic: Get reading from 4 photo sensors  I sample each sensor 10 times and then get the average value to ensure the readings are more stable Get average of each side Top side value = (Top left + Top right) / 2 Bottom side value = (Bottom left + Bottom right) / 2 Left side value = (Top left + Bottom left ) / 2 Right side value = (Top right + Bottom right ) / 2 Compare all four sides to see which side has bigger value Move the servo towards the big

A Pan Tilt Gimbal w/ Joystick

Image
In this Arduino tutorial, I will show you how to make A Pan Titl Gimbal with Joystick; plus speed control.  It's quite simple. This Gimbal base is controlled by the joystick and the potentiometer is used to control how fast the SG90 servo would move. 3D printed Gimbal Schematic: In the video, as I turn the potentiometer, the Serial port shows the speed is increased to 9.  You will see the Gimbal base is moving must faster. Also, this video shows you how fast the Gimbal is moving based on the potentiometer value. Watch the Video:  Components:   One Arduino Nano   One Joystick module   One Potentiometer   Two SG90 servo   3D printed Gimbal base Wire Connections:  Connect joystick GND, 5V, VRX to A4, VRX to A3 and SW to D6 pins to Arduino.  Connect 1st SG90 servo VCC to 5V, D2, and GND to Arduino   Connect 2nd SG90 servo VCC to 5V, D4, and GND to Arduino   Connect potentiometer VCC to 5V, A0, and GND to Arduino  That's it! I hope