With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
yeah, its "mapping" the value of the variable "val" and stores the new value in variable "val". I.e, the analog range that the arduino reads is between 0-1023 and you wanna control the servo with this value, but the servo operates on values between 0-179. So map-function is scaling the value (in this example) from range 0-1023 to 0-179
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.