ElecMaster JY-61 Series User Manual Download Page 9

 

 

http://www.aliexpress.com/store/1836321

 

- 9 - 

 

5.1

 

PC program to Module   

Note

 

1.

 

Default settings using the serial port, baud rate 115200, return rate 100Hz. configurations 

can be powered down save, so only configured once on the line. 

2.

 

Format 

0xFF 

0xAA 

Command 

 

Content 

Function 

Description 

0xFF 0xAA 0x52 

Angle initialization 

Z axis angle to zero 

0xFF 0xAA 0x61 

Using serial port, disable I2C 

Power down saved 

0xFF 0xAA 0x62 

Disable serial port, using I2C interface 

Power down saved 

0xFF 0xAA 0x63 

Baud rate115200

Frame rate 100Hz 

Power down saved 

0xFF 0xAA 0x64 

Baud rate 9600

Frame rate 20Hz 

Power down saved 

Note

 

1.After the module is powered up, the MCU will be automatically calibrated at first to 

eliminate the gyro zero drift, and Z axis will be re initialized to 0. 

2.The default baud rate is 115200,return rate 100Hz, Configuration can be configured by PC 

program, suggest to use the PC program to set the JY-61 module. 

5.2

 

Module to PC program: 

The module sends the data to the host computer into 3 data packets, acceleration packet, 

angular velocity packet and the angle packet, and the 3 packet are sent in sequence . 

5.2.1

 

Acceleration output

 

0x55 

0x51 

AxL 

AxH 

AyL 

AyH 

AzL   

AzH 

TL 

TH 

SUM 

Calculate formula

 

a

x

=((AxH<<8)|AxL)/32768*16g(g is Gravity acceleration

9.8m/s

2

a

y

=((AyH<<8)|AyL)/32768*16g(g is Gravity acceleration

9.8m/s

2

a

z

=((AzH<<8)|AzL)/32768*16g(g is Gravity acceleration

9.8m/s

2

Temperature calculated formular

 

T=((TH<<8)|TL) /340+36.53 

℃ 

Checksum

 

Sum=0x55+0x51+AxH+AxL+AyH+AyL+AzH+AzL+TH+TL 

Note

 

1

 

the data is transmitted in accordance with the 16 hexadecimal, not ASCII code 

2

 

Each data is transmitted in a low byte and a high byte, and the two is combined into 

a short type of symbol. Such as X axis acceleration data Ax, where AxL is the low 

byte, AxH is high byte. 

The conversion method is as follows: 

Assuming Data is the actual data, DataH for its high byte, DataL for its low byte part, 

then: Data= ((short) DataH<<8) |DataL. Here we must pay attention to that force the 

DataH to be converted into a symbol of the short type of data and then after shift 8 

Summary of Contents for JY-61 Series

Page 1: ...ded system 5 Supports serial port Data output frequency 100Hz baud rate 115200 20Hz 9600 baud 6 Module retains MPU6050 I2C interface in order to meet the needs of advanced users to get the original da...

Page 2: ...X axis the upper is Y axis the Z axis is perpendicular to the surface of the paper to yourself The direction of rotation is defined by the right hand rule that is the thumb of the right hand is pointe...

Page 3: ...interface module needs to be configed as the following figure when connecting to 6050 module 4 2 Installation USB TTL module driver First the module is connected via USB TTL module to the computer in...

Page 4: ...ramework4 0 Net http www microsoft com zh cn download details aspx id 17718 Open the PC software first click on the baud rate menu select the baud rate module the default setting is 115200 Then click...

Page 5: ...rd the data Click the record button the software can record data to a text file click on the record button and when finish recording need to click the stop the file will be written to the hard disk th...

Page 6: ...321 6 Data can be imported into the Exel or analysis in Matlab In the Matlab environment running xxx m document and it can plot of the data 6 Language Click on the language menu you can switch the lan...

Page 7: ...display screen displaying three dimensional posture of the module After starting the three dimensional model the default interface is full screen and to change back to the window mode you can press th...

Page 8: ...the JY 61 module but the configuration of the module can be saved when set it then you can use it 4 6 PC program monitoring module and MCU communication PC program and MCU can get the data from JY 61...

Page 9: ...2 Module to PC program The module sends the data to the host computer into 3 data packets acceleration packet angular velocity packet and the angle packet and the 3 packet are sent in sequence 5 2 1...

Page 10: ...system the X axis is East the Y axis is North Z axis toward sky Euler coordinate system rotation sequence defined attitude is z y x first rotates around the Z axis Then around the Y axis and then arou...

Page 11: ...0 short chrTemp 3 8 chrTemp 2 32768 0 180 Angle 1 short chrTemp 5 8 chrTemp 4 32768 0 180 Angle 2 short chrTemp 7 8 chrTemp 6 32768 0 180 T short chrTemp 9 8 chrTemp 8 340 0 36 25 printf a 4 3f t 4 3f...

Page 12: ...8 0 16 T short Re_buf 9 8 Re_buf 8 340 0 36 25 break case 0x52 w 0 short Re_buf 3 8 Re_buf 2 32768 0 2000 w 1 short Re_buf 5 8 Re_buf 4 32768 0 2000 w 2 short Re_buf 7 8 Re_buf 6 32768 0 2000 T short...

Reviews: