<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Build an Electronic Level with MPU-6050 and Arduino - 2019 Videos				            </title>
            <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 12 Aug 2026 17:15:38 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36792</link>
                        <pubDate>Tue, 10 Jan 2023 03:21:25 +0000</pubDate>
                        <description><![CDATA[@mac-in-memphis As you know there is NO interrupt code in Bill&#039;s sketch or yours. Pin 2 on the UNO does not mean pin 2 on the esp32. It&#039;s interrupt 0 but since it doesn&#039;t appear to be used i...]]></description>
                        <content:encoded><![CDATA[@mac-in-memphis As you know there is NO interrupt code in Bill's sketch or yours. Pin 2 on the UNO does not mean pin 2 on the esp32. It's interrupt 0 but since it doesn't appear to be used it's irrelevant. I even had a quick look at the wire library code and did not see any normal interrupt code although there is a hint of something. Your code which is a copy of Bill's does NOT use interrupts just look at your main loop, it is simple polling code. Both work, interrupts are used for certain cases but this case is not one of them. You can't just take a UNO sketch and expect it to run on an esp32.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36792</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36791</link>
                        <pubDate>Tue, 10 Jan 2023 03:00:04 +0000</pubDate>
                        <description><![CDATA[@zander, Well the Arduino&#039;s Pin(2) trigger w/no ISR method has me curious, too!
I just &#039;assumed&#039; that there must be some internal hardware magic that is unique to the UNO board series?
Sin...]]></description>
                        <content:encoded><![CDATA[<p>@zander, Well the Arduino's Pin(2) trigger w/no ISR method has me curious, too!</p>
<p>I just 'assumed' that there must be some internal hardware magic that is unique to the UNO board series?</p>
<p>Since my project mainly needed to use of the MPU6050 accelerometer, I chopped a lot of the 'extraneous' LCD code and focused on trying to get the Esp32's fetching ISR to work. Had to mish-mash with other examples in order to try to pull-in the data from the registers,,, It compiled, though it had a lot of red flags.</p>
<p>So far I'm ready to drop back and punt with a fresh ESP &amp; without the overhead of my overloaded breadboard.</p>
<p>Someday, I would like to see Bill's 'Electronic Level" sketch data output, while using the Serial Plotter tool. ;)</p>
<p>Mac</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Mac-in-Memphis</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36791</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36786</link>
                        <pubDate>Mon, 09 Jan 2023 03:10:52 +0000</pubDate>
                        <description><![CDATA[@mac-in-memphis The problem is the UNO based sketch does NOT have an ISR routine. This is the first time i have seen this type of use and do not understand how it is working. Perhaps Bill @d...]]></description>
                        <content:encoded><![CDATA[<p>@mac-in-memphis The problem is the UNO based sketch does NOT have an ISR routine. This is the first time i have seen this type of use and do not understand how it is working. Perhaps Bill @<span>dronebot-workshop can answer how the UNO pin 2 INTR0 is used since there is NO mention of an ISR in the sketch. </span></p>
<p>You didn't say how you got past the compile error.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36786</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36784</link>
                        <pubDate>Mon, 09 Jan 2023 03:00:16 +0000</pubDate>
                        <description><![CDATA[@zander Thanks Ron, for investigating! 
Apparently the Arduino UNO sketch uses the one interrupt IO pin (2)?... And it&#039;s Interrupt Routine might work easily, fetching in the background.
Ho...]]></description>
                        <content:encoded><![CDATA[<p>@zander Thanks Ron, for investigating! </p>
<p>Apparently the Arduino UNO sketch uses the one interrupt IO pin (2)?... And it's Interrupt Routine might work easily, fetching in the background.</p>
<p>However, the ESP32 has more than a dozen or so pins that each can be programmed to be interrupts; but the coding to define the available pin that one wants to select as the interrupt, becomes a bit more complicated! Then, getting the routine to watch for the correct trigger pulse, is even more complex (at least it is to me).</p>
<p>I'm working thru a simpler example found on another website* that may be helpful in adding the code, and then debug, so stay tuned. Perhaps I can yield back something useful to the Arduino sketch :/ </p>
<p>I have a lot of other modules loaded on my breadboard, so there is a lot going on. Power drain? crossover cross-talk emf? cross-eyed wiring? ;)  </p>
<p>Man, I always learn something great on Bill's eloquent videos and his superior web site!</p>
<p>Kind Regards, </p>
<p>Mac</p>
<p>* Does Bill mind if other websites are referenced/posted on the forum?</p>
<p>...I realize that any, such nacho hyperlinks could go stale at any moment...</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Mac-in-Memphis</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36784</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36783</link>
                        <pubDate>Mon, 09 Jan 2023 01:43:48 +0000</pubDate>
                        <description><![CDATA[@mac-in-memphis The board Bill used is an Arduino UNO, not an esp32. It fails on compile the same way.]]></description>
                        <content:encoded><![CDATA[@mac-in-memphis The board Bill used is an Arduino UNO, not an esp32. It fails on compile the same way.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36783</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36782</link>
                        <pubDate>Mon, 09 Jan 2023 01:40:14 +0000</pubDate>
                        <description><![CDATA[@mac-in-memphis Here is the compile error I get I expect this as the LCD setup is now different and easily fixed. How did you deal with it? The only mention of Interrupt in Bill&#039;s blog is to...]]></description>
                        <content:encoded><![CDATA[<p>@mac-in-memphis Here is the compile error I get I expect this as the LCD setup is now different and easily fixed. How did you deal with it? The only mention of Interrupt in Bill's blog is to do with the UNO, not the esp32</p>
<blockquote>
<p><span>We are also using the interrupt output from the MPU-6050. This connects to pin 2 on the Arduino Uno, which is interrupt number 0.</span></p>
<p>Compilation error: 'POSITIVE' was not declared in this scope</p>
</blockquote>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36782</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36781</link>
                        <pubDate>Mon, 09 Jan 2023 00:09:02 +0000</pubDate>
                        <description><![CDATA[@mac-in-memphis As far as I know that sketch does not compile. I will download Bill&#039;s code and try it but I have helped several people with the LCD portion that has some minor errors. I know...]]></description>
                        <content:encoded><![CDATA[<p>@<span>mac-in-memphis As far as I know that sketch does not compile. I will download Bill's code and try it but I have helped several people with the LCD portion that has some minor errors. I know one of the MPU6050 sketches is badly messed up but not sure if it is this one.</span></p>
<p>That said, maybe you are a great debugger so I hope I didn't insult you. I am tied up at the moment but will download all of the code Bill used and see what happens.</p>
<p>I quickly looked at the code and did not see any interrupts being used, it appears to be I2C bus.</p>
<p>Did you compile with All errors, maybe that is needed to point out the other errors.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36781</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36778</link>
                        <pubDate>Sun, 08 Jan 2023 17:42:04 +0000</pubDate>
                        <description><![CDATA[Hi All Esp32&#039;ers,
Has anyone modified this &quot;Electronic Level&quot; sketch (&amp; its Interrupt Pin configuration) to work with an ESP32 Dev board? Without attaching the the correct interrupt pin...]]></description>
                        <content:encoded><![CDATA[<p>Hi All Esp32'ers,</p>
<p>Has anyone modified this "<span style="color: #ff6600">Electronic Level" sketch (&amp; its Interrupt Pin configuration)</span> to work with an ESP32 Dev board? Without attaching the the correct interrupt pin, the MPU6050 seems to hang @ sketch line ~284... </p>
<div id="urvanov-syntax-highlighter-63baf72171ec2241692305-284" class="crayon-line crayon-striped-line"><span class="crayon-v">284 Wire</span><span class="crayon-sy">.</span><span class="crayon-e">requestFrom</span><span class="crayon-sy">(</span><span class="crayon-cn">0x68</span><span class="crayon-sy">,</span><span class="crayon-cn">14</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span><span class="crayon-h">    </span></div>
<div id="urvanov-syntax-highlighter-63baf72171ec2241692305-285" class="crayon-line"><span class="crayon-h">285 </span><span class="crayon-c">//Wait until all the bytes are received </span></div>
<p>...and I don't see where the interrupt I/O Pin number for the microcontroller is declarer within the sketch; so that I may change the wiring of Arduino Pin I/O pin 2, to <span style="color: #ff0000">ESP32 Pin (#?)</span>... </p>
<p>I'd experiment with the ESP i/o's, but I don't wish to brick the board until by backup arrives.</p>
<p>THX! Mac</p>
<p>ref:</p>
<p><a href="https://dronebotworkshop.com/mpu-6050-level/">Build a Digital Level with MPU-6050 and Arduino | DroneBot Workshop</a></p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Mac-in-Memphis</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-36778</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-29756</link>
                        <pubDate>Tue, 24 May 2022 16:43:42 +0000</pubDate>
                        <description><![CDATA[@jlamoree I just downloaded the github lib and it doesn&#039;t work. Also I see .pde samples so it&#039;s very old. POSITIVE isn&#039;t declared.]]></description>
                        <content:encoded><![CDATA[<p>@jlamoree I just downloaded the github lib and it doesn't work. Also I see .pde samples so it's very old. POSITIVE isn't declared.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-29756</guid>
                    </item>
				                    <item>
                        <title>RE: Build an Electronic Level with MPU-6050 and Arduino</title>
                        <link>https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-20410</link>
                        <pubDate>Sat, 28 Aug 2021 02:44:30 +0000</pubDate>
                        <description><![CDATA[I wanted to see if I could use a MPU-6050 module for a robot arm I&#039;m working on. I don&#039;t think anybody has mentioned yet that the New LiquidCrystal library has moved fromto
I installed the v...]]></description>
                        <content:encoded><![CDATA[<p>I wanted to see if I could use a MPU-6050 module for a robot arm I'm working on. I don't think anybody has mentioned yet that the New LiquidCrystal library has moved from https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/ to https://github.com/fmalpartida/New-LiquidCrystal</p>
<p>I installed the version from the GitHub repo, and it works fine (after setting the right I2C address for the board I ended up with). Thank goodness for that i2c_scanner example.</p>
<p>I built the Electronic Level as designed, with the omission of the LEDs. My results were pretty much the same as shown in the video. However, I'm seeing a problem that has persisted for me every time I've used any MPU-6050 board (with or without the LCD hooked up). When left still, the sensor will output slightly varying values indefinitely, but if I move the sensor with even the most modest acceleration, the Arduino locks up. Or at least that's what seems to happen. I didn't put a scope on the I2C bus to watch. The same behavior exists with MPU-6050 boards from two different manufacturers, each of which have slightly different hardware designs.</p>
<p>This is perplexing. Is it possible that the accelerometer and gyroscope hardware gets overwhelmed by too much change per tick? I'm going to assume this part isn't robust enough for my intended use. I bought some AS5147 Rotary Sensor boards to see if that's a better fit for my application -- sensing the position of a shaft between 0 and 90 degrees.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/2019/">2019 Videos</category>                        <dc:creator>Joseph Lamoree</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/2019/build-an-electronic-level-with-mpu-6050-and-arduino/#post-20410</guid>
                    </item>
							        </channel>
        </rss>
		