Analog Input – Reading Potentiometer

Analog Input
Lesson Details
What is analog input? What is its range? How to read the analog state of pins in PictoBlox? How to read the state of evive’s potentiometer?


  • Creating a script to control a sprite's direction using potentiometer to make it move across the Stage.
  • Creating a script to control an LED's brightness of using potentiometer.
Classroom Bundle Used: STEM Classroom Bundle, STEM Mini Classroom Bundle
Download Resources

Lesson Overview

Students will learn the following things: 

  • What is analog input and how to do it in PictoBlox.
  • What are evive’s Potentiometers and how to read their state using potentiometer () reading block?
  • Activity 1: In the activity, kids will move a mouse sprite using the potentiometer by changing the direction of the sprite.
  • Activity 2: Controlling the brightness of the LED using potentiometer.

Material Required

1 set of the following material per group of 3-5 students:

Component Image Quantity Available in Bundle
evive 1
USB A-B Cable 1

Lesson Outline

Analog Input - 10 minutes
  • What is analog input?
  • Which evive pins are used for analog input?
  • How to use read analog pin () block to get the analog state of the selected pin in PictoBlox?
  • What is the range of value you get from the block and its significance? 
Potentiometer - 10 minutes
  • What is evive’s potentiometer?
  • How to read the state of potentiometer using potetiometer () reading block in PictoBlox.
Activity 1 - 25 minutes
  • Making a sprite control in PictoBlox where a mouse movement is controlled by changing the direction of the mouse using potentiometer 1 of evive.
Activity 2 - 15 minutes
  • Making a script to control the brightness of the LED using PWM and potentiometer 1.

Download Lesson Resources

Next Lessons