03-09-2015, 01:47 PM
Chuck,
If the drawing you posted for the level shifter is correct and you copied the code from Instructables then you need to change this code:
// Pin Declarations
int dataIn = 11;
int clockIn = 12;
To this:
// Pin Declarations
int dataIn = 16;
int clockIn = 15;
You're using different pins for the inputs than the Instructables example is using thus the need for the code change.
Another thing to consider is that the level shifter you posted will invert the signals coming from the digital caliper so the code will have to change to compensate for that.
Ed
If the drawing you posted for the level shifter is correct and you copied the code from Instructables then you need to change this code:
// Pin Declarations
int dataIn = 11;
int clockIn = 12;
To this:
// Pin Declarations
int dataIn = 16;
int clockIn = 15;
You're using different pins for the inputs than the Instructables example is using thus the need for the code change.
Another thing to consider is that the level shifter you posted will invert the signals coming from the digital caliper so the code will have to change to compensate for that.
Ed