hi friends,
i am making a project of rotating the stepper motor according to the difference in actual value(from sensor) compared to the user set value(from key pad). the keypad consists of two pushbuttons (+ & -) and i have used two 7 segment displays to show the user set value as shown in schematic below.i am using a 8051 family micro controller. i need to increment the display every time + button is pressed and decrement when - is pressed .
also need to compare the adc value with the user set value and know if difference is positive or negative.my range for display is 0 to 100% whereas my adc is 8 bit i.e. 0-255 combinations.how to compare these two??