crwdns2933423:0crwdne2933423:0

Beschleunigungssensor ADXL345 hinzufügen

crwdns2936315:0crwdne2936315:0
crwdns2936319:0crwdne2936319:0
crwdns2931653:05crwdne2931653:0
Adding ADXL345 Accelerometer, Prechecks: crwdns2935265:00crwdnd2935265:01crwdnd2935265:01crwdne2935265:0
Prechecks
  • Check to make sure the RPI can communicate with the ADXL345 by running the following command in console

  • ACCELEROMETER_QUERY

  • It should return something like:

  • adxl345 values (x, y, z): -152.983740, 10249.910580, 152.983740

  • f you get an error like Invalid adxl345 id (got xx vs e5), where xx is some other ID, it is indicative of the connection problem with ADXL345, or the faulty sensor. Double-check the power, the wiring (that it matches the schematics, no wire is broken or loose, etc.), and soldering quality.

Stelle sicher, dass das RPI mit den ADXL345 kommunizieren kann, indem Du folgenden Befehl eingibst:

ACCELEROMETER_QUERY

Es sollte etwas ähnliches ausgegeben werden, wie:

adxl345 values (x, y, z): -152.983740, 10249.910580, 152.983740

Wenn Du eine Fehlermeldung erhältst, wie "adxl345 id (got xx vs e5)" - anstelle "XX" steht eine andere ID-Nummer - ist das ein Hinweis für ein Kommunikationsproblem oder auf einen defekten Sensor. Überprüfe die Stromversorgung, die Verdrahtung (entspricht der Vorgabe, kein Kabelbruch oder Kabel lose) und die Qualität der Lötstellen.

crwdns2944171:0crwdnd2944171:0crwdnd2944171:0crwdnd2944171:0crwdne2944171:0