_R-STS01mightyZAP Servo Tester Shield Manual_ENG_V1.2 19D5
IR-STS01 Servo Tester Shield Manual V.1.1
11
5.3.Example- VR Read
There are 6 x VRs on IR-STS01. User may control stroke, delay, speed and position of mightyZAP using these VRs.
Example for VR value output on Serial monitor
Buad rate setting of serial monitor with “Serial.begin()”
function.
Read ADC value with “read()” function.
Output ADC value with “Serial.print()” function.
Range of VR value output is between 0~1023.
To open Serial monitor, select [Tool]-[Serial Monitor].
Source to display VR (VR1~VR6) value on Serial monitor
when user changes VR physically.