I need to stun a fish ... ok, let me back up a bit, I have a request from a PHD student who is working with Zebra fish and he needs to provide a stimulation voltage to make the fish do something sciencey ...
Anyway the Picaxe stuff is easy, but what I can not think of is a neat way to provide a voltage that is set by the Picaxe and in the range of 0 to 9V.
I thought I could use a LM317 regulator, but the resistor value needs to be selectable, or under Picaxe control. I thought I could use a digital Potentiometer to set the output voltage of the LM317, but I have not seen one of these for years.
A resistor divider, I think will not provide fine enough control, though I guess with good design I could use all 8 bits of Port B on a 28X2 to provide a 8-bit resolution voltage from 0 to 9V, that would be 9/256 = 40mV each step...hmmmm maybe.
Any ideas guys? Any off the shelf widgets?
I will probably switch the final voltage to the probes via a relay.
Cheers and thanks
Anyway the Picaxe stuff is easy, but what I can not think of is a neat way to provide a voltage that is set by the Picaxe and in the range of 0 to 9V.
I thought I could use a LM317 regulator, but the resistor value needs to be selectable, or under Picaxe control. I thought I could use a digital Potentiometer to set the output voltage of the LM317, but I have not seen one of these for years.
A resistor divider, I think will not provide fine enough control, though I guess with good design I could use all 8 bits of Port B on a 28X2 to provide a 8-bit resolution voltage from 0 to 9V, that would be 9/256 = 40mV each step...hmmmm maybe.
Any ideas guys? Any off the shelf widgets?
I will probably switch the final voltage to the probes via a relay.
Cheers and thanks