On 13 May 2014 13:09, Marius Liebenberg <[email protected]> wrote:
> Just a small word of warning here. I did the analog input thing with the
> Arduino. There is code on the wiki that already works well. BUT!!!! the
> usb route is not reliable for critical applications. Due to the fact
> that the usb is not hot pluggable, it will disappear from the devices
> list with any small hiccup or loss of connection.
In that case the idea of using the analogue inputs to drive a
frequency output into an encoder channel is probably more robust.
it is nearly as simple as
void setup(){
pinMode(0, OUTPUT);
}
void loop(){
float v;
v = analogRead(0);
tone(0,v); // Output the square-wave on pin 0 1024 HZ = 5V
}
--
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users