# Getting error while calibrating MPU6050

**URL:** <https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061>\
**Category:** Uncategorized\
**Created:** [March 24, 2019, 6:18pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061 "2019-03-24T18:18:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![atta-syed](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@atta-syed](https://forum.xod.io/u/atta-syed)\
**Post date:** [March 24, 2019, 6:18pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/1 "2019-03-24T18:18:02Z")

</div>

I am trying to calibrate MPU6050 but this error in page is constantly unable to deploy. I have tired third party required libraries. I don’t what wrong.

[gabbapeople](https://forum.xod.io/u/gabbapeople) library used for it.

Future any guidance on Arduino + MPU6050 + L293D Motor Diver self balancing bot would be highly appreciated.

 ![Error-1](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/9/966a10ff0925b216ebdd4abdd0ed835e25df18b7.png)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [March 24, 2019, 6:21pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/2 "2019-03-24T18:21:09Z")

</div>

hi, attach the detail of the error, copy what is on the red and paste it here.

---

<div class="post-metadata">

**Author:** ![atta-syed](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@atta-syed](https://forum.xod.io/u/atta-syed)\
**Post date:** [March 25, 2019, 7:20am UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/3 "2019-03-25T07:20:56Z")

</div>

compilation terminated.

Error: exit status 1  
Compilation failed.  
Compilation failed  
Command `C:\Program Files\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\ayub\AppData\Local\Temp\arduino-clirfSG9S\.cli-config.yml compile --fqbn arduino:avr:mega:cpu=atmega2560 --verbose C:\Users\ayub\AppData\Local\Temp\xod_temp_sketchbookZRoUXb\xod_1553498402219_sketch` failed with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [March 25, 2019, 12:43pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/4 "2019-03-25T12:43:44Z")

</div>

This basically just says “There were errors above”. You need to scroll back to see the actual errors.

---

<div class="post-metadata">

**Author:** ![atta-syed](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@atta-syed](https://forum.xod.io/u/atta-syed)\
**Post date:** [April 2, 2019, 5:15pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/5 "2019-04-02T17:15:50Z")

</div>

@gweimer: now, i am facing new problem. my code for calibration has been uploaded somehow. but not getting any reading wires are connected as they should. please guide me on this.

 ![MPU6050-reading](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/9/96eaa3e7f077bcb863e2c274c95e5f68b23132f6.png)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [April 2, 2019, 6:11pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/6 "2019-04-02T18:11:21Z")

</div>

Std Arduino issue probably…board initializes communication before XOD is ready to receive. Reset board after program is uploaded and XOD is ready & watch nodes should start displaying data.

---

<div class="post-metadata">

**Author:** ![atta-syed](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@atta-syed](https://forum.xod.io/u/atta-syed)\
**Post date:** [April 3, 2019, 7:26am UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/7 "2019-04-03T07:26:15Z")

</div>

@gweimer: as you said i have done the same it display values only 0 for all axis.

 ![MPU6050-reading%202](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/0/0901a56e1a8c576c072c385096ac01fa2bd17ebb.png)

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [April 3, 2019, 1:46pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/8 "2019-04-03T13:46:34Z")

</div>

You need to send a signal to the INIT pin. You can use a clock node to send signals repeatedly, or a boot and defer nodes to send a signal soon after boot.

---

<div class="post-metadata">

**Author:** ![atta-syed](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@atta-syed](https://forum.xod.io/u/atta-syed)\
**Post date:** [April 3, 2019, 4:13pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/9 "2019-04-03T16:13:10Z")

</div>

tried Boot + Defer it worked but it stops not working constitutionally. Tried clock its not working. Don’t know how it work.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [April 3, 2019, 5:47pm UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/10 "2019-04-03T17:47:51Z")

</div>

By default, clock node will provide a pulse every second. The clock-TICK pin should be connected to the INIT pin of your calibrate node. If calibrate takes longer than 1 second, you should increase the clock-IVAL time.

---

<div class="post-metadata">

**Author:** ![atta-syed](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@atta-syed](https://forum.xod.io/u/atta-syed)\
**Post date:** [April 4, 2019, 7:02am UTC](https://forum.xod.io/t/getting-error-while-calibrating-mpu6050/2061/11 "2019-04-04T07:02:20Z")

</div>

🤫 not working in my case.
