Code Monkey home page Code Monkey logo

accelerometer_adxl335's People

Contributors

elefantasy avatar jcastell7 avatar jonashoechst avatar killingjacky avatar lanselambor avatar lawliet004 avatar lynnl4 avatar pillar1989 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

accelerometer_adxl335's Issues

no matching function: int/int16_7

Im getting the below error message when running the examples:

Using library Accelerometer_ADXL335 at version 1.0.0 in folder: C:\Users
exit status 1
no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)'

Is this due to the function declaring the varaiables as int16_t in the original function and then declaring them as just int in the getAcceleration function?

T

Calibration example not compiling

When I try to run the Calibration code i get this error:

C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino: In function 'void setup()': Calibration:40:40: error: no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)' accelerometer.getXYZ(&x, &y, &z); ^ In file included from C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino:28:0: C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: candidate: void ADXL335::getXYZ(int16_t*, int16_t*, int16_t*) void getXYZ(int16_t *x,int16_t *y,int16_t *z); ^~~~~~ C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: no known conversion for argument 1 from 'int*' to 'int16_t* {aka short int*}' C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino: In function 'void calibrate(int*, int*, int*)': Calibration:84:36: error: no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)' accelerometer.getXYZ(&x, &y, &z); ^ In file included from C:\Users\janse\AppData\Local\Temp\arduino_modified_sketch_569615\Calibration.ino:28:0: C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: candidate: void ADXL335::getXYZ(int16_t*, int16_t*, int16_t*) void getXYZ(int16_t *x,int16_t *y,int16_t *z); ^~~~~~ C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335/ADXL335.h:54:10: note: no known conversion for argument 1 from 'int*' to 'int16_t* {aka short int*}' Mehrere Bibliotheken wurden für "ADXL335.h" gefunden Benutzt: C:\Users\janse\Documents\Arduino\libraries\Accelerometer_ADXL335 Nicht benutzt: C:\Users\janse\Documents\Arduino\libraries\AnalogAccelerometer exit status 1 no matching function for call to 'ADXL335::getXYZ(int*, int*, int*)'

Initial value of acceleration is 1.22g

I try to run the code with my accelerometer ADXL335 and print out the value in LCD. In my observation, the initial value of X-axis acceleration is high which is 1.22g to 1.23g. I thought that maybe the initial voltage of the sensor is high and effect the value of the acceleration in the beginning. Hence I try to delay around 1 second, when the sensor is turned on. But the value still same. Can I ask why? How to solve this problem?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.