thank you all for your help so far. to answer the first question, I am using the 16F877A. It wont be the chip that I will actually use for this item when I finally have a finished board, but it is feature rich and good for prototyping.
maus: I will give your code changes a shot. my main reason for using pot was I get a value from 0-255, the same as the input for hpwm, so no conversion necessary. what kind of values do you get from the adcin? I havent found any documentation that has answered this question thus far.
Acetronics: thanks for the input as well, it looks like the pot command is going out the window. Ill read up on the RC command
sayzer: I thought the scale was an adjustment for setting the pot's upper limit? I used a counter program that read the pot with an if then statement and blinked an LED equal to the scale amount, this is where 23 came from.
thanks again for all your help. I will probably be able to test some of these things tonight after work.
included is a schematic, it also may be crude, its my first time using the schematic software.
Bookmarks