查看“Fortune Cat”的源代码
←
Fortune Cat
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language|Fortune Cat}} {| style="width: 800px;" |- | ==Overview== When you pass by, the Fortune Cat will wave to you with two eyes shining and meow. [[File: MicroduinoFortuneCat-stater.jpg|600px|center]] ==Schematic== The 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. [[File: MicroduinoFortuneCat-sch-E.jpg|600px|center]] ==Equipment== {|class="wikitable" |- |Module||Number||Function |- |[[mCookie-CoreUSB/zh]]||1||Core board |- |[[mCookie-Hub/zh]]||1||sensor hub board |- |[[Microduino-TOUCH/zh]]||1||touch sensor |- |[[Microduino-PIR/zh]]||1||PIR sensor |- |[[mCookie-Audio/zh]]||1||Audio module |- |[[mCookie-Amplifier/zh]]||1||Power Amplifier module |- |[[Microduino-Color led/zh]]||2||led light |- | [[mCookie-BM/zh]]||1||Battery Management |- | Servo||1||Servo |} [[File: MicroduinoFortuneCat-module.jpg|600px|center]] [[File: MicroduinoFortuneCat-module1-E.jpg|600px| center]] ==Preparation== *Setup 1:Connect the CoreUSB module to your computer and then start the Arduino IDE. [[File:CoreUSB_Ble_pc.jpg|600px|center]] *Setup 2:Click Files > Examples > mCookie > _303_FortuneCat. [[File: l _303_FortuneCat -ino.jpg|600px|center]] * Setup 3:Click upload to upload the program. When "Done Uploading" appears, the program should have successfully been uploaded into the CoreUSB. [[File: _303_FortuneCat -com.jpg|600px|center]] ==Program description== *Control pin definitions <source lang="cpp"> #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); </source> *Detection of human IR and play audio, control servos <source lang="cpp"> if (humanHotState) { colorWipe(strip.Color(125, 125, 125)); updateServo(); if (!playing) { Serial.println("play sound....."); // audio_play(); audio_choose(1); playing = true; } } </source> ==Hardware Buildup== *Setup 1:Using the below diagram as reference, connect the sensors into the corresponding ports on the Hub module. [[file: MicroduinoFortuneCat2-hub.JPG|600px|center]] 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! [[File:CoreUSB_Ble_steup11.jpg|600px|center]] *Setup2:Connect the servo to the Servo Connector. Then connect that to the IIC port in the Hub module. [[file: MicroduinoFortuneCat2-hub-servo.JPG|600px| center]] *Setup 3:Insert a micro SD Card into the Audio Shield. [[File: _MusicBox_Joystick _TF.jpg|600px|center]] *Setup 4:Stack the Audio Shield and Audio modules. Then, copy a single greeting sound onto the micro SD card. [[File: _MusicBox_Joystick _song.jpg|600px|center]] *Setup 5:Connect two speakers to Amplifier module. [[file: MusicBox_Joystick _song_speak.JPG|600px| center]] *Setup 6:Stack the Amplifier, Audio, and Audio Shield modules. [[file: MusicBox_Joystick _3_speak_E.JPG|600px|center]] *Setup 7:Connect the activated Battery module to your battery Management module. [[File:CoreUSB_Ble_steup2.jpg|600px|center]] *Setup 8:All modules are stacked together, in any order (except Audio, AudioShield and Amplifier three together), Congratulation, the circuit part to build complete! [[File: MicroduinoFortuneCat_steup-ok-E.jpg|600px| center]] ==Result== When you pass by, the Fortune Cat will wave to you with two eyes shining and meow. [[File: MicroduinoFortuneCat_steup-legao.jpg|600px| center]] ==Video== |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Fortune Cat
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息