Overview
Hello guys! Today we will create a step counter with the encoder sensor inside our IoTBot. This encoder sensor is connected to pins 16 and 17, so it will help us control a cool counter. Also, this sensor has a button on it, and this button is connected to pin 13. This is where the fun comes in!
Ok, now let's get to the details of our project. When we rotate the encoder, the numbers will increase or decrease. But the most exciting part is this: when our value is between 10 and 15, i.e. within a certain range, we will be able to press this cool button!
And that's not all! What are we going to do with all these fun events? We will see them all on the LCD screen! In other words, we will get the value of the encoder we rotated, the ability to press the button when it reaches a certain limit, and even the chance to watch this information on the screen! It will be a really cool project, so let's get started!