Arduino内置教程-模拟
模拟
- 模拟输入输出串口:读取一个模拟输入引脚,返回结果,然后用这个数据使LED灯变暗或者变亮
- 模拟输入:使用一个电压计来控制LED灯的闪烁
- 模拟写入Mega:使用Arduino Mega 开发板使12个LED灯一个接一个,逐渐变亮然后变暗
- 校准:对于超出模拟传感器范围的数值,定义一个最大值和最小值
- 渐变:用一个模拟输出引脚(PWM引脚)来使一个LED灯褪色。
- 使光滑:使多个模拟引脚的读取值变得顺滑
Analog In Out Serial: Read an analog input pin, map the result, and then use that data to dim or brighten an LED.
Analog Input: Use a potentiometer to control the blinking of an LED.
Analog Write Mega: Fade 12 LEDs on and off, one by one, using an Arduino Mega board.
Calibration: Define a maximum and minimum for expected analog sensor values.
Fading: Use an analog output (PWM pin) to fade an LED.
Smoothing: Smooth multiple readings of an analog input.