Showing posts with label Servo Motor. Show all posts
Showing posts with label Servo Motor. Show all posts

Wednesday, June 15, 2016

How to Design Servo DC Motor Have 1024 Steps

Eltronicschool. - There are many device application that used servo motor because this motor can be used with more cheaper that used stepper motor. When we used stepper motor, it is can rotate 360°, 1 step = 1,8° (mostly). Servos can rotate only from 0° to 180°, 1 step = 1°. But why are they working this way, inside them we will find potentiometer which rotates as servo (up to 180°), but have 1024 steps.

Source: Instructable

And how to design servo DC motor have 1024 steps? please follow this step according article that published from Intructables site like below.

Parts that I've used to make a prototype version:

  • Servo (normal, you can also use microservo),
  • Arduino and USB cable,
  • H-bridge (I have L293D, any other will work too),
  • 100nF capitator (optonal, symbol: 104),
  • Breadbord,
  • Wires,
  • Soldering iron and small screwdriver.

Firstly, let's prepare servo:

Open it and remove the electronics. Leave the potentiometer and DC motor. If your engine don't have capitator I prefer to solder one to it, that is not needed, but with capitator your motor will have more power.


Than solder the wires to engine and potentiometer, so you can put them into breadbord. Please read more this How to Design Servo DC Motor Have 1024 Steps here.

Monday, May 11, 2015

Solar Tracker Based on Arduino Uno with Servo Motor

Eltronicschool. - One application of system based on Arduino is used to control motor servo for solar tracker. This application is simply and arrange from the Arduino UNO board, a servomotor, 2 LDRs and 2 resistors to rotate the solar panel towards the Sun or a source of light.

In this article we will show you the circuit schematic of Solar Tracker Based on Arduino Uno with Servo Motor, the description, and also the basic listing program of this application.

Circuit Schematic

arduino solar tracker circuit
Figure 1. Solar Tracker Based on Arduino Uno with Servo Motor
(Source: Electronischematic)
Description

Circuit schematic like in figure 1 above is Solar Tracker Based on Arduino Uno with Servo Motor.  This circuit using Arduino Uno board, LDR module, and Servo Motor. This circuit is using a standard servo that can rotate approximately 180 degrees (90° in each direction) and is controlled using the included Arduino’s Servo Library. 

Inside the code we use the “pos” variable to set the initial position of the servo to 90, the mid position. The 2 LDRs are connected to pin A0 and A1 on the board. The “tolerance” variable is used for allowing a small tolerance otherwise the solar panel would be continously adjusting its position.

In the setup() function we set the pins were the LDR are connected as INPUTs and position the servo motor at 90° then wait for a 2 seconds before the code execution inside the loop(). In the loop() we read the values received from our 2 sensors and adjust the solar panel based on these values.

Listing Program
  • Solar Tracker Based on Arduino Uno with Servo Motor Listing Program [Link]