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. 💪
1
Howdy, Stranger!
Categories
- 117 All Categories
- 3 Community
- 3 Hello Maker!
- 102 PicoBricks - Make, Run, Split, Merge
- 1 PicoBricks IDE
- 1 Arduino IDE
- 31 Hardware Support
- 15 PicoBricks Backers Hub
- 49 MicroBlocks Support
- 3 Shipping Support
- 2 MicroPython
- REX - 8 in 1
- Mechanical Parts and Parkour
- REX Main
- Arduino-IDE
- REX - Shipping
- 12 Products & Technology
- 2 Raspberry Pi
- Arduino
- 10 Other