Skip to content

m-rtijn/ADXL335-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADXL335

A simple library to read values from an ADXL335 analog accelerometer. Works on Arduino and Arduino-compatible devices with at least 3 analog inputs.

Usage

The library contains one single class: ADXL335. The following methods are available to the user:

ADXL335(int xpin, int ypin, int zpin, float vref)
float readX()
float readY()
float readZ()
void setCalibrationOffset(float calibration_offset_x, float calibration_offset_y, float calibration_offset_z)
void setZeroGVoltage(float zero_g_voltage_xy, float zero_g_voltage_z)

Create an instance of the class, and read simply read the values using the read methods.

About

A simple library to read values from an ADXL335 analog accelerometer using an Arduino-compatible device.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages