Go Down

Topic: Arduino 3DOF Head Tracker (Read 18 times) previous topic - next topic

Psicrest

Which ones goes to arduino?

sensor output = analog pin 0
3V in = 3v arduino pin
GND = GND

I tried it and did an analogRead(gyroPin) which gyroPin = 0
im only getting 667 +- readings.

Psicrest

I noticed that your code has Vin on it. Do i need to put something in the Vin pin?

Ref Voltage = Vin ?

Psicrest

Im also wondering about the potentiometer, im not sure how you wire it.
And i think you put a resistor also on the Sensor out. Could you please help me with the wiring? Thank you in advance.




tornado

Hi Zitron,

I tried compiling your code but I got the following error:

Code: [Select]
In function 'void loop()':
error: 'floatToString' was not declared in this scope


Where can I get the floatToString function from??

Thanks

Go Up