Counting and Timing a shock sensor

Mee_n_Mac:

sspbass:
Any chance I could talk you into buying the 20x4 serial LCD display instead of the one above ? :twisted: :mrgreen:

Definitely not out of the question, I’ll try this one out first though.

would something like this accomplish the same thing? http://www.sparkfun.com/products/258

This is the code that will display Hello World on this LCD, it looks like it should be pretty easy.

*/

// include the library code:

#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins

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

void setup() {

// set up the LCD’s number of columns and rows:

lcd.begin(16, 2);

// Print a message to the LCD.

lcd.print(“hello, world!”);

}

void loop() {

// set the cursor to column 0, line 1

// (note: line 1 is the second row, since counting begins with 0):

lcd.setCursor(0, 1);

// print the number of seconds since reset:

lcd.print(millis()/1000);

}