Actually i am doing my project of dc motor controller for positioning application..
my friend helping me to do the programing of my project. i am using microcontroller PIC 16F877A. and motor driver is L293D..
but i have certain part that i cannot understand of the coding of the programming..
that are :::
while(1) //check encoder signal {
if(!signal_A && !signal_B) //when signal 00
{
count=count+5; //count+5
while(!signal_A && !signal_B); //wait until signal changes
}
else if(!signal_A && signal_B) //when 01
{
count=count+5;
while(!signal_A && signal_B);
}
else if(signal_A && !signal_B) //when 10
{
count=count+5;
while(signal_A && !signal_B);
}
else if(signal_A && signal_B) //when 11
{
count=count+5;
while(signal_A && signal_B);
how the program reads the signal from the encoder?
he said to me, he follow the data sheet of my dc geared motor with encoder..
here is the link of the datasheet..
http://www.cytron.com.my/viewProduct.php?pid=ABAkNRIhAysEJQAfDA06JNHNifmJggYfKfF8xCBY4hM=but i just cannot understand how it read.. sorry, i am really confusing about this encoder signal..