Monday, April 13, 2015

Motor Labs!

Part 1:
Moving servo motor using Processing
https://drive.google.com/file/d/0B2gmbe_Oq0vNeVRUNmcydTZ0aE0/view?usp=sharing

Part 2
Changing motor speed using potentiometer
Mapped the potentiometer input from 0-1023 to 0-255
Then I sent that mapped value to the transistor.

https://drive.google.com/file/d/0B2gmbe_Oq0vNdFJnTHhodDhqNVE/view?usp=sharing

Part 3
Moving motor speed with processing.
Using identical code in processing from part 1.
I modified the code in arduino from part 2 to read input from processing.
Since the processing input was already from 0 to 255, i directly used analogWrite() to pass in that value to the motor.

https://drive.google.com/file/d/0B2gmbe_Oq0vNZFB1bEZwamNTV28/view?usp=sharing

No comments:

Post a Comment