Voice Control Electric Fan
From Microduino Wiki
Language: | English • 中文 |
---|
ContentsObjectiveTo have a voice control of the electric fan and the louder your voice becomes, the faster the fan rotates. PrincipleEquipment
Hardware Buildup
Software DebuggingCode Description
#define motor_pin 6
int micPin = A2;
int micValue=0;
bool isRoar=false; ResultYou can have a voice control of the fan and the louder your voice becomes, the faster the fan rotates. Video |