read analog pin ():

Introduction

Read analog pin () is a Robot block and a reporter block. It returns the value of analog pins available in evive. Analog reading is of 10 bit resolution, hence the range of value is 0 to 1023. This range is mapped to the voltage of the pin (normally 0 to 5V). If the value received is 512, the voltage value will be around 2.5V.

Available  pins in evive:

  • 10 analog pins available for the user, A0 to A5 & A12 to A15
  • Two potentiometers: Potentiometer_1, Potentiometer_2
  • VSS_Voltage_Sense (for sensing input voltage)
  • VVR_Voltage_Sense (for sensing variable voltage output)

This block can be used in Arduino Mode as well as in Scratch Mode.

read analog pin ():
read anlog pin block
Category: Arduino

Example

  • Displaying the analog value of potentiometer 1

Displaying the analog value of potentiometer 1

 

  • Rotating the sprite with potentiometer 2

Rotating the sprite with potentiometer 2

 

  • Displaying the VSS and VVR voltage

Voltage Sensing on evive