|
Analog to Digital Conversion Help
Well I can get the motors running and pneumatics firing, but I'd really like to be able to do the more complicated stuff and that means interfacing with some sensors that provide analog output. So I have a few questions.
1. After I hook up my PWMs to the sensor (take your pick) and plug it into the RC's analog input, how do I make the code know which port I'm looking at?
and
2. How do I test / troubleshoot / even see the output from the sensor?
Is there some easy way to use a "print to a .txt file" or something? (something I'd try on a PC)
Better yet, what is the BEST way to get all the information? I'm seeing outputs in some of these posts mentioning the same kind of scaling that you see when you output to one of the motors. So should I find some way to get the info back to the dashboard (which I still need to set up). Even with that, we need to integrate (for many of the sensors) and seeing the value at any one time wont tell us too much.
Hope I'm not being too redundant or posting in the wrong place. If any of my questions indicate that I'm just fundamentally wrong, point that out too, please.
Thanks
__________________
Where's my Burger's vector?
|