controlling of stepper motor with ir and gsm modem

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Re: controlling of stepper motor with ir and gsm modem

Postby sich » Tue Jan 21, 2014 5:44 am

madogas WROTE:ANALOGREAD = ADC_Read(1);
   ANALOGREAD = SENSORVALUE;


  // PRINT OUT THE VALUE YOU READ:
VOLTAGEVALUE = SENSORVALUE*4.88E-3;
Lcd_Out(2,4,VOLTAGEVALUE);


I guess the problem lies here... You didn't assign the analog value into the variable you used for calculation. Accidentally inverted the equation?
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm

Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 11 guests

cron