One weird thing is the pin configuration, which doesn’t match the examples in the tutorial. There is a VIN pin and a 3V pin instead of a 3.3V pin. The pin configuration is more similar to that shown here:
I realize that the page I’ve just listed is for ADX335, not ADX377. My device is has ADXL377 printed on it, but otherwise looks like this example.
Another weird aspect is that my arduino builder application produces non-standard character stream unless I change the line in the arduino sketch that reads " Serial.begin(115200);" to “Serial.begin(9600);” I don’t know if this is related.
I’ve double-checked all the connections, and the result is the same. I’d be grateful for any advice!
I change the line in the arduino sketch that reads " Serial.begin(115200);" to “Serial.begin(9600);”
To get readable output from the serial monitor, the serial baud rate in the sketch “Serial.begin()” must match the serial baud rate setting in the serial monitor window, lower right corner.
I’ve copied a sample of the output below. However, when I first made this post, the output values were in the hundreds of g’s. I’m not sure what’s changed. Could these values be random noise? I guess that’s an error of only a few percent. The earlier values in the hundreds of g’s were too great to just be errors, though.
Here’s an image of the circuit. I’ve checked all the the connections, and they’re solid. I am still unsure about the difference between the VIN pin and the 3V pin, since the hookup tutorial just shows the 3.3V pin (which is an input).
I also identified the reason for the 100x change in values between the experiments. I had changed the scale variable to 3, which would correspond to the ADLX337. For my ADLX377 this should be 200. When I changed it back to 200, the values were in the hundreds. So, it seems to be noise that ranges from roughly -200% to +200% of the maximum value.
I didn’t solder the pins to the board. I wanted to test it out first. The top row of pins is connected to the accelerometer, and the bottom row is holding it in place. Do you think that a touch contact could create this much noise?
Thanks for pointing me toward that product page, I somehow missed that in my original search!
Soldering the pins seems to have done the trick. Here are the sample outputs:
X: -0.20 g
Y: -0.20 g
Z: 0.98 g
Does this look reasonable to you folks? In this orientation, the z axis is up, so 1g makes sense. When I tilt it, the 1g value goes over to either x or y, depending on how it tilt it.