Hello everybody! Currently (I hope it will not last forever), I have imagination problem I cannot solve quite simple problem. I need to control small engraving head (7.2 VDC motor). I need only control RPM without feedback. Scenario is simple PIC16F870 with internal PWM output, MOSFET for power output, potentiometer for regulating speed of rotation and Hitachi style parallel LCD display, for displaying voltage and calculated RPM value.
I clear understand that a program should be turn around all these commands: HPWM, LCDOUT, and POT. I tested all of them without problem, but I cannot combine them in one graceful and beautiful code. I know that spirit of this forum is to “teach people how to catch a fish”, that’s why I asking about some examples of code which I can use as building blocks or hints. I will be appreciating for any help or ideas.
Vladimir