Go Down

Topic: Triple Axis Accelerometer Values on  a  LCD (Read 1 time) previous topic - next topic

Rob K

Jan 29, 2010, 07:40 am Last Edit: Jan 29, 2010, 07:49 am by Rob_K Reason: 1
Nothing real fancy.

I have plans for a using it as a accelerometer data logger for a road trip.  


Code: [Select]

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

int backLight = 13;

const int xPin = 3;                   // x-axis
const int yPin = 2;                   // y-axis
const int zPin = 1;                   // z-axis

void setup()
 pinMode(backLight, OUTPUT);
 digitalWrite(backLight, HIGH);

void loop()
 //Uncomment the lines below for Serial output
 //Comment if not using a LCD.
 lcd.print("X= ");
 lcd.print("Y= ");
 lcd.print("Z= ");

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!

via Egeo 16
Torino, 10131