Potentiometer

June 2, 2017

Introduction

evive has two inbuilt 10kΩ knob potentiometers connected to Arduino Mega pins A9 and A10, respectively.

evive Poentiometers
 

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).

potentiometer reading

This block can be used in Upload Mode as well as in Stage Mode.

Example

  • Controlling the brightness of the LED using potentiometer 1 reading in stage mode.
    Controlling evive's Potentiometer_Stage
Share this Documentation
Share on facebook
Facebook
Share on twitter
Twitter
Share on google
Google+
Share on pinterest
Pinterest
Share on reddit
Reddit
Share on print
Print
Related Tutorials & Projects
potentiometer reading

potentiometer () reading

evive has two potentiometers whose analog outputs can be varied by turning the knob clockwise or anti-clockwise. This block returns the analog output of either of the potentiometer (from 0-1023).
All articles loaded
No more articles to load
Featured Projects
All articles loaded
No more articles to load

Leave a Reply

Close Menu
×

Cart