PDA

View Full Version : Can Picaxe do this??? Novice question...



CosRush
18-01-2006, 18:30
i have a sensor that has a working range of 0-5v.
this range corresponds to certain defined values.

Could i get a picaxe to display the value dpending on the voltage in realtime???

if so, what would be needed?

andypro
18-01-2006, 18:38
Sure. Use the readadc or readadc10 commands and an ADC pin on the picaxe, and then output to the display device of your choice (or storage device..like internal or external EEPROM). The manual, I think it's #2, will tell you what you need.

--Andy P

BeanieBots
18-01-2006, 18:41
Yes, quite an easy thing to do.
What you would need really depends on how you wish to view the results.
The simplest form would be some simple LEDs that just light up at certain values. You have them flash if a value is exceeded.
You might want a readout with text. For that, you could use an LCD display. The easiest to use is the 16 character 2 line display from Rev-Ed.

How you would set about writing the code would depend on the relationship between your voltage and what (and how) you want displayed for each value. All this combines to determine which would be the best PICAXE to use.