ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า

GY-61 ADXL335 3-Axis Accelerometer Module

 

GY-61 ADXL335 3-Axis Accelerometer Module is a three axis accelerometer sensor module based on ADXL335 integrated circuit. The ADXL335 is a triple axis accelerometer with extremely low noise and power consumption. The sensor has a full sensing range of +/-3g. It can measure the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting from motion, shock, or vibration.

There is an on-board 3.3V voltage regulator to power the ADXL335 so power provided should be between 3.3V and 6V DC.

 

GY-61 ADXL335 3-Axis Accelerometer Module - General Specifications

  • ADXL335 3-axis Accelerometer
  • On-board 3.3V Voltage Regulator
  • Analog voltage output centered at 1.65V
  • Suitable for connection to 5V and 3.3V systems

 

GY-61 ADXL335 3-Axis Accelerometer Module - Technical Specifications

  • Supply Voltage: 3V - 5V
  • Full scale range: +/-3g
  • Sensitivity: 300mV/g (Typ)

The accelerometer module has 5 pins, namely

  1. GND-To be connected to Arduino's GND
  2. VCC-To be connected to Arduino's 5V
  3. X-To be connected to Analog Pin A5
  4. Y-To be connected to Analog Pin A4
  5. Z-To be connected to Analog Pin A3

 ติดตั้ง library ก่อนใช้งาน

Adafruit display library:https://github.com/adafruit/Adafruit_SSD1306
Adafruit GFX library: https://github.com/adafruit/Adafruit-GFX-Library
U8g2 library: https://github.com/SGBotic/U8g2_Arduino



/*  
    Arduino with Test H040

      GY-61 ADXL335 3-Axis Accelerometer Module
         For complete project details, visit:Arduinoshop99

*/

 

#include "Arduino.h"

#include "U8g2lib.h"

#include "Wire.h"

const int xpin = A0; // x-axis of the accelerometer

const int ypin = A1; // y-axis

const int zpin = A2; // z-axis

 

U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); 

 

void setup(void) {

  Wire.begin();

  Serial.begin(115200);

 

  u8g2.begin();  

}

void loop(void) {

 

int x = analogRead(xpin); //read from xpin

delay(1); //

int y = analogRead(ypin); //read from ypin

delay(1); 

int z = analogRead(zpin); //read from zpin

 

float zero_G = 512.0; //ADC is 0~1023 the zero g output equal to Vs/2

float scale = 102.3; //ADXL335330 Sensitivity is 330mv/g

//330 * 1024/3.3/1000

 //print x value on serial monitor

float x1=(((float)x - 331.5)/65*9.8);

Serial.print(" x:");

Serial.print(x1);

 //print y value on serial monitor

float y1=(((float)y - 329.5)/68.5*9.8);

Serial.print(" y:");

Serial.print(y1);

//print z value on serial monitor

float z1=(((float)z - 340)/68*9.8);

Serial.print(" z:");

Serial.println(z1);

 

delay(200); 

  

  u8g2.firstPage();

  do {

   u8g2.setFont(u8g2_font_ncenB18_tr);

    u8g2.drawStr(2,20,"x :");

    u8g2.setCursor(40, 20);

            u8g2.print(x1);

    u8g2.drawStr(2,40,"y :");

        u8g2.setCursor(40, 40);

            u8g2.print(y1);

    u8g2.drawStr(2,60,"z :");

       u8g2.setCursor(40, 60);

            u8g2.print(z1);

    

  } while ( u8g2.nextPage() );

 

}


เงื่อนไขอื่นๆ
Tags

วิธีการชำระเงิน

บมจ. ธนาคารกรุงไทย สาขาโรงไฟฟ้าบางปะกง ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขาบิ๊กซี ฉะเชิงเทรา 2 ออมทรัพย์
พร้อมเพย์ สาขา- -
Scan this!
สนธยา ใจผ่อง
063-xxxxxx-8
Accept All Banks | รับเงินได้จากทุกธนาคาร
พูดคุย-สอบถาม