Hello, I know that there is a search to get infos about this, but I get no answer about my question. I have connected a BMA020 to my Arduino Mega 2560:
But SCL is 21 and SDA is 20 on the MEGA and I connected not to D12, I connected to 5V.
Could it be right? If I move the senor, it look like there is no change in the output.
Is there someone to help me?
I have a WMP+ and I have already testet it with my MEGA. So I want to test the BMA020 how it works and then I want to combine both sensors. So if someone have a example (connection and sketch) for this, I will be very happy.
There are so many info about both sensors and arduino, but in consumption of the MultiWii boards. I don´t want to use this boards.
I'm not very familiar with the Wire library, however from the documentation, I can't see any reason for the second "Wire.endTransmission();" call in function accRead(). What happens if you remove it?
The data sheet says you can read all 6 registers in one go. If you request 6 bytes starting at address 0x02, what data do you get back?
My problem ist that it seem to get connected to the sensor and there is something to read form it. I have to say that in this period which shows the result above, I didn't move the sensor. For me it is confusing that the values change so much although I do not move this thing.
Is it right, that I could say there is a connection to the sensor or it is possible that I get values from what ever?
I have problems to add a picture here, so I try this:
This is how I connect the BMA020 to the Arduino MEAG 2560:
BMA020 PINs Arduino
UIN / Pullup / CSB to 5 Volt
ENABLE
INT
GND
SCK to SCL (21)
SDI to SDA (20)
SDO / GND to GND
My last tests today give me the opinion that I get values form the sensor and they change if I move it, but I think they are confuse.
Here my last sketch for that:
My problem is that the values are umping in my eyes because in the time of this values I didn't move the sensor. And at last I am not able to interpret the values. The datasheet give me no idea about this because my understanding is to low.
It look much better. I saw X and Y changing by turning the sensor. Only the Z value is not conclusive for me. I the example I don#t move the sensor. Have I calibrate the sensor at the start?
What do you think?
Ok, Z is the turn in the plateau of the BMA020. I think it could not give values like X and Z. But what shows Z. Is this a difference?
Sorry, I am sure the answer is in the datasheet, but I have problems to understand.
ok, up side down I get roughly -230, normal position 230, so the same but in negative. If I turn it to one side I get roughly 0. Ok, I get value to deal with, but I think they are strange. To work with them is ok, I could calibrate the software to this, but I there is a possibility to understand it will be great.
now I found an artikel about this sensor and there is the info about the Z. It is the normal gravity that cause this value. I am actually not abel to interpret the 230 but I will search for that.
loby:
now I found an artikel about this sensor and there is the info about the Z. It is the normal gravity that cause this value. I am actually not abel to interpret the 230 but I will search for that.
Gravity and acceleration are indistinguishable according to Einstein. The datasheet for that sensor at meinemullemaus.de says that with the default settings, the sensitivity is between 166 and 346 per 1g in the z-axis. So that Z-axis reading is well within the specification.
The datasheet also says that the offsets in the readings may be up to +/- 0.22g. So the x and y axis readings you are getting at zero acceleration are also within tolerance. Of course, if the sensor is tilted, the x and y axes will sense gravity as well.
thank you very much! Now I understand it. Sorry, but the datasheet is to difficult to read for me. I always tried to find all new information I got in this datasheet, but I loose. Ok, so I could handle this values in my project.
Again, thank you.