论坛风格切换切换到宽版
发帖 回复
返回列表  提醒:不能用迅雷等P2P下载,否则下载失败标(二级)的板块,需二级才能下载,没二级不要购买,下载不了
  • 1620阅读
  • 8回复

[DIY秀]小夜灯DIY [复制链接]

上一主题 下一主题
离线mayonghao
 

性别:
人妖
发帖
56
金币
66
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看楼主 倒序阅读 使用道具 0楼 发表于: 2017-09-25
这是一个英文教程:这是我做的实物http://www.meipai.com/media/557711075 OX`?<@6  
/#@LRN<oCq  
R !jhwY$  
About this project 9x4wk*z  
8u/3?Kc  
This project was developed after I had to find out that controlling my RGB ambient light with the normal infrared remote control was complicated and not reliable. Within a few months I build this solution that enabled controlling my LEDs with a Bluetooth-enabled Android Device running a self programmed app. On the hardware side an Arduino is receiving the commands and controlling three PWM signals. j-j'phK  
The app is available at Google Play for free (but closed source), the Arduino sketch is released under Apache License. The used protocol is also documented in this wiki and open for usage by others. *>G ^!e.u  
If you like this project I would be pleased with recommendations or a good rating at Google Play. Let me also know when you find some bugs. f(^33k  
Y=hP Erw  
fmtuFr^a1  
Requirements $#TID=  
gv`%Z8u(  
You need a few things to get started: o`oRG)QC  
  • Arduino Uno
  • Android powered Phone/Tablet with bluetooth running Android 4.0 or above
  • RGB-LED-Stripes with common anode (one common '+' and a seperate '-/GND' for each color) (you can also use stripes with common cathodes, but the showed circuit diagramm will not work (in particular the output stage). A solution therefore is also available.)
  • External Power Supply (to power Arduino and LEDs)
  • USART capable bluetooth module (for example HC-06, available on ebay for < 10$)
  • 3x 220 Ohm resistors (gate current limiter)
  • 3x 10 kOhm resistors (gate pull-down)
  • 3x N-Channel Power-MOSFETs (enhancement mode) (for example IRF1404)
optional voltage divider SnH:(tO[X  
  • 1x 4,7 kOhm resistor
  • 1x 10 kOhm resistor
zUe#Wp[  
i:MlD5 F  
Assembly IvPA|8(  
M4R%Gr,La  
Connect the Arduino and the others parts as showed below. Be sure that you do not change the RX pin with the TX pin of the bluetooth module. In General: RX of the bluetooth module has to be connected to TX of Arduino and vice versa. 6-D%)Z(  
Associated Fritzing File hgF21Oj9  
Caution: The HC-06 bluetooth module I bought works with 3,3V. You can power it with 5V because there is a built-in voltage regulator (make sure that yours has also one or power it with 3,3V), but RX and TX are not 5V tolerant. To avoid permanent damage the Arduino output-voltage is reduced to 3,3V by a voltage divider (therefore the 4k7 and 10k resistors). On the other hand a special step-up circuit is not necessary because the Arduino recognizes 3,3V of the bluetooth module as HIGH-Level. `MN&(!&C*  
Note: For permanent installations you should consider soldering your circuit on a Arduino Proto Shield (bought or home made). I personally soldered everything on a stripboard and put the whole thing in a small case. Pw0{.W~r  
Note: You don't need the connection from TX (pin 3) on Arduino to RX of the bluetooth module, because currently nothing will be send back to the Android device. Just remove the connection from pin 3 (Arduino) to RX (bluetooth module) and the voltage divider. It may be possible that a bidirectional communication will be used in future releases. }]uB? +c  
Iz 1*4@  
FEge+`{,  
Installing the software W ]a7&S  
e{c._zr,  
You're almost done. Now you need to install the software and select the target device. u]ZqF *  
  1. Upload the Arduino Sketch (https://github.com/fennel-labs/LED-control/blob/master/LEDControlArduino.ino)
  2. Install the Android app on your phone (https://play.google.com/store/apps/details?id=com.fennel.ledcontrol)
  3. Start a new bluetooth device discovery (Android -> Settings -> Bluetooth -> Add)
  4. Start the LED Control app and select your receiver (LED Control -> Connection Settings -> your device)
9|us<k  
E|KLK4 ]  
nC-c8y  
Troubleshooting N )b|  
Lr!L}y9T+  
There are several reasons why your circuit may not work as intended. Here are some possibilities: %:yHMEG]'  
  • Check if the LED voltage is high enough and your stripes have the right polarity by connecting them directly to your power source.
  • Are RX and TX connected in the right way? Read also the notes above.
  • By default, the Arduino sends some debug data to the PC via the hardware serial. If the Software in Arduino behaves abnormal check the console log.
  • In case you are not sure whether your bluetooth module works properly or not, connect it directly to your Arduino (still keeping the voltage levels in mind, see note above). Therefore you have to remove the 328P chip temporary from your Uno.
  • To check the output stage, you can try pulling the gate of each channel to ground or +5V.
 thanks:https://github.com/fennel-labs l|4xKBCV]  


评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

一般

差劲
离线yangxf0120

性别:
帅哥
发帖
4974
金币
3315
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 1楼 发表于: 2017-09-25
谢谢分享小夜灯DIY


离线riverhill

性别:
帅哥
发帖
3643
金币
3467
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 2楼 发表于: 2017-09-26
  


离线eyangbo

性别:
帅哥
发帖
1026
金币
570
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 3楼 发表于: 2017-09-26
看不懂


离线lilei

性别:
人妖
发帖
298
金币
26
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 4楼 发表于: 2017-09-26
谢谢分享


离线mirage

性别:
人妖
发帖
12206
金币
7841
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 5楼 发表于: 2017-09-26
感谢分享~


离线yc_ki

性别:
人妖
发帖
171
金币
73
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 6楼 发表于: 2017-09-27
看不懂了


离线yfhaotian168

性别:
帅哥
发帖
640
金币
312
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 7楼 发表于: 2017-09-27
英文没看懂


离线caiwenxiaogd

性别:
帅哥
发帖
544
金币
146
提示:会员销售的附件,下载积分 = 版块积分 + 销售积分       只看该作者 8楼 发表于: 2017-09-30
看看 v_=xN^R  


快速回复
限150 字节
 
上一个 下一个