This website is owned and operated by BuildCircuit.COM team. See details
- Need Help? buildcircuits.com@gmail.com
Product Categories
- FREE SHIPPING Items (6)
- Bluetooth Audio Amplifier (27)
- Bluetooth Audio Amplifier (Apt-X) (29)
- Bluetooth Audio Receiver/Transmitter modules (26)
- Bluetooth Audio volume controller (5)
- Bluetooth Relays (16)
- Scoreduino (11)
- Digital Scoreboards (32)
- Scoreduino DMD (15)
- Dot Matrix Displays (9)
- Arduino Modules (9)
- Arduino Shields (6)
- Counters (7)
- DIY Kits (17)
- Lazybones (9)
- Bluetooth Relays (16)
- RF Relays (7)
- Timer Relays (9)
- USB Relays (19)
- FM transmitters (3)
- Buck and Boost Modules (1)
- Power supplies (8)
Featured product
Description
This is the latest in a long, proven line of analog sensors - the holy grail of accelerometers. The ADXL335 is a triple axis accelerometer with extremely low noise and power consumption - only 320uA! The sensor has a full sensing range of +/-3g.
There is no on-board regulation, provided power should be between 1.8 and 3.6VDC.
Dimensions: 0.7x0.7"
Hooking it Up:
Here is the guide that illustrates how to connect an Arduino to the ADXL345 breakout board. The following is a table describing which pins on the Arduino should be connected to the pins on the accelerometer:
Arduino Pin | ADXL345 Pin |
0 | Z |
1 | Y |
2 | X |
3V3 | VCC |
Gnd |
GND |
Test Code:
//Analog read pins
const int xPin = 0;
const int yPin = 1;
const int zPin = 2;
//The minimum and maximum values that came from
//the accelerometer while standing still
//You very well may need to change these
int minVal =270;
int maxVal =440;
//to hold the caculated values
double x;
double y;
double z;
void setup(){
Serial.begin(9600);
}
void loop(){
//read the analog values from the accelerometer
int xRead = analogRead(xPin);
int yRead = analogRead(yPin);
int zRead = analogRead(zPin);
//convert read values to degrees -90 to 90 - Needed for atan2
int xAng = map(xRead, minVal, maxVal, -90, 90);
int yAng = map(yRead, minVal, maxVal, -90, 90);
int zAng = map(zRead, minVal, maxVal, -90, 90);
//Caculate 360deg values like so: atan2(-yAng, -zAng)
//atan2 outputs the value of -π to π (radians)
//We are then converting the radians to degrees
x = RAD_TO_DEG * (atan2(-yAng, -zAng) + PI);
y = RAD_TO_DEG * (atan2(-xAng, -zAng) + PI);
z = RAD_TO_DEG * (atan2(-yAng, -xAng) + PI);
//Output the caculations
Serial.print("x: ");
Serial.print(x);
Serial.print(" | y: ");
Serial.print(y);
Serial.print(" | z: ");
Serial.println(z);
delay(100);//just here to slow down the serial output - Easier to read
}
Shipping & Return
SHIPPING
Our default shipping method is Registered International Post with a tracking code. Alternatively, you may opt for express shipping via DHL or FedEx.
Please note that we endeavor to ship all orders within 24 to 48 hours. The typical delivery time frame ranges between 2 to 4 weeks.
Kindly be aware that unforeseen circumstances, including customs or postal delays, may occasionally affect delivery times beyond our control.
Customers are responsible for any customs charges and should verify their country's customs policy.
RETURNS
If you are dissatisfied with the product, you may initiate a return within one month from the date of delivery. Please ensure that the product is sent back to our address in Sydney, Australia. Kindly note that all shipping charges associated with the return are the responsibility of the customer.
Reviews
Related Products
Recently viewed products
Copyright © BUILDCIRCUIT.COM and SCOREDUINO.COM. All Rights Reserved.
-
WHAT ARE YOU LOOKING FOR?Search
- Login / Register
- Home
-
Shop
All categories
- FREE SHIPPING Items
- Bluetooth Audio Amplifier
- Bluetooth Audio Amplifier (Apt-X)
- Bluetooth Audio Receiver/Transmitter modules
- Bluetooth Audio volume controller
- Bluetooth Relays
- Scoreduino
- Digital Scoreboards
- Scoreduino DMD
- Dot Matrix Displays
- Arduino Modules
- Arduino Shields
- Counters
- DIY Kits
- Lazybones
- Bluetooth Relays
- RF Relays
- Timer Relays
- USB Relays
- FM transmitters
- Buck and Boost Modules
- Power supplies
- page
- Blog Tutorials and Documents
- Wishlist (0)
- Compare (0)
- Contact Us