Help for connection and programming of the GY-521 module with Blockly

Danielpbt

New Member
Hello, I would like to integrate an accelerometer / gyroscope in my project, and I think that through Blockly for Picaxe it could be done. At least in the "Grove Sensors" menu appear blocks that give rise to understand what could be.
I'm a bit disoriented, and I would like, if possible, for someone to help me get started with it. I have found many things about these devices, and I am studying their operation, but I did not find any page that explained it for Picaxe using Blockly, in all the websites I found them explained for Arduino.
The device is https://www.hotmcu.com/gy521-mpu6050-3axis-acceleration-gyroscope-6dof-module-p-83.html, and I would like to mount it on an AXE 020 plate and a picaxe 28X2.
Thank you in any case
Regards
 

hippy

Technical Support
Staff member

Danielpbt

New Member
Thank you for your help hippy. I will study the links that you have sent me, to see if I am capable of giving a solution, although at a first glance above that I left yesterday, it seemed complicated.
But then, what are the blocks that I have attached to the message used?(I have also put the translation that Blockly makes to Basic)
bloquesacelerómetro.pngpicaxe acelerómetro.png
Regards
 

hippy

Technical Support
Staff member

Danielpbt

New Member
A thousand thanks, I am discovering many things here.
So, if I'm getting it right, "Grove" is a kind of sensor family that Picaxe works with?
If I used for example, a generic MMA7660FC for sale on the Internet, would work the same as the Grove - 3-Axis Digital, or the modules that I showed earlier in the photos, come specifically designed for the components of the Grove family?

regards
 

hippy

Technical Support
Staff member
So, if I'm getting it right, "Grove" is a kind of sensor family that Picaxe works with?
That's right. The "Grove System" is a range of products and sensor boards designed and manufactured by Seeed Technology Co.,Ltd -

http://wiki.seeedstudio.com/Grove_System

Seeed implemented a design which allows a variety of sensor boards to interconnect to a controller using a simple 4-wire system and designed a range of sensor boards which can be used with that system. Those, and compatible third-party boards, are widely used in education and elsewhere and we added support to allow those to be more easily used with PICAXE chips.

Our AXE300 board allows Grove sensors to connect directly to a PICAXE-20M2 (or 20X2) requiring nothing more than Grove connecting cables -

http://www.picaxe.com/Hardware/Project-Boards/PICAXE-Grove-Board

More details on that and a description of what Grove sensors we support with Blockly blocks can be found at -

http://www.picaxe.com/Grove-Modules

Anyone can create a Grove compatible sensor board providing it can use one of those Grove 4-wire interfaces, usually I2C for more complicated boards. So an MPU6950 board should be doable and usable with that. But, along with the hardware, one needs to have the software to control it and use it.

If I used for example, a generic MMA7660FC for sale on the Internet, would work the same as the Grove - 3-Axis Digital, or the modules that I showed earlier in the photos, come specifically designed for the components of the Grove family?
That's right. As long as you connect it correctly to a PICAXE it should just work using the existing Blockly blocks.

The caveat there is where a Grove sensor board uses I2C to communicate with the controller, but the board does something with the data between the I2C and the actual chip used. For chips on sensor boards which use I2C themselves they most likely interface directly to the controller so not a problem.

And the other caveat is that a chip might have to be wired exactly how it is on an official Grove board for it to work exactly the same. For example if there were a resistor setting gain, one would have to use the same resistor or results would differ between an official board and home-made board. Likewise chip select and addressing lines lines which might put it at a different device address.
 
Last edited:

Danielpbt

New Member
Well, then I'm going to opt for the moment to complicate my life as little as possible, since I'm just in time. Which of the three Grove sensors would you recommend for a humanoid robot about 40 cm tall? Would I have to buy the sensor only, or is there something else I might need?
 
Top