Kaynağa Gözat

Added CaseLights page

Thomas Buck 9 yıl önce
ebeveyn
işleme
d657e11371

+ 1
- 1
input/blog/2015/2015_12_20_serialgamepad.md Dosyayı Görüntüle

@@ -22,7 +22,7 @@ In the last couple of months I’ve finally built a FPV capable Quadcopter. Fort
22 22
 
23 23
 <div class="yoxview">
24 24
     <a href="img/flysky1.png" class="thumbnail">
25
-        <img src="img/flysky1.png" alt="Photo" title="FlySky FS-CT6A"">
25
+        <img src="img/flysky1.png" alt="Photo" title="FlySky FS-CT6A">
26 26
     </a>
27 27
     <a href="img/flysky2.jpg" class="thumbnail">
28 28
         <img src="img/flysky2_small.jpg" alt="Photo" title="HK-T6A">

+ 82
- 0
input/blog/2015/2015_12_30_caselights.md Dosyayı Görüntüle

@@ -0,0 +1,82 @@
1
+title: Blog
2
+post: CaseLights
3
+date: 2015-12-30
4
+comments: true
5
+flattr: true
6
+twitter: xythobuz
7
+github: https://github.com/xythobuz/CaseLights
8
+parent: projects
9
+position: 60
10
+---
11
+
12
+## {{ page["post"] }}
13
+<!--%
14
+from datetime import datetime
15
+date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
16
+print "*Posted at %s.*" % date
17
+%-->
18
+
19
+### Background
20
+
21
+I’ve recently (accidentally) bought a dead-simple [12V RGB LED strip](http://www.hobbyking.com/hobbyking/store/__28515__LED_Red_Green_Blue_RGB_Strip_50cm_w_Flying_Lead.html), aiming to mount it on my Quadcopter, thinking it would be made of individually addressable LEDs. Of course, I didn’t read the description and was wrong. So, what to do?
22
+
23
+As you [may remember](http://xythobuz.de/2015_01_31_hackintosh.html), I’ve built a new computer in January with a very spacious case. It already had [two UV lights](http://www.aquatuning.de/modding/kathoden/13168/revoltec-kaltlicht-kathode-30cm-twin-set-uv-rev.-2) that were controlled manually using a switch in a PCI slot. Both the RGB LED strip and my computer seem to be a match made in heaven :P
24
+
25
+Incidentally, there’s still a unused RS232 port directly on my Motherboard that I never wired to the outside. That could be used to talk to an Arduino controlling the RGB LEDs and the UV lights. And there are plenty of free 12V rails of course.
26
+
27
+### Hardware
28
+
29
+So I bought a five-pack of cheap [Arduino Pro Mini](https://www.arduino.cc/en/Main/ArduinoBoardProMini) clones from china. I still had some [IRF530 N-Channel MOSFETS](https://arduinodiy.wordpress.com/2012/05/02/using-mosfets-with-ttl-levels/) left over from the [LED-Cube](http://xythobuz.de/ledcube.html) that can be used for this. And I needed to build a small [RS232-TTL converter](http://picprojects.org.uk/projects/simpleSIO/ssio.htm) (using 2N3904 and 2N3906 as Transistors).
30
+
31
+<div class="yoxview">
32
+    <a href="img/CaseLights-schem.png" class="thumbnail">
33
+        <img src="img/CaseLights-schem_small.png" alt="Schematic" title="Basic Schematic">
34
+    </a>
35
+    <a href="img/CL_Test1.jpg" class="thumbnail">
36
+        <img src="img/CL_Test1_small.jpg" alt="Photo" title="First Test">
37
+    </a>
38
+    <a href="img/CL_Test2.jpg" class="thumbnail">
39
+        <img src="img/CL_Test2_small.jpg" alt="Photo" title="First Test near">
40
+    </a>
41
+    <a href="img/CL_Test3.jpg" class="thumbnail">
42
+        <img src="img/CL_Test3_small.jpg" alt="Photo" title="First Test working">
43
+    </a>
44
+    <a href="img/CL_Final1.jpg" class="thumbnail">
45
+        <img src="img/CL_Final1_small.jpg" alt="Photo" title="Final Board">
46
+    </a>
47
+    <a href="img/CL_Final2.jpg" class="thumbnail">
48
+        <img src="img/CL_Final2_small.jpg" alt="Photo" title="Board in Case">
49
+    </a>
50
+    <a href="img/CL_Final3.jpg" class="thumbnail">
51
+        <img src="img/CL_Final3_small.jpg" alt="Photo" title="Finished Case">
52
+    </a>
53
+    <a href="img/CL_gif.gif" class="thumbnail">
54
+        <img src="img/CL_gif_small.gif" alt="GIF" title="Animation Test">
55
+    </a>
56
+</div>
57
+
58
+### Software
59
+
60
+Here’s the protocol used to communicate over RS232. It is line-based ASCII and only supports two commands:
61
+
62
+    RGB r g b
63
+    UV x
64
+
65
+Where r, g and b are ASCII decimal values from 0 to 255 and x can be ASCII 0 or 1.
66
+
67
+Currently the user can only turn the UV lights on or off using the CaseLights App. In the future, I may implement some automatism based on the time of day or something like this.
68
+
69
+The RGB Lights can be set to some static colors, with a modifiable brightness. Alternatively, a simple color-fade in RGB or HSV color space can be selected.
70
+
71
+Using the included [JSystemInfoKit](https://github.com/jBot-42/JSystemInfoKit), different things like CPU/GPU/RAM/VRAM usage or hardware temperatures can be visualized with colors from red, over yellow, to green.
72
+
73
+And finally, a display output device connected to the Mac can be selected. The CaseLights App will then create a Screenshot 10-times per second and display the average color.
74
+
75
+<div class="yoxview">
76
+    <a href="img/CaseLights.png" class="thumbnail">
77
+        <img src="img/CaseLights_small.png" alt="Screenshot" title="CaseLights App">
78
+    </a>
79
+</div>
80
+
81
+You can find all Arduino and Mac code in the [CaseLights GitHub repository](https://github.com/xythobuz/CaseLights).
82
+

BIN
static/img/CL_Final1.jpg Dosyayı Görüntüle


BIN
static/img/CL_Final1_small.jpg Dosyayı Görüntüle


BIN
static/img/CL_Final2.jpg Dosyayı Görüntüle


BIN
static/img/CL_Final2_small.jpg Dosyayı Görüntüle


BIN
static/img/CL_Final3.jpg Dosyayı Görüntüle


BIN
static/img/CL_Final3_small.jpg Dosyayı Görüntüle


BIN
static/img/CL_Test1.jpg Dosyayı Görüntüle


BIN
static/img/CL_Test1_small.jpg Dosyayı Görüntüle


BIN
static/img/CL_Test2.jpg Dosyayı Görüntüle


BIN
static/img/CL_Test2_small.jpg Dosyayı Görüntüle


BIN
static/img/CL_Test3.jpg Dosyayı Görüntüle


BIN
static/img/CL_Test3_small.jpg Dosyayı Görüntüle


BIN
static/img/CL_gif.gif Dosyayı Görüntüle


BIN
static/img/CL_gif_small.gif Dosyayı Görüntüle


BIN
static/img/CaseLights-schem.png Dosyayı Görüntüle


BIN
static/img/CaseLights-schem_small.png Dosyayı Görüntüle


BIN
static/img/CaseLights.png Dosyayı Görüntüle


BIN
static/img/CaseLights_small.png Dosyayı Görüntüle


Loading…
İptal
Kaydet