-
Notifications
You must be signed in to change notification settings - Fork 0
Class VariableInput
Hans Rothenbuehler edited this page Oct 22, 2023
·
3 revisions
| Topic | Specification |
|---|---|
| Description | Represent an analog input pin (e.g. potentiometer). Define the pin A0...Ax into constructor. To filter the smallest changes, there is the ConsideredMinChange parameter. Changes less than or equal to this value are suppressed. |
| Constructor | ** VariableInput (int Pin, int ConsideredMinChange)** Parameter Pin: Pin numberConsideredMinChange: Optional with default is 5. The logic ignores changes less than or equal than this value. |
| Range | 0…1023 |
| Const | |
| Samples | VariableInput* input = new VariableInput(A1); VariableInput* input = new VariableInput(A2, 10); |
| Examples |
02-Dimming LED 03-Dimming LED with Switch 06‐Motor variable speed, On/Off‐Switch 07‐Motor variable speed, direction‐ and main‐switch 08‐Motor toggles between limit switches 09‐Motor toggles between limit switches, main switch 10‐Main Motor turns between limit switches, second follows 11-Two motors, one turns after the other 13-Stepper motor with variable speed 17-Servo position in relation to a potentiometer 20-Dependent input |
Wiki
Getting started
Classes
Input
- Calculate
- ConditionInput
- DependentInput
- DigitalInput
- FixValue
- Inverter
- IteratorValue
- JoystickAxis
- LoopSwitch
- MonoFlop
- Switch2Position
- Switch3Position
- Timer
- ToggleSwitch
- UltrasonicRangefinder
- VariableInput
Actuator
- ActuatorCollection
- Buzzer
- DigitalOutput
- EncoderMotorI2C
- EncoderMotorL298
- EncoderMotorL9110
- MotorI2C
- MotorL298
- MotorL9110
- MotorStepperRotate
- MotorStepperRotateI2C
- Servo360I2C
- Servo360PWM
- Servo360T1
- Servo360T2
- ServoPWM
- ServoStepperPosition
- ServoStepperPositionI2C
- ServoI2C
- ServoT1
- ServoT2
- VariableOutput
Condition
Relation
RemoteControl
Common
Sketches
Templates
Examples
- 01-Switch and Lamp
- 02-Dimming LED
- 03-Dimming LED with Switch
- 04-Blinking LED
- 05‐Motor fix speed, direction‐switch
- 06‐Motor variable speed, direction‐switch
- 07‐Motor variable speed, direction‐ and main‐switch
- 08‐Motor toggles between limit switches
- 09‐Motor toggles between limit switches, main switch
- 10‐Main Motor turns between limit switches, second follows
- 11-Two motors, one turns after the other
- 12-Servo360 controlled by a Joystick
- 13-Stepper motor with variable speed
- 14-RemoteControl of a motor with FlySky FS-i6X
- 15-RemoteControl of a motor with an App
- 16-EncoderMotor and LED controlled by FlySky-RemoteControl
- 17-Servo position in relation to a potentiometer
- 18-Stepper angle controlled by joystick
- 19-Buzzer tone in relation to distance
- 20-Dependent input
- 21-Alternate blink