Does Stamp sample along the order of microseconds?
thaimyshoe06
Posts: 3
I'm working on a project in which Stamp will take an 8 ms pulse, calculate its energy (E = V^2 * t / R), and output the value on a display. In order to calculate energy accurately, Stamp must take data points on the order of 10's of microseconds. Does anyone know if Stamp is capable of this?
Comments
You say you need to "take an 8 mSec" pulse, but must "take data points on the order of..." something. Perhaps you mean "with a resolution of" 10's of microseconds.
I think the resolution of the PULSIN statement is 2 uSec, so that could work for you. However, the BS2 only cycles at a 2000 Basic Instructions Per Second, so you'll only be able to take that 8 mSec +- measurement every 20 milliseconds (estimated) or so.
If that will work for you, then the BS2 can do it.
A Propeller would be a much better choice for this sort of measurement. It has a program-accessible system clock with a resolution of 12.5ns and it can do its own ADC with better than 8 bit resolution at a 10us sample rate (with a few external resistors and capacitors). You'll need an external sample and hold circuit.