grrr_arrghh
New Member
Hi.
my forthcoming PIC based project will be fairly simple (the sort of thing that could be done with about 5/6 555 timers!). However, I need some way of setting a time period. So my plan is to have a pot wired as a potential divider, and the PIC reads the voltage on the wiper. The PIC would then multiply (?) the voltage by some defined value to get a time period based on the voltage it read. This time period would be used as a 'delay'. Is this a good way to do it, and can someone show me an exmaple of the routine needed to do this? (I reckon I can do the rest of the code)
I assume, I need a PIC with an analogue input? Can someone recomend one? (I was going to use a PIC16F628, as in Nigel's tutorial, but it doesn't seem to have any analogue inputs...)
Also, can anyone direct me to a list of explanations of the various suffixes for PICs (e.g. 'A', '-04' etc).
Thanks
Tim
my forthcoming PIC based project will be fairly simple (the sort of thing that could be done with about 5/6 555 timers!). However, I need some way of setting a time period. So my plan is to have a pot wired as a potential divider, and the PIC reads the voltage on the wiper. The PIC would then multiply (?) the voltage by some defined value to get a time period based on the voltage it read. This time period would be used as a 'delay'. Is this a good way to do it, and can someone show me an exmaple of the routine needed to do this? (I reckon I can do the rest of the code)
I assume, I need a PIC with an analogue input? Can someone recomend one? (I was going to use a PIC16F628, as in Nigel's tutorial, but it doesn't seem to have any analogue inputs...)
Also, can anyone direct me to a list of explanations of the various suffixes for PICs (e.g. 'A', '-04' etc).
Thanks
Tim