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 servo motor. It is also used to control the amplitude and frequency of the signal in function generator.
Programming in Arduino IDE
The test code for the potentiometer is given below:
Programming in Scratch
To get potentiometer value in Scratch you can use Potentiometer () reading block. This block can be found under the Robots palette in the extension evive Inbuilt tools. This block returns the analog output of either of the potentiometer (from 0-1023).
This block can be used in Arduino Mode as well as in Scratch Mode.
Introduction You must have played Air Hockey! Pay few $$dollars$$ to the gaming zone and just start scoring goals to beat your friends. Isn’t it