Little tip: Control your servo with your potentiometer
You can find the rescale block in the advanced section of your operators category.
Your potentiometer has a range from 0 to 1023. Your servo has a range from -90 to 90 degrees (180 in total).
The rescale block rescales the range of your potentiometer to the range of the servo. So instead of 0 to 1023 your potentiometer acts like it has a range from -90 to 90.
This way it gives you the ability to change the rotation of your servo 1 degree at a time.
I was thinking about a project to make with this, but couldn't think of one at the moment.
Maybe some of you know what you can do with this......... 😁
The rescale block is really powerful. 💪
- 96 All Categories
- 3 Community
- 3 Hello Maker!
- 83 PicoBricks - Make, Run, Split, Merge
- 26 Hardware Support
- 14 PicoBricks Backers Hub
- 41 MicroBlocks Support
- 2 Shipping Support
- 10 Products & Technology
- Raspberry Pi
- 10 Other