Thứ Ba, 1 tháng 1, 2019

Youtube daily Jan 1 2019

Hello. It is Igor with you on the channel Home Made. And today we have the BNO055

absolute orientation sensor on the review, which DFROBOT has provided

for review. Go. DFROBOT presents a catalog of various shields with

a sensor and a development platform. Here you can find not only the familiar

Arduino, but also ESP, Raspberry PI and various other development

platforms. It also provides a huge selection of robotic platforms,

from the simplest forms to the very complex ones, in order to create cool robots.

A large number of examples, as well as finished projects will help in the quick

start and mastering of programming. Or help to find some new interesting

project for yourself. According to the characteristics, this sensor has

an internal 32-bit microcontroller inside, which completely processes all data.

That is, there is not just an accelerometer and a gyroscope, a magnetometer,

but there is also a microcontroller that processes the data and somehow filters them,

corrects it, and outputs it in its pure form. Therefore, the data

from this sensor is very, very accurate. In addition, this sensor has

the ability to auto-adjust, which is very cool.

And I do not know of any other sensor,

which itself would be self-corrected. This is generally cool.

Cool sensor. Very cool shows all. So, what are our characteristics?

16-bit gyroscope, 14-bit accelerometer, magnetometer. Here you can also

the characteristics of the accelerometer and gyroscope in more detail. For me it is,

frankly, incomprehensible numbers. When I get it in its pure form,

I understand about what I get. The concept of a magnetometer is hardly

understandable to me, because I did not work much with this. All these position

sensors in space for me is not quite a studied topic.

So for example what G means, I will not tell you.

BMP280 pressure sensor is a completely normal pressure sensor. The sensor

itself works on I2C. More precisely, it all depends on what

settings on it will be set. If you turn it over, we have

ps1 and ps2 contacts on the back. And if you turn to datashit, depending on whether

these contacts are pulled to the plus or minus, this sensor can be

reconfigured to I2C, or UART, or some other type of I2C

interface. In principle, this whole comb can not be used. Even though

I soldered it, now I understand that it is worth nothing here. It should be removed

on the contrary, because it interferes. Because two power contacts

and two I2C contacts in this socket are enough to use

and control this sensor. Well, let us try

to connect everything now, it is absolutely simple. So, I put it

on the breadboard, because of these pins, it then falls, it does not lie flat.

I will connect it all to UNO. in principle, no matter what, you can connect

to any arduino that works with the I2C interface. And connect to the computer.

Further we will need to download the library. To do this, go to the site DFROBOT,

go down a little lower, open the documentation. Get on the page with

the documentation. If you descend a little lower,

you can download 2 libraries here, - for the BNO055 sensor itself,

and if necessary, for the BMP280. I'll go a little higher,

it says here that the BNO055 sensor works at 0x28, and BMP280 -

at 0x76 for the I2C line. In case you use any other libraries,

then you will need to specify these addresses in order

to avoid any confusion, so that the libraries will work.

By the way, I tried to run this sensor with the adafruit library,

but for some reason it did not work. The library does not see this sensor

at close range, as if it is not on the line at all. Although I registered the address in the library,

and it seems that all the commands are correctly served to the same addresses

that this sensor receives, but this sensor does not see. In principle,

it is not scary, because this library BNO055 from DFROBOT

is also quite working. The only thing I added here

are some adjustments. I slightly edited the library, added

some functions, and now you can manually start the auto-tuning

of sensors. Now we will open the arduino IDE, where we will need

to pre-connect the library. So opened. Go to file--> examples-->

DFROBOT_BNO055-master. This library is already corrected,

I added several functions to it. Therefore, the link to the corrected library will be

in the description, but the original library will also be. But I recommend to take

a corrected one, because there will be two functions here - calibration and saving

calibration. Well, let's get the simplest - getting Euler angles. Open up is

a compilation of the sketch. Open the serial port.

And went with us, so I turn, here we have turns, yaw - it is turns.

I try to tilt to the side, it roll. And pitch too - pitch. He works too.

Everything is working. Other data can be obtained in the same way, for example, an accelerometer

can be obtained or quaternions. And it is generally surprising, that the sensor itself

already produces a quaterion. Though I understand this a little, for me this topic is obscure.

But nevertheless, it is not necessary to write some very long codes in the sketch itself for processing

the data received from the sensor. The sensor itself will count

everything, it will do everything. But there is one such minus. Here you are, I now take

a compass, set, turn. Here we are north.

I will now start the sensor, open the serial port. And here it shows that the north is that side.

That is, here in this side we have a server.

Now I turn on the power to reset the sensor. I turn the sensor,

turn on the power again, open the port monitor, and we have

zero degrees. That is, 0 degrees is showing on that side already.

I turn, and you can see 360 ​​and 0 degrees. On the other side north of us. That is,

every time the sensor is turned on, it needs calibration. And here there are two options:

either load previously saved calibration, or make calibration

by a sensor. That is why I did a library modification.

I added several functions that can be called.

I made examples. Calibration. Open this example.

And here at the beginning we have added this function. This is a sensor calibration function.

It goes into calibration mode, and it needs to be rotated a couple of times,

in a few movements, while the gyroscope, accelerometer and magnetometer

are being calibrated. And as soon as their calibration occurs, then it will be

necessary to show a certain value. Let's flash this sketch. open the port monitor.

And went calibration. The gyroscope was immediately calibrated, value 3.

It is necessary that all systems — the calibration of the accelerometer and the magnetometer —

also become in the value 3. The magnetometer is generally easily

calibrated. For this, you just need to take the sensor and wave it in the air. Everything.

magnetometer calibrated. In order for the accelerometer to be calibrated

(I am confusing a little, in which direction, it seems, in this direction) you need to turn

45 degrees, support a little, and again 45 degrees. No, it means not in this direction.

The accelerometer did not calibrate, which means the other way. Turned,

turned, supported a little. Everything, calibrated. And although I did not

specifically turn the sensor, but look, this is where the north is, as the compass shows.

And I now turn the sensor too, and he also points y to the north with a line y.

I have magnetic fields here, and I sometimes get off on a compass.

Here in this place especially.

So the compass may lie a little. However, now the sensor shows clearly,

it is calibrated. You do not need to write some very complex calibration programs,

for calculating angles. You need to make a couple of movements, and the sensor

is calibrated. Self-calibration has occurred. Standard values ​​went further.

Now you can safely rotate the sensor.

It is calibrated. And if the calibration failed, and you need to calibrate it,

it is enough to call this function again. While the MPU is fully calibrated. That's all.

until a full calibration occurs, it is not calibrated.

Very interesting. Cool sensor. The fact that it can calibrate itself

and adjust itself is a huge plus.

Which, of course, is not in any other sensor. At least I have not seen anything like it.

And accordingly it is much more accurate than any other sensor.

As an example of its performance, there is also a program such IMU_Show

version 1.5. and in order for it to work, you need to upload a sketch there.

We go:Examples-->DFROBOT_display_dof10.

Load this example. Nothing special here. And in this program

we select the com-port to which the arduino is connected.

Speed. And click connect. And send the values. So I turn the sensor,

and also the picture itself turns. Direction shows.

Interestingly everything works. Here is also a BMP280 pressure

sensor on board. For him, too, has its own library. You can, in principle,

use any library. Here is one single example. Download it.

and everything should work. In principle, an excellent layout - accelerometer, gyroscope,

magnetometer + pressure sensor. These sensors are great to use in some

devices where you need to do positioning in space -

for example, in a quadcopter or in a radio-controlled plane, in some such

device. one way or another sketch stitched. Open the serial port. And here we see

the temperature showing 24 degrees and pressure. Here is such a cool interesting

sensor. This is one of the best sensors I've ever met, so

I recommend it to you. If you know of some best sensor that can be

automatically calibrated, please write in the comments, it will be interesting. I wish you

success. Let your projects be cool, interesting.

Subscribe to the channel, be sure to put a bell,

so as not to miss new videos. Bye everyone.

For more infomation >> Датчик абсолютной ориентации BNO055+BMP280. Лучший датчик! 10DOF AHRS - Duration: 13:27.

-------------------------------------------

Pirzada Sanaullah Siddqui new waz 2019) হারাম ! হারাম !হারাম ! - Duration: 1:24:07.

www. begum saheba.com

Không có nhận xét nào:

Đăng nhận xét