Arduino的另外几种模块,我们常见的joystick摇杆模块. 用起来很爽,摇杆 有X,Y轴可调 这里有一篇非常想尽的示例代码: http://www.geek-workshop.com/forum.php?mod=viewthread&tid=96 什么也不操作的话,显示的数字是512 const int xside = A0; const int yside = A1; ; ; void setup() { // set the serial port Serial.begin(); }…
The vibrator I got works at the voltage ranging from 3.3V ~ 5.5V I want to make it vibrate variably. So I planned to test in 2 different ways. 1) analog valtage supply 2) PWM full valtage supply Here's the test situations and codes 1) analog valtage…
vibrator is a good thing. it has multi-funtionality . :) Now the vibrator we choose is the one which looks like this: http://www.seeedstudio.com/wiki/Grove_-_Vibrator I am testing this vibrator which is neat. ; void setup() { pinMode(vibratorPin, OU…