Potentiometer

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

Example

  • Displaying the analog value of potentiometer 1 on screenScratch Mode display potentimeter reading
Share this Page
Facebook
Twitter
Google+
Pinterest
Reddit
Print
Featured Projects
Drip Irrigation System
Intermediate
Chetan
Drip Irrigation System

Introduction Drip irrigation system is a type of micro-irrigation of soil which has the potential to save water and nutrients by allowing water to drip slowly to the roots of

Explore this Project

Leave a Reply

Leave a Reply

Close Menu
×

Cart