1. Is there a better way to send serial; data than the way I'm doing it? Anyone have a routine that they think works better?
Yes, use HSEROUT.
HSEROUT[STR txbuf \ 4] , will send your array out at the baud rate choosen in your define.
See page 79 - 80 of PBP manual.
2. It seems like my returned values vary quite a bit. I don't have access to a scope, but it seems that the sensor is returning pretty constant voltage. it returns 0 - 10 v I am using a voltage divider made up of 2 2.2 K resistors to shift the sensor output to 0 - 5 volts. Any hints on making the system more stable? Slow down the conversion time? My requirements are pretty easy, i need to read the sensor no more than twice a second.
Read the thread at the given link, you will find the technique and snippets to keep your adc reading stable.
www.picbasic.co.uk/forum/showthread.php?t=6734
Al.
Last edited by aratti; - 25th July 2010 at 09:00.
All progress began with an idea
Bookmarks