Instrukcja obs艂ugi Joy-It MPU6050
Przeczytaj poni偶ej 馃摉 instrukcj臋 obs艂ugi w j臋zyku polskim dla Joy-It MPU6050 (9 stron) w kategorii detektor. Ta instrukcja by艂a pomocna dla 13 os贸b i zosta艂a oceniona przez 2 u偶ytkownik贸w na 艣rednio 4.5 gwiazdek
Strona 1/9
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
GYROSC
GYROSC
GYROSC
GYROSCGYROSCOPE & A
OPE & A
OPE & A
OPE & AOPE & AC
C
C
CCCELEROMETER MODULE
CELEROMETER MODULE
CELEROMETER MODULE
CELEROMETER MODULECELEROMETER MODULE
SEN MPU6050-
1. GENERAL INFORMATION
1. GENERAL INFORMATION
1. GENERAL INFORMATION
1. GENERAL INFORMATION1. GENERAL INFORMATION
Dear costumer,
thank you very much for choosing our product.
In following, we will introduce you to what to observe while starting up
and using this product.
Should you encounter any unexpected problems during use, please do
not hesitate to contact us.
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
2. COMMISSIONING WITH A
2. COMMISSIONING WITH A
2. COMMISSIONING WITH A
2. COMMISSIONING WITH A2. COMMISSIONING WITH A RASPBERRY PI
RASPBERRY PI
RASPBERRY PI
RASPBERRY PI RASPBERRY PI
Raspberry Pi MPU6050
3v3 (Pin1) VCC
GND (Pin 6) GND
SCL (Pin 5) SCL
SDA (Pin 3) SDA
Wiring:
Wiring:
Wiring:
Wiring:Wiring:
A顮卐r the sensor is connected, you have to activate I2C. Open the terminal and enter the following com-
mand:
Now enable the I2C interface under .
Interfaci
Interfaci
Interfaci
InterfaciInterfacing Options
ng Options
ng Options
ng Options ng Options -> I2C
I2C
I2C
I2CI2C
You can now create the program file.
First, we create a new file in the document folder with following commands:
Then copy the example code, shown on the following pages, completely into the recently created 顪甽e.
cd Documents
sudo nano MPU6050.py
sudo raspi-config
www.joy it.net-
Pascalstr. 8 47506 Neukirchen Vluyn-
2. COMMISSIONING WITH A RASPBERRY PI
2. COMMISSIONING WITH A RASPBERRY PI
2. COMMISSIONING WITH A RASPBERRY PI
2. COMMISSIONING WITH A RASPBERRY PI2. COMMISSIONING WITH A RASPBERRY PI
#!/usr/bin/python
import smbus
import math
import time
power_mgmt_1 = 0x6b
power_mgmt_2 = 0x6c
def read_byte(reg):
bus.read_byte_data(address, reg)return
def read_word(reg):
h = bus.read_byte_data(address, reg)
l = bus.read_byte_data(address, reg+1)
value = (h << ) + l8
valuereturn
def read_word_2c(reg):
val = read_word(reg)
(val >= ):if 0x8000
(( val) + return -65535 -1)
else:
valreturn
def dist(a,b):
math.sqrt((a*a)+(b*b))return
def get_y_rotation(x,y,z):
radians = math.atan2(x, dist(y,z))
math.degrees(radians)return -
def get_x_rotation(x,y,z):
radians = math.atan2(y, dist(x,z))
math.degrees(radians)return
bus = smbus.SMBus( ) 1
address = 0x68 # I2C Address-
bus.write_byte_data(address, power_mgmt_1, 0)
while :True
)gyroskop_xout = read_word_2c(0x43
)gyroskop_yout = read_word_2c(0x45
)gyroskop_zout = read_word_2c(0x47
Continuation of the example code on the next page.
Specyfikacje produktu
Marka: | Joy-It |
Kategoria: | detektor |
Model: | MPU6050 |
Potrzebujesz pomocy?
Je艣li potrzebujesz pomocy z Joy-It MPU6050, zadaj pytanie poni偶ej, a inni u偶ytkownicy Ci odpowiedz膮
Instrukcje detektor Joy-It
21 Wrze艣nia 2024
Instrukcje detektor
- detektor Pioneer
- detektor Voltcraft
- detektor Milwaukee
- detektor Dometic
- detektor Bosch
- detektor Gigaset
- detektor Hikvision
- detektor Toolcraft
- detektor Nedis
- detektor Nexa
- detektor Black & Decker
- detektor Marquant
- detektor Garmin
- detektor Evolveo
- detektor Silverline
- detektor Honeywell
- detektor Tripp Lite
- detektor Steinel
- detektor Mercury
- detektor Testo
- detektor ORNO
- detektor Chauvin Arnoux
- detektor DSC
- detektor Cobra
- detektor IFM
- detektor Vimar
- detektor V-TAC
- detektor Dahua Technology
- detektor Techno Line
- detektor Perel
- detektor Trotec
- detektor Uniden
- detektor Velleman
- detektor Ferguson
- detektor Homematic IP
- detektor Pyle
- detektor Fluke
- detektor Edimax
- detektor Grothe
- detektor National Geographic
- detektor Ferrex
- detektor Maginon
- detektor Genie
- detektor Metrix
- detektor Axis
- detektor Abus
- detektor Elro
- detektor Olympia
- detektor Netatmo
- detektor Optex
- detektor Schwaiger
- detektor ZKTeco
- detektor Extech
- detektor Denver
- detektor Testboy
- detektor Garrett
- detektor Kyoritsu
- detektor Vemer
- detektor Busch-Jaeger
- detektor Powerfix
- detektor Seaward
- detektor Alecto
- detektor Steinberg
- detektor JUNG
- detektor X-Sense
- detektor HT Instruments
- detektor Smartwares
- detektor Skyscan
- detektor Skil
- detektor Beha-Amprobe
- detektor Laserliner
- detektor Inovonics
- detektor Soler & Palau
- detektor AngelEye
- detektor Amprobe
- detektor Brennenstuhl
- detektor Sun Joe
- detektor Ei Electronics
- detektor Techly
- detektor Gossen
- detektor Flir
- detektor Royal Sovereign
- detektor AcuRite
- detektor Safescan
- detektor Siedle
- detektor FireAngel
- detektor Konig
- detektor BRK
- detektor Duro
- detektor Xavax
- detektor X4-Tech
- detektor FireX
- detektor Iget
- detektor Popp
- detektor Satel
- detektor Sauter
- detektor Kreator
- detektor Bearware
- detektor Multimetrix
- detektor Gamma Scout
- detektor Ebode
- detektor Escort
- detektor System Sensor
- detektor Guardian Avionics
- detektor Thitronik
- detektor Whistler
- detektor Cavius
- detektor Pentatech
- detektor PCE Instruments
- detektor Flow Smoke Detector
- detektor Benewake
- detektor BeeSecure
- detektor Fisher
- detektor SureCall
- detektor Schabus
- detektor Zircon
- detektor Protector
- detektor Sanwa
- detektor Resideo
- detektor STI
- detektor BlendMount
- detektor K40
- detektor Gewiss
- detektor Seco-Larm
- detektor Silent Knight
- detektor GEV
- detektor S.E. International
- detektor Rocky Mountain
- detektor Winland
- detektor Noyafa
Najnowsze instrukcje dla detektor
11 Stycznia 2025
8 Stycznia 2025
3 Stycznia 2025
30 Grudnia 2025
30 Grudnia 2025
30 Grudnia 2025
29 Grudnia 2024
29 Grudnia 2024
28 Grudnia 2024
28 Grudnia 2024