Difference between revisions of "Fortune Cat"
(Created page with "{{Language|Fortune Cat}} {| style="width: 800px;" |- | ==Overview== When someone passed by, Fortune cats eyes shine waving to you, will wow oh. File: MicroduinoFortuneCat-...") |
(→Schematic) |
||
Line 16: | Line 16: | ||
change color, and the Audio module to play audio. | change color, and the Audio module to play audio. | ||
− | [[File: MicroduinoFortuneCat-sch.jpg|600px|center]] | + | [[File: MicroduinoFortuneCat-sch-E.jpg|600px|center]] |
+ | |||
==Equipment== | ==Equipment== | ||
{|class="wikitable" | {|class="wikitable" |
Revision as of 03:33, 15 October 2015
Language: | English • 中文 |
---|
ContentsOverviewWhen someone passed by, Fortune cats eyes shine waving to you, will wow oh. SchematicThe body will send pyroelectric infrared, sensor can detects it, when the sensor detects, will control lights change color, and the Audio module to play audio. Equipment
Preparation
and then start the Arduino IDE.
_303_FortuneCat.
"Done Uploading" appears, the program should have successfully been uploaded into the CoreUSB. Program description
#define humanHotSensor 4//PIR sensor pin number
#define PIN 6//color light pin number
#define SERVOPIN SDA//servo pin
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN,
NEO_GRB + NEO_KHZ800);
if (humanHotState) {
colorWipe(strip.Color(125, 125, 125));
updateServo();
if (!playing) {
Serial.println("play sound.....");
// audio_play();
audio_choose(1);
playing = true;
}
} Hardware Buildup
the sensors into the corresponding ports on the Hub module. To connect muliple LEDs in a series, follow the above diagram. Notice that the sensor cable connects to the IN ports of the LEDs. You can support up to six LEDs!
connect that to the IIC port in the Hub module.
Then, copy a single greeting sound onto the micro SD card.
modules.
battery Management module.
(except Audio, AudioShield and Amplifier three together), Congratulation, the circuit part to build complete! ResultIf someone passby Fortune cat, she will wave to you, eyes will light up and beep. Video |