Can a BASIC stamp do this easily?
Archiver
Posts: 46,084
Hello everyone. I am building a signal processor and would like to
use a BASIC stamp. Basically, my processor will receive one
signal(which is a voltage between 1 and 5 Volts). I then need to run
that signal through a function to get the output voltage. This is the
function:
f(x)= x^a + sin(pi*x/5) + c + d
x is the input voltage; a,b,c and d are adjustable values, but will be
fixed during operation.
My questions are the following:
Can a BASIC stamp run this function at an effective rate(say 30 times
a second)?
How difficult is it to write this function in PBASIC?(if someone could
give an example, that would be great)
I was fairly profficient in BASIC as a kid, how similar is it to
PBASIC?
Thanks in advance,
Dave
use a BASIC stamp. Basically, my processor will receive one
signal(which is a voltage between 1 and 5 Volts). I then need to run
that signal through a function to get the output voltage. This is the
function:
f(x)= x^a + sin(pi*x/5) + c + d
x is the input voltage; a,b,c and d are adjustable values, but will be
fixed during operation.
My questions are the following:
Can a BASIC stamp run this function at an effective rate(say 30 times
a second)?
How difficult is it to write this function in PBASIC?(if someone could
give an example, that would be great)
I was fairly profficient in BASIC as a kid, how similar is it to
PBASIC?
Thanks in advance,
Dave