![]() Validate your code and upload it to your Arduino board.The specific code details you'll need to pay attention to for use with ProtoPie Connect.In this tutorial we’ll cover the following: In fact, the Sketch I wrote is largely based off of what I learned (ahem… copied…) from this article. If, however, you are feeling adventurous and you'd like to try writing your own Sketches, know there are numerous examples online for writing Arduino code to get you started. What this lesson will focus on is just what you need to know in order to get your Arduino working with ProtoPie Connect. This lesson is not about learning how to write code. But… Code is scary!!ĭon't worry! You won’t need to write any code - you’ll be working with an Arduino script – called a "Sketch" – that I’ve already written. Both of these problems (and many others) can be properly handled if you write your own Arduino code. We were able to work around the first problem by reversing the connections to the ground (GND) and voltage (+) pins on the encoder, and for the second problem we were careful not to turn the encoder knobs too quickly. We were getting reverse button behavior - Blokdots reported 1 when the button was unpressed and 0 when pressed - and when we turned our encoders too quickly, we were seeing a problem known as “bounce,” where the encoder sometimes counted down when it should be counting up, or counted up when it should be counting down. But there were a couple of issues that we encountered. ![]() In the previous lesson, I showed you how quick easy it is it connect your Arduino project in ProtoPie using Blokdots.
0 Comments
Leave a Reply. |