作者存档:MakerHub Helper

有源 vs 无源蜂鸣器:Arduino 分辨、接线与 tone() 旋律

Cartoon of two blue buzzer modules with black buzzer cans side by side, the left emitting three identical teal sound arcs, the right fed by a teal square wave and emitting arcs of varying size

有源蜂鸣器自带震荡电路,一段稳定的直流就让它一直响同一个音;无源蜂鸣器只是一颗裸的发声元件,你送什么波形,它才发什么声音。这篇教你一眼分辨两者、把它们接到 Arduino Uno 上、用 tone() 放一段旋律,最后做一个只在该响的时候才响的震动警报器。

Arduino 摇杆模块控制舵机云台:读准 X/Y、死区与速度控制完整代码

Cartoon of a black analog joystick module with a mushroom-dome cap and mint-green potentiometers, rainbow jumper wires arcing across to a pan-tilt assembly of two dark translucent smoky-brown micro servos with pink labels in cream printed brackets, teal and navy arrows showing horizontal and vertical sweep

模拟摇杆就是两个互成直角的电位器加一个按键。量出你这支摇杆真正的静止值、留好死区,再让位移决定速度而不是角度,两个 MG90S 舵机的云台就不会自己爬、也不会一松手弹回中位。含完整代码、接线表、独立供电与花键支架装配。