{"id":1727,"date":"2019-09-20T01:36:04","date_gmt":"2019-09-20T08:36:04","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=1727"},"modified":"2019-09-20T01:36:58","modified_gmt":"2019-09-20T08:36:58","slug":"accelorometer-gyroscope","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/micro-controllers\/arduino\/robot-car\/accelorometer-gyroscope\/","title":{"rendered":"Accelorometer Gyroscope"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">GY-521<\/h2>\n\n\n\n<p>The board has a MEMS accelerometer and a MEMS gyroscope plus a  magnetometer (compass) MPU9150 .  The circuit provides 16-bits analog to digital conversion hardware for each channel (x, y, &amp; z) on a i2c bus.  The  accelerometer on the board measures the acceleration along xyz directions, while the gyroscope measures the angular acceleration on one axis.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Connections:<br>VCC -> 3.3 V \/ 5 V (better)<br>GND -> GND<br>SCL -> A5<br>SDA -> A4<br>XDA -><br>XCL -><br>ADO -><br>INT -><\/pre>\n\n\n\n<p>The analog pins (set to INPUT) read the values from the sensor on pins A5 and A6 and data values will be sent to the serial port. To view the values open the Serial Monitor. Moving the sensor will display the values change.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>the gyro module communicates with the Arduino through I2C serial communication via the serial clock (SCL) and data (SDA)<\/li><li>the MPU6050 chip needs 3.3V but a voltage regulator on the GY-521 board allows you to give it up to 5V<\/li><\/ul>\n\n\n\n<p>Schematic<\/p>\n\n\n\n<p>Pic<\/p>\n\n\n\n<p>Sample Code<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GY-271<\/h2>\n\n\n\n<p>Schematic<\/p>\n\n\n\n<p>Pic<\/p>\n\n\n\n<p>Sample Code<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GY-521 The board has a MEMS accelerometer and a MEMS gyroscope plus a magnetometer (compass) MPU9150 . The circuit provides 16-bits analog to digital conversion hardware for each channel (x, y, &amp; z) on a i2c bus. The accelerometer on the board measures the acceleration along xyz directions, while the gyroscope measures the angular acceleration &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/micro-controllers\/arduino\/robot-car\/accelorometer-gyroscope\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Accelorometer Gyroscope&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1581,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1727","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1727"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1727\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/1581"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}