<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stepper motor | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/stepper-motor/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 12 Mar 2022 17:02:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Interface stepper motor with 8051 Trainer Kit parallel port</title>
		<link>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 17:02:09 +0000</pubDate>
				<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[8051 Trainer Kit]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8687</guid>

					<description><![CDATA[<p>AIM: To interface stepper motor with 8051 parallel port and to vary speed of motor, direction of motor. APPARATUS REQUIRED: 8051 Trainer Kit Stepper Motor Interface Board THEORY: A motor in which the rotor is able to assume only discrete stationary angular position is a stepper motor. The rotor motion occurs in a stepwise manner</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/">Interface stepper motor with 8051 Trainer Kit parallel port</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To interface stepper motor with 8051 parallel port and to vary speed of motor, direction of motor.</p>



<p><strong>APPARATUS REQUIRED:</strong></p>



<ul><li>8051 Trainer Kit</li><li>Stepper Motor Interface Board</li></ul>



<p><strong>THEORY:</strong></p>



<p>A motor in which the rotor is able to assume only discrete stationary angular position is a stepper motor. The rotor motion occurs in a stepwise manner from one equilibrium position to next.</p>



<p>The motor under our consideration uses 2 – phase scheme of operation. In this scheme, any two adjacent stator windings are energized. The switching condition for the above said scheme is shown in Table.</p>



<p><strong>Clockwise</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>A1</td><td>B1</td><td>A2</td><td>B2</td></tr><tr><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>0</td><td>1</td><td>0</td><td>0</td></tr><tr><td>0</td><td>1</td><td>0</td><td>1</td></tr><tr><td>1</td><td>0</td><td>1</td><td>0</td></tr></tbody></table></figure>



<p><strong>Anti &#8211; Clockwise</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>A1</td><td>B1</td><td>A2</td><td>B2</td></tr><tr><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>0</td><td>1</td><td>0</td><td>1</td></tr><tr><td>0</td><td>1</td><td>0</td><td>0</td></tr><tr><td>1</td><td>0</td><td>0</td><td>1</td></tr></tbody></table></figure>



<p>In order to vary the speed of the motor, the values stored in the registers R1, R2, R3 can be changed appropriately.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Store the look up table address in DPTR</li><li>Move the count value (04) to one of the register (R0)</li><li>Load the control word for motor rotation in accumulator</li><li>Push the address in DPTR into stack</li><li>Load FFC0 in to DPTR.</li><li>Call the delay program</li><li>Send the control word for motor rotation to the external device.</li><li>Pop up the values in stack and increment it.</li><li>Decrement the count in R0. If zero go to next step else proceed to step 3.</li><li>Perform steps 1 to 9 repeatedly.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">START: ORG 4100
       MOV DPTR,#4500H
       MOV R0,#04
AGAIN: MOVX A,@DPTR
       PUSH DPH
       PUSH PDL
       MOV DPTR,#FFC0H
       MOV R2, 04H
       MOV R1,#FFH
DLY1:  MOV R3, #FFH
DLY:   DJNZ R3,DLY
       DJNZ R1,DLY1
       DJNZ R2,DLY1
       MOVX @DPTR,A
       POP DPL
       POP DPH
       INC DPTR
       DJNZ R0,AGAIN
       SJMP START</code></pre>



<p><strong>DATA:</strong></p>



<p>4500: 09, 05, 06, 0A</p>



<p><strong>RESULT:</strong></p>



<p>Thus the speed and direction of the motor were controlled using 8051 trainer kit.</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/">Interface stepper motor with 8051 Trainer Kit parallel port</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Stepper Motor Chopping Driver</title>
		<link>https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-chopping-driver/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-chopping-driver/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 01 Oct 2009 16:33:35 +0000</pubDate>
				<category><![CDATA[8051/8951]]></category>
		<category><![CDATA[circuits]]></category>
		<category><![CDATA[chopping driver]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=799</guid>

					<description><![CDATA[<p>Chopper drive circuits Chopper drive circuits are also referred to as constant current drives because they generate a somewhat constant current in each winding rather than applying a constant voltage. On each new step, a very high voltage is applied to the winding initially. This causes the current in the winding to rise quickly since</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-chopping-driver/">Stepper Motor Chopping Driver</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>Chopper drive circuits<br />
</strong></p>
<p>Chopper drive circuits are also referred to as constant current drives because they generate a somewhat constant current in each winding rather than applying a constant voltage. On each new step, a very high voltage is applied to the winding initially. This causes the current in the winding to rise quickly since dI/dt = V/L where V is very large.</p>
<p>When the current exceeds a specified current limit, the voltage is turned off or &#8220;chopped&#8221; and when the winding current drops below the specified limit, the voltage is turned on again. In this way, the current is held relatively constant for a particular step position.<br />
This allows driving stepper motors with higher torque and higher speed.</p>
<p><strong>Steps:</strong></p>
<ol>
<li> Measure Inductance and resistance of motor coil.</li>
<li> Get time constant.</li>
<li> Choose voltage value and desired calculation for program variables.</li>
<li> Write chopping program.</li>
</ol>
<p><img decoding="async" loading="lazy" class="size-full wp-image-800" title="Stepper Motor Chopping Driver" src="https://studentprojects.in/wp-content/uploads/2009/10/Stepper_Motor_Chopping_Driver.jpg" alt=" " width="500" height="259" /></p>
<p>Can be done using oscilloscope and step response equation on LR circuit or from stepper motor datasheet:<br />
<img decoding="async" loading="lazy" class="aligncenter size-full wp-image-801" title="Step response equation" src="https://studentprojects.in/wp-content/uploads/2009/10/Step_response_equation.jpg" alt="Step response equation" width="268" height="71" />Put I= maximum coil current from stepper datasheet (different from Imax)<br />
R=Rc = internal resistance of the stepper coil from stepper datasheet<br />
L =Lc = inductance of stepper coil from stepper datasheet<br />
Time constant ( T ) = L/R.<br />
Put t which is the desired time to reach the step level (start of chopping)</p>
<p>From above we can get   Imax  then by multiplying  it with Rc we can get the desired Applied voltage Vs to reach the maximum current in time t.<br />
<strong><br />
Case Study:<br />
</strong><br />
Stepper motor has the following specifications<br />
Max current per phase = 1A, voltage = 5.7V, Resistance per phase = 5.7<br />
Inductance = 6.5 mH/phase</p>
<p>So its time constant = 1.14 msec<br />
We put desired t=.5 msec to reach its max current instead of taking 1.14 msec It will give us Imax = 2.8164 and Vs=16 V so we will need to apply a 16 V to reach our max current per Phase in .5 msec.</p>
<p><strong>Program for Chopping driver </strong></p>
<pre lang="c">#include &lt;16f628.h&gt;
#use delay ( clock=4M )

// GLOBAL VARIABLES /////////////
int steps[] = {1,2,4,8}; // motor steps
int step_ptr = 0;
int step = 0;
int desiredt = 500; // desired time to reach max current at start of every step 0.5 msec
int choppingt = 50; // chopping time = 0.1 desired time = 50 usec

// FUNCTIONS ////////////////////

// INTERRUPTS ///////////////////

#INT_TIMER0
void change_step ()
{
if ((++step_ptr) &gt; 3)  step_ptr=0;
step = steps[step_ptr];
output_b(step);
delay_us(desiredt);
output_b(0);
delay_us(choppingt);
}

// MAIN /////////////////////////
void main()
{
// Motor terminals are connected to Port B (Unipolar Stepper Motor)
// setup interrupt timer0 to desired stepping speed let motor change step every 2msec
// if step angle = 1.8 degree, steps per revolution = 360/1.8 = 200 steps
// time per revolution = 200 * 2 msec = 0.4 sec
// rpm = 60/0.4 = 150 rpm

setup_timer_0(RTCC_INTERNAL | RTCC_DIV_16);

// put first step//
step = steps[step_ptr];
output_b(step);
delay_us(desiredt);
output_b(0);
delay_us(choppingt);

// enable interrupt/////
enable_interrupts(GLOBAL);
enable_interrupts(INT_TIMER0);

// chopping loop//

while (1)
{
// put step (apply voltage) //
output_b(step);
// wait chopping time //
delay_us(choppingt);
// clear step ////
output_b(0);
// wait chopping time//
delay_us(choppingt);
}
}</pre>
<p>References:</p>
<p>&#8211;    Wikipedia.org<br />
&#8211;    Microchip Co. application notes.</p>
<p>Article by &#8211; Amr Ayoub</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-chopping-driver/">Stepper Motor Chopping Driver</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-chopping-driver/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Robotic car using 8951 Microcontroller</title>
		<link>https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/</link>
					<comments>https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Wed, 19 Nov 2008 11:29:22 +0000</pubDate>
				<category><![CDATA[Matrix Programs]]></category>
		<category><![CDATA[Microcontroller Based Mini Projects]]></category>
		<category><![CDATA[Intefacing Keyboard]]></category>
		<category><![CDATA[Robotic car]]></category>
		<category><![CDATA[8951 Microcontroller]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=177</guid>

					<description><![CDATA[<p>Robotic Car is a miniature prototype car powered by batteries whose various movements can be control either manually or automatically, or the combination of both.</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/">Robotic car using 8951 Microcontroller</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Robotic Car is a miniature prototype car powered by batteries whose various movements can be control either manually or automatically, or the combination of both.  Here the command is given through keyboard; it would have been better if we used IR remote control or something of that kind rather than using keyboard for commanding. However, by realizing the complexities we have made simple using keyboard.</p>
<p><figure id="attachment_178" aria-describedby="caption-attachment-178" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-178" title="Block diagram of the project" src="https://studentprojects.in/wp-content/uploads/2008/11/block5.gif" alt="Block diagram of the project:" width="500" height="319" /><figcaption id="caption-attachment-178" class="wp-caption-text">Block diagram of the project:</figcaption></figure></p>
<p><strong>Some photographs of this model:</strong></p>
<p><figure id="attachment_179" aria-describedby="caption-attachment-179" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-179" title="Robotic car model" src="https://studentprojects.in/wp-content/uploads/2008/11/photo_1.gif" alt="Robotic car model" width="500" height="337" /><figcaption id="caption-attachment-179" class="wp-caption-text">Robotic car model</figcaption></figure></p>
<p><figure id="attachment_180" aria-describedby="caption-attachment-180" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-180" title="Robotic car model" src="https://studentprojects.in/wp-content/uploads/2008/11/photo_2.gif" alt="Robotic car model" width="500" height="337" /><figcaption id="caption-attachment-180" class="wp-caption-text">Robotic car model</figcaption></figure></p>
<p><strong>Project Description:</strong></p>
<p><strong>Keyboard section:</strong></p>
<p>There are six switches in this section. They are</p>
<ol>
<li>Turn left.</li>
<li>Turn right.</li>
<li>Stop.</li>
<li>About turn.</li>
<li>Park left.</li>
<li>Park right.</li>
</ol>
<p>Circuit diagram of keyboard is shown bellow.</p>
<p><figure id="attachment_181" aria-describedby="caption-attachment-181" style="width: 258px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-181" title="Keyboard circuit of the Robotic car" src="https://studentprojects.in/wp-content/uploads/2008/11/keyboard2.jpg" alt="Keyboard circuit of the Robotic car" width="258" height="262" /><figcaption id="caption-attachment-181" class="wp-caption-text">Keyboard circuit of the Robotic car</figcaption></figure></p>
<p><strong>Car section:</strong></p>
<p>There are many sub sections in this section. They are</p>
<p><strong> Motor:</strong></p>
<p>We are using a 5V dc motor to drive the vehicle. The speed of the vehicle and its strength is controlled by the proper use of pulley. The rear wheel of the vehicle is connected to this motor through a pulley. This motor is meant for moving the vehicle both in forward and backward direction. Microcontroller (8051) controls the forward and backward movement of the vehicle in the following manner:</p>
<p><figure id="attachment_182" aria-describedby="caption-attachment-182" style="width: 311px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-182" title="Circuit diagram of Motor connection" src="https://studentprojects.in/wp-content/uploads/2008/11/circuit2.gif" alt="Circuit diagram of Motor connection" width="311" height="317" /><figcaption id="caption-attachment-182" class="wp-caption-text">Circuit diagram of Motor connection</figcaption></figure></p>
<p>Here in the above circuit, T1, T2, T3, T4 are the NPN power transistor (2N3055). A0, A1, A2, A3 are the signals coming from the micro controller. With the specific combination of A0, A1, A2, A3 we can change the direction of rotation of motor as follows:</p>
<p><strong> Case I:</strong> When   A0=high; A3=high; &amp; A1=low; A2=low<br />
The motor rotates in clockwise direction<br />
<strong><br />
Case II:</strong> When   A0=low; A3=low; &amp; A1=high; A2=high<br />
The motor rotates in anti-clockwise direction<br />
<strong><br />
Case III:</strong> When   A0=low; A3=low; A1=low; A2=low<br />
The motor stops the rotation.<br />
<strong> </strong></p><p>The post <a href="https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/">Robotic car using 8951 Microcontroller</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontrollers/robotic-car-using-8951-microcontroller/feed/</wfw:commentRss>
			<slash:comments>498</slash:comments>
		
		
			</item>
		<item>
		<title>Stepper motor control board</title>
		<link>https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-control-board/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-control-board/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 17 Nov 2008 12:57:54 +0000</pubDate>
				<category><![CDATA[8051/8951]]></category>
		<category><![CDATA[8951 programs]]></category>
		<category><![CDATA[control board circuit]]></category>
		<category><![CDATA[RPM calculation]]></category>
		<category><![CDATA[Unipolar stepper motor]]></category>
		<category><![CDATA[microcontroller programming]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[8951]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=127</guid>

					<description><![CDATA[<p>This project is actually an educational kit. One can study the full operation of unipolar type stepper motor using this board. As it is micro controller based it can be programmable also and one can learn micro controller interfacing with LEDs, key board and stepper motor. Thus single board serves the purpose of learning stepper</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-control-board/">Stepper motor control board</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>This project is actually an educational kit. One can study the full operation of unipolar type stepper motor using this board. As it is micro controller based it can be programmable also and one can learn micro controller interfacing with LEDs, key board and stepper motor. Thus single board serves the purpose of learning stepper motor control as well as learning micro controller programming.</p>
<p><strong>General description and system block diagram:-</strong></p>
<p>The complete board consists of transformer, control circuit, keypad and stepper motor as shown in snap. The given figure shows the block diagram of project.</p>
<p><figure id="attachment_128" aria-describedby="caption-attachment-128" style="width: 368px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-128" title="System block diagram" src="https://studentprojects.in/wp-content/uploads/2008/11/block3.gif" alt="System block diagram" width="368" height="180" /><figcaption id="caption-attachment-128" class="wp-caption-text">System block diagram</figcaption></figure></p>
<p>The circuit has inbuilt 5 V power supply so when it is connected with transformer it will give the supply to circuit and motor both. The 8 Key keypad is connected with circuit through which user can give the command to control stepper motor. The control circuit includes micro controller 89C51, indicating LEDs, and current driver chip ULN2003A. One can program the controller to control the operation of stepper motor. He can give different commands through keypad like, run clockwise, run anticlockwise, increase/decrease RPM, increase/decrease revolutions, stop motor, change the mode, etc. before we start with project it is must that we first understood the operation of unipolar stepper motor.</p>
<p><strong>Unipolar stepper motor:-</strong></p>
<p>In the construction of unipolar stepper motor there are four coils. One end of each coil is tide together and it gives common terminal which is always connected with positive terminal of supply. The other ends of each coil are given for interface.  Specific color code may also be given. Like in my motor orange is first coil (L1), brown is second (L2), yellow is third (L3), black is fourth (L4) and red for common terminal.</p>
<p>By means of controlling a stepper motor operation we can</p>
<ol>
<li>Increase or decrease the RPM (speed) of it</li>
<li>Increase or decrease number of revolutions of it</li>
<li>Change its direction means rotate it clockwise or anticlockwise</li>
</ol>
<p>To vary the RPM of motor we have to vary the PRF (Pulse Repetition Frequency). Number of applied pulses will vary number of rotations and last to change direction we have to change pulse sequence.</p>
<p>So all these three things just depends on applied pulses. Now there are three different modes to rotate this motor</p>
<ol>
<li>Single coil excitation</li>
<li>Double coil excitation</li>
<li>Half step excitation</li>
</ol>
<p>The table given below will give you the complete idea that how to give pulses in each mode</p>
<p><figure id="attachment_129" aria-describedby="caption-attachment-129" style="width: 600px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-129" title="Pulses for stepper motor module" src="https://studentprojects.in/wp-content/uploads/2008/11/steppertable.jpg" alt="Pulses for stepper motor module" width="600" height="256" /><figcaption id="caption-attachment-129" class="wp-caption-text">Pulses for stepper motor module</figcaption></figure></p>
<p>Note:- In half step excitation mode motor will rotate at half the specified given step resolution. Means if step resolution is 1.8 degree then in this mode it will be 0.9 degree. Step resolution means on receiving on 1 pulse motor will rotate that much degree. If step resolution is 1.8 degree then it will take 200 pulses for motor to compete 1 revolution (360 degree).</p>
<p>Now let me give you the specification of the stepper motor that I have used.</p>
<p>Max rated voltage: &#8211;    5 V<br />
Max rated current per coil: &#8211; 0.5 Amp<br />
Step resolution: &#8211;    1.8 degree / pulse<br />
Max RPM: &#8211;    20 in single/double coil excitation mode and 60 in half step mode<br />
Torque: &#8211; 1.5 Kg/cm2</p>
<p><strong>RPM calculation:-</strong></p>
<p>One can calculate the exact RPM at which motor will run. We know that motor needs 200 pulses to complete 1 revolution. Means if 200 pulses applied in 1 second motor will complete 1 revolution in 1 second. Now 1 rev. in 1 sec means 60 rev. in 1 minute. That will give us 60 RPM. Now 200 pulses in 1 sec means the PRF is 200 Hz. And delay will be 5 millisecond (ms). Now lets see it reverse.</p>
<p>*  If delay is 10 ms then PRF will be 100 Hz.<br />
*  So 100 pulses will be given in 1 sec<br />
*  Motor will complete 1 revolution in 2 second<br />
*  So the RPM will be 30.</p>
<p>In same manner as you change delay the PRF will be changed and it will change RPM</p>
<p><strong>Stepper motor control board circuit:-</strong></p>
<p><figure id="attachment_130" aria-describedby="caption-attachment-130" style="width: 591px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-130" title="Stepper motor control board circuit" src="https://studentprojects.in/wp-content/uploads/2008/11/circuit.gif" alt="Stepper motor control board circuit" width="591" height="555" /><figcaption id="caption-attachment-130" class="wp-caption-text">Stepper motor control board circuit</figcaption></figure></p>
<p>The circuit consists of very few components. The major components are 7805, 89C51 and ULN2003A.</p>
<p><strong>Connections:-</strong></p>
<ol>
<li>The transformer terminals are given to bridge rectifier to generate rectified DC.</li>
<li>It is filtered and given to regulator IC 7805 to generate 5 V pure DC. LED indicates supply is ON.</li>
<li>All the push button micro switches J1 to J8 are connected with port P1 as shown to form serial keyboard.</li>
<li>12 MHz crystal is connected to oscillator terminals of 89C51 with two biasing capacitors.</li>
<li>All the LEDs are connected to port P0 as shown</li>
<li>Port P2 drives stepper motor through current driver chip ULN2003A.</li>
<li>The common terminal of motor is connected to Vcc and rest all four terminals are connected to port P2 pins in sequence through ULN chip.</li>
</ol>
<p>Now by downloading different programs in to 89C51 we can control the operation of stepper motor. Let us see all different kind of program.</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-control-board/">Stepper motor control board</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/8051-8951/stepper-motor-control-board/feed/</wfw:commentRss>
			<slash:comments>34</slash:comments>
		
		
			</item>
		<item>
		<title>Automatic Railway Gate Control &#038; Track Switching</title>
		<link>https://studentprojects.in/electronics/microcontrollers/automatic-railway-gate-control-track-switching/</link>
					<comments>https://studentprojects.in/electronics/microcontrollers/automatic-railway-gate-control-track-switching/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 06 Nov 2008 11:58:25 +0000</pubDate>
				<category><![CDATA[Microcontroller Based Mini Projects]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[Railway Track Switching]]></category>
		<category><![CDATA[Railway Gate Control]]></category>
		<category><![CDATA[8051 Microcontroller]]></category>
		<category><![CDATA[IR Transitter]]></category>
		<category><![CDATA[IR Receiver]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=105</guid>

					<description><![CDATA[<p>Present project is designed using 8051 microcontroller to avoid railway accidents happening at unattended railway gates, if implemented in spirit. This project utilizes two powerful IR transmitters and two receivers; one pair of transmitter and receiver is fixed at up side (from where the train comes) at a level higher than a human being in</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontrollers/automatic-railway-gate-control-track-switching/">Automatic Railway Gate Control & Track Switching</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Present project is designed using 8051 microcontroller to avoid railway accidents happening at unattended railway gates, if implemented in spirit. This project utilizes two powerful IR transmitters and two receivers; one pair of transmitter and receiver is fixed at up side (from where the train comes) at a level higher than a human being in exact alignment and similarly the other pair is fixed at down side of the train direction. Sensor activation time is so adjusted by calculating the time taken at a certain speed to cross at least one compartment of standard minimum size of the Indian railway. We have considered 5 seconds for this project. Sensors are fixed at 1km on both sides of the gate. We call the sensor along the train direction as ‘foreside sensor’ and the other as ‘aft side sensor’. When foreside receiver gets activated, the gate motor is turned on in one direction and the gate is closed and stays closed until the train crosses the gate and reaches aft side sensors. When aft side receiver gets activated motor turns in opposite direction and gate opens and motor stops. Buzzer will immediately sound at the fore side receiver activation and gate will close after 5 seconds, so giving time to drivers to clear gate area in order to avoid trapping between the gates and stop sound after the train has crossed.</p>
<p>The same principle is applied for track switching. Considering a situation wherein an express train and a local train are traveling in opposite directions on the same track; the express train is allowed to travel on the same track and the local train has to switch on to the other track. Two sensors are placed at the either sides of the junction where the track switches. If there’s a train approaching from the other side, then another sensor placed along that direction gets activated and will send an interrupt to the controller. The interrupt service routine switches the track.  Indicator lights have been provided to avoid collisions. Here the switching operation is performed using a stepper motor. Assuming that within a certain delay, the train has passed the track is switched back to its original position, allowing the first train to pass without any interruption. This concept of track switching can be applied at 1km distance from the stations.</p>
<p>The project is simple to implement and subject to further improvement.</p>
<p><figure id="attachment_106" aria-describedby="caption-attachment-106" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-106" title="Model of Automatic Railway Gate Control &amp; Track Switching" src="https://studentprojects.in/wp-content/uploads/2008/11/train_photo.gif" alt="Model of Automatic Railway Gate Control &amp; Track Switching" width="500" height="228" /><figcaption id="caption-attachment-106" class="wp-caption-text">Model of Automatic Railway Gate Control &amp; Track Switching</figcaption></figure></p>
<p><strong><br />
Gate Control</strong>:</p>
<p>Railways being the cheapest mode of transportation are preferred over all the other means .When we go through the daily newspapers we come across many railway accidents occurring at unmanned railway crossings. This is mainly due to the carelessness in manual operations or lack of workers. We, in this project has come up with a solution for the same. Using simple electronic components we have tried to automate the control of railway gates. As a train approaches the railway crossing from either side, the sensors placed at a certain distance from the gate detects the approaching train and accordingly controls the operation of the gate. Also an indicator light has been provided to alert the motorists about the approaching train.</p>
<p><figure id="attachment_108" aria-describedby="caption-attachment-108" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-108" title="Railway crossing" src="https://studentprojects.in/wp-content/uploads/2008/11/crossing.jpg" alt="Railway crossing" width="500" height="235" /><figcaption id="caption-attachment-108" class="wp-caption-text">Gate control </figcaption></figure></p>
<p><strong>Track Switching</strong></p>
<p>Using the same principle as that for gate control, we have developed a concept of automatic track switching. Considering a situation wherein an express train and a local train are travelling in opposite directions on the same track; the express train is allowed to travel on the same track and the local train has to switch on to the other track. Indicator lights have been provided to avoid collisions .Here the switching operation is performed using a stepper motor. In practical purposes this can be achieved using electromagnets.</p>
<p><figure id="attachment_109" aria-describedby="caption-attachment-109" style="width: 500px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-109" title="Track Switching" src="https://studentprojects.in/wp-content/uploads/2008/11/switching.jpg" alt="Track Switching" width="500" height="262" /><figcaption id="caption-attachment-109" class="wp-caption-text">Track Switching</figcaption></figure></p><p>The post <a href="https://studentprojects.in/electronics/microcontrollers/automatic-railway-gate-control-track-switching/">Automatic Railway Gate Control & Track Switching</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontrollers/automatic-railway-gate-control-track-switching/feed/</wfw:commentRss>
			<slash:comments>827</slash:comments>
		
		
			</item>
	</channel>
</rss>
