Go Down

Topic: Analogue reader for a gyroscope chip (Read 475 times) previous topic - next topic

SonnyBreaks

Ive been given a simple gyroscop chip out of an RC copter.  My friend tells me I should get an analogue reader program just to see what the chip does.  Does anyone have a bit of code lying about?

MarkT

How about the obvious:
Code: [Select]

void loop ()
{
  Serial.println (analogRead (0)) ;
  delay (1000) ;
}
[ I won't respond to messages, use the forum please ]

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy