Joy-it SEN-MMA8452Q Bruksanvisning
Joy-it
Inte kategoriserad
SEN-MMA8452Q
Läs gratis den bruksanvisning för Joy-it SEN-MMA8452Q (6 sidor) i kategorin Inte kategoriserad. Guiden har ansetts hjälpsam av 19 personer och har ett genomsnittsbetyg på 4.5 stjärnor baserat på 10 recensioner. Har du en fråga om Joy-it SEN-MMA8452Q eller vill du ställa frågor till andra användare av produkten? Ställ en fråga
Sida 1/6

www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
3 AXSIS DIGITAL ACCELERATION SENSOR MODULE-
SEN MMA5482Q-
1. GENERAL INFORMATION
Dear customer,
Thank you very much for choosing our product. In the following, we will
show you what you need to consider during commissioning and use.
Should you unexpectedly encounter problems during use, please do not
hesitate to contact us.

www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
3. COMMISSIONING WITH THE RASPBERRY PI
Wiring:
Installation:
To be able to use the ADC, you have to enable I2C.
Enter the following command:
Now navigate to the point > and enable the I2C interface.Interfacing Options -I2C
sudo raspi config-
Raspberry Pi MMA8452Q
GND (Pin 6) GND
3v3 (Pin 1) VCC
SDA (Pin 3) SDA
SCL (Pin 5) SCL

www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
Code example:
# Distributed with a free will license.-
# Use it any way you want, profit or free, provided it fits in the licenses of its
# associated works.
import smbus
import time
# Get I2C bus
bus = smbus.SMBus(1)
# MMA8452Q address, 0x1D(28)
# Select Control register, 0x2A(42)
# 0x00(00) StandBy mode
bus.write_byte_data( , , 0x1D 0x2A 0x00)
# MMA8452Q address, 0x1D(28)
# Select Control register, 0x2A(42)
# 0x01(01) Active mode
bus.write_byte_data( , , 0x1D 0x2A 0x01)
# MMA8452Q address, 0x1D(28)
# Select Configuration register, 0x0E(14)
# 0x00(00) Set range to +/- 2g
bus.write_byte_data( , , 0x1D 0x0E 0x00)
time.sleep(0.5)
# MMA8452Q address, 0x1D(28)
# Read data back from 0x00(0), 7 bytes
# Status register, X Axis MSB, X- - - - - -Axis LSB, Y Axis MSB, Y Axis LSB, Z Axis MSB, Z Axis LSB
data = bus.read_i2c_block_data(0x1D, , 0x00 7)
# Convert the data
xAccl = (data[ ] * 1 256 16 + data[2]) /
if xAccl > :2047
- xAccl = 4096
yAccl = (data[ ] * 3 256 16 + data[4]) /
if yAccl > :2047
- yAccl = 4096
zAccl = (data[ ] * 5 256 16 + data[6]) /
if zAccl > :2047
- zAccl = 4096
# Output data to screen
print "Acceleration in X-Axis : %d" %xAccl
print "Acceleration in Y-Axis : %d" %yAccl
print "Acceleration in Z-Axis : %d" %zAccl
Now create a file with the extension ".py" and copy the code example into it.
Then execute this file with the console command shown below:
You should now see the values of the three axes as a console output.
sudo python file- name.py
Produktspecifikationer
Varumärke: | Joy-it |
Kategori: | Inte kategoriserad |
Modell: | SEN-MMA8452Q |
Behöver du hjälp?
Om du behöver hjälp med Joy-it SEN-MMA8452Q ställ en fråga nedan och andra användare kommer att svara dig
Inte kategoriserad Joy-it Manualer
8 April 2025
8 April 2025
31 Januari 2025
29 Januari 2025
29 Januari 2025
15 Januari 2025
2 Januari 2025
28 December 2024
5 December 2024
5 December 2024
Inte kategoriserad Manualer
- Sprolink
- Kubo
- Aerial
- Tiptop Audio
- Vaillant
- Woods
- JAR Systems
- Atika
- ETiger
- Ark
- TESLA Electronics
- Duravit
- Tempmate
- SilverStone
- SleepPro
Nyaste Inte kategoriserad Manualer
9 April 2025
9 April 2025
9 April 2025
9 April 2025
9 April 2025
9 April 2025
9 April 2025
9 April 2025
9 April 2025
9 April 2025