Showing posts with label Stamp. microcontroller. Show all posts
Showing posts with label Stamp. microcontroller. Show all posts

Thursday, March 3, 2011

Analog to Digital

Some grade 12s are working with the 2 BASIC Stamp modules I have in my class. The 3rd group is working with an Arduino Duo. Both groups are experimenting with Analog to Digital conversion. The Ardiuno Examples-Analog lab made a good start. Adding my DSO Nano oscilloscope meant they could see exactly what PWM means and why the LED could be dimmed from 0 to 100%. On the Stamp the other groups were using an RC circuit to measure the value of a variable resistor. The Stamp even has a built in in RCTIME function to pull this off. This RC time method works well but I started looking for the analog inputs and discovered the Stamp has none! Christopher Vecchio's web page shows a good work-around for the Stamp.
Arduino Analog Inputs - 6
Stamp Analog Inputs - 0
Score one for Arduino!