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
Join 2 million + to receive instant DIY inspiration in your inbox.
Download our apps!
© 2016 Autodesk, Inc.