evive has two inbuilt 10kΩ knob potentiometers connected to Arduino Mega pins A9 and A10, respectively.
The two potentiometers are used to control the speed of the motor (through PWM) in firmware as well as for the angle control of the servo motor. It is also used to control the amplitude and frequency of the signal in the function generator.
Programming in Arduino IDE
The test code for the potentiometer is given below:
Programming in PictoBlox
To get potentiometer value in PictoBlox you can use potentiometer () reading block. This block can be found under the evive extension. This block returns the analog output of either of the potentiometer (from 0-1023).
- Controlling the brightness of the LED using potentiometer 1 reading in stage mode.