Date:2011-09-11 19:50:30 (7 years 9 months ago)
Author:Werner Almesberger
Commit:28cdb890a09ebd82fe5e5dbef4934772bbfdf2ca
Message:labsw/web/: Web-based overview page

Files: labsw/web/Makefile (1 diff)
labsw/web/index.html (1 diff)
labsw/web/ovr-front.fig (1 diff)
labsw/web/ovr-rear.fig (1 diff)

Change Details

labsw/web/Makefile
1SRC=http://downloads.qi-hardware.com/people/werner/labsw/tmp
2
3DL=labsw-0-off.jpg labsw-0-inside.jpg \
4   labsw-m1-off.jpg labsw-m1-boot.jpg labsw-m1-render.jpg
5GEN=labsw-0-off-small.jpg labsw-0-inside-small.jpg \
6    ovr-front.png ovr-rear.png \
7    labsw-m1-off-small.jpg labsw-m1-boot-small.jpg labsw-m1-render-small.jpg
8
9
10.PHONY: upload gen clean spotless
11
12.SUFFIXES: .fig .png
13
14all: gen
15
16upload: $(DL) $(GEN)
17    rsync -e ssh index.html $(DL) $(GEN) \
18      www-data@downloads.qi-hardware.com:werner/labsw/web/
19
20gen: $(GEN)
21
22labsw-0-off.jpg:
23    wget $(SRC)/$@
24
25labsw-0-inside.jpg:
26    wget $(SRC)/$@
27
28labsw-m1-off.jpg:
29    wget $(SRC)/$@
30
31labsw-m1-boot.jpg:
32    wget $(SRC)/$@
33
34labsw-m1-render.jpg:
35    wget $(SRC)/$@
36
37.fig.png:
38    fig2dev -L png -S 4 -m 0.7 $< >$@ || { rm -f $@; exit 1; }
39
40labsw-0-off-small.jpg: labsw-0-off.jpg
41    convert $< -scale x240 $@
42
43labsw-0-inside-small.jpg: labsw-0-inside.jpg
44    convert $< -scale x240 $@
45
46labsw-m1-off-small.jpg: labsw-m1-off.jpg
47    convert $< -scale x300 $@
48
49labsw-m1-boot-small.jpg: labsw-m1-boot.jpg
50    convert $< -scale x300 $@
51
52labsw-m1-render-small.jpg: labsw-m1-render.jpg
53    convert $< -scale x300 $@
54
55clean:
56    rm -f $(GEN)
57
58spotless: clean
59    rm -f $(DL)
labsw/web/index.html
1<HTML>
2<TITLE>
3Lab Switch
4</TITLE>
5<BODY>
6
7<H1>Lab Switch</H1>
8
9The Lab Switch is a USB-attached device that has a few galvanically
10isolated inputs and output for switching loads and signals in a lab
11environment.
12<P>
13<A href="labsw-0-off.jpg"><IMG src="labsw-0-off-small.jpg"></A>
14<A href="labsw-0-inside.jpg"><IMG src="labsw-0-inside-small.jpg"></A>
15
16<H2>What it can do</H2>
17
18It has two relays to switch loads of several ampere connected to the
19banana jacks on the front panel.<BR>
20There are four independent opto-coupler inputs and outputs at the rear.<BR>
21In parallel to the relays, there are opto-couplers that can be used
22instead if only a low current needs to be switched.
23<P>
24<IMG src="ovr-front.png" align="middle">&nbsp;
25<IMG src="ovr-rear.png" align="middle">
26
27
28<H2>Example usage</H2>
29
30The images below show the Lab Switch being used to test how power cycling
31affects a
32<A href="http://milkymist.org/">Milkymist&trade; One<A>.
33<BR>
34The Lab Switch is inserted into the 5 V DC power supply such that
35it can switch the 5 V supply and ground.
36<BR>
37For further control, the M1 is connected to a PC via the JTAG board.
38<P>
39
40<A href="labsw-m1-off.jpg"><IMG src="labsw-m1-off-small.jpg"></A>&nbsp;
41<A href="labsw-m1-boot.jpg"><IMG src="labsw-m1-boot-small.jpg"></A>&nbsp;
42<A href="labsw-m1-render.jpg"><IMG src="labsw-m1-render-small.jpg"></A>
43<P>
44In the left image, power is turned off. This is indicated by green LEDs
45on both channels. The red main LED indicates that the switch is under
46remote control.
47<BR>
48In the middle image, power has been turned on and the M1 is booting
49into RTEMS and Flickernoise. One can see two small LEDs (appearing
50yellow) in the M1 that indicate this it is powered and booting.
51<BR>
52In the right image, the M1 has booted into Flickernoise and is rendering
53a visual effect. This is also indicated by all three LEDs of the M1
54being lit.
55<BR>
56A few seconds later, the Lab Switch cuts power and the cycle repeats.
57
58
59<H2>The software</H2>
60
61The firmware is currently extremely simple and just handles toggling
62via the front buttons and direct remote control via USB.
63
64
65<H2>Future work</H2>
66
67The hardware is currently only designed for low "safe to touch" voltages.
68<BR>
69It would be desirable to be able to also switch AC mains and to connect
70inputs or outputs to places that may be at a high potential with respect
71to other inputs and outputs. For this, it will be necessary to make a
72number of modifications to the circuit. Some of them are detailed in
73the
74<A href="http://projects.qi-hardware.com/index.php/p/wernermisc/source/tree/master/labsw/README">README</A>.
75<P>
76In the future, the firmware will be extended to allow the uploading
77of "scripts" that will allow for more complex patterns of interaction.
78<BR>
79For example, instead of using a channel button as a toggle, it could
80switch a device on for a defined interval and then switch it off again.
81
82
83<H2>Sources, mailing list, IRC</H2>
84
85The electrical design, the mechanical design, and the firmware can
86all be found in
87<A href="http://projects.qi-hardware.com/index.php/p/wernermisc/source/tree/master/labsw">the Qi-Hardware git</A>.
88<P>
89Development discussions and such happen on the
90<A href="http://lists.en.qi-hardware.com/mailman/listinfo/discussion">
91qi-hardware mailing list</A> and on the
92<A href="http://webchat.freenode.net/?randomnick=1&channels=qi-hardware">#qi-hardware
93channel</A> on
94<A href="http://freenode.net/">freenode</A>.
95
96<P>
97<HR>
98Last update: 2011-09-11&nbsp;&nbsp;<I>Werner Almesberger</I>
99<HR>
100</BODY>
101</HTML>
labsw/web/ovr-front.fig
1#FIG 3.2 Produced by xfig version 3.2.5b
2Landscape
3Center
4Metric
5A4
6100.00
7Single
8-2
91200 2
100 32 #565656
111 3 0 8 14 7 50 -1 -1 0.000 1 0.0000 3825 2925 180 180 3825 2925 4005 2925
121 3 0 8 14 7 50 -1 -1 0.000 1 0.0000 3825 2250 180 180 3825 2250 4005 2250
131 3 0 8 0 7 50 -1 -1 0.000 1 0.0000 4500 2925 180 180 4500 2925 4680 2925
141 3 0 8 0 7 50 -1 -1 0.000 1 0.0000 4500 2250 180 180 4500 2250 4680 2250
151 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5175 2925 180 180 5175 2925 5355 2925
161 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5175 2250 180 180 5175 2250 5355 2250
171 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5850 2250 180 180 5850 2250 6030 2250
181 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5850 2925 180 180 5850 2925 6030 2925
191 3 0 4 0 2 50 -1 20 0.000 1 0.0000 6525 2250 142 142 6525 2250 6667 2250
201 3 0 4 0 2 50 -1 20 0.000 1 0.0000 6525 2925 142 142 6525 2925 6667 2925
211 3 0 4 0 27 50 -1 20 0.000 1 0.0000 7875 2340 142 142 7875 2340 8017 2340
222 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
23     3375 1800 8325 1800 8325 3375 3375 3375 3375 1800
242 2 0 5 0 7 50 -1 5 0.000 0 0 -1 0 0 5
25     6975 2700 7425 2700 7425 3150 6975 3150 6975 2700
262 2 0 5 0 7 50 -1 5 0.000 0 0 -1 0 0 5
27     6975 2025 7425 2025 7425 2475 6975 2475 6975 2025
282 2 0 5 0 4 50 -1 20 0.000 0 0 -1 0 0 5
29     7650 2700 8100 2700 8100 3150 7650 3150 7650 2700
302 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 3
31     4500 3600 4500 3825 4320 4275
322 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 3
33     4275 4275 3825 4275 3825 3600
342 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 3
35     4500 4275 5175 4275 5175 3600
362 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 4
37     3150 2520 2925 2520 2925 1980 3150 1980
382 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 4
39     3150 3195 2925 3195 2925 2655 3150 2655
402 1 1 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 3
41     5850 3600 5850 4275 5265 4275
422 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
43     3240 1485 3600 1980
442 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
45     3870 1125 4320 1980
462 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
47     5040 1170 5130 1935
482 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
49     5850 1485 5850 1980
502 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
51     6525 3150 6525 3735
522 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
53     7470 2565 7650 3735
542 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
55     7290 3240 7515 3735
562 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
57     7830 3240 7785 3735
582 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
59     7875 1485 7875 2115
604 2 0 45 -1 18 18 0.0000 4 210 1335 2790 2340 Channel 1\001
614 2 0 45 -1 18 18 0.0000 4 210 1335 2790 3015 Channel 2\001
624 1 0 45 -1 18 18 0.0000 4 270 780 4500 4725 Relay\001
634 1 0 45 -1 18 18 0.0000 4 270 675 5535 4725 Opto\001
644 1 0 45 -1 18 18 0.0000 4 210 1245 3690 1080 Common\001
654 1 0 45 -1 18 18 0.0000 4 270 1245 5130 1080 Relay On\001
664 1 0 45 -1 18 18 0.0000 4 270 1140 5940 1440 Opto On\001
674 1 0 45 -1 18 18 0.0000 4 270 1290 2925 1440 Relay Off\001
684 1 0 45 -1 18 18 0.0000 4 210 1155 6570 4005 LED R/G\001
694 1 0 45 -1 18 18 0.0000 4 210 1155 7875 1440 LED R/G\001
704 1 0 45 -1 18 18 0.0000 4 210 900 7785 4005 Button\001
labsw/web/ovr-rear.fig
1#FIG 3.2 Produced by xfig version 3.2.5b
2Landscape
3Center
4Metric
5A4
6100.00
7Single
8-2
91200 2
100 32 #565656
116 4635 2700 5355 3195
122 3 0 3 0 7 45 -1 10 0.000 1 0 -1 0 0 5
13     4770 2835 5220 2835 5175 3060 4815 3060 4770 2835
142 2 0 2 0 7 45 -1 -1 0.000 1 0 -1 0 0 5
15     4680 2745 5310 2745 5310 3150 4680 3150 4680 2745
16-6
176 5355 2610 8055 3960
182 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
19     6795 2745 6300 2835
202 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
21     6795 3060 6300 3015
222 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
23     5895 3195 5895 3600
242 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
25     5625 2790 5760 2790 5760 2925 5625 2925 5625 2790
262 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
27     5760 2790 5895 2790 5895 2925 5760 2925 5760 2790
282 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
29     5625 2925 5760 2925 5760 3060 5625 3060 5625 2925
302 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
31     5760 2925 5895 2925 5895 3060 5760 3060 5760 2925
322 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
33     5895 2790 6030 2790 6030 2925 5895 2925 5895 2790
342 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
35     6030 2790 6165 2790 6165 2925 6030 2925 6030 2790
362 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
37     6030 2925 6165 2925 6165 3060 6030 3060 6030 2925
382 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
39     5895 2925 6030 2925 6030 3060 5895 3060 5895 2925
402 2 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
41     5535 2700 6255 2700 6255 3150 5535 3150 5535 2700
424 1 0 45 -1 18 18 0.0000 4 210 1155 7470 3195 Cathode\001
434 1 0 45 -1 18 18 0.0000 4 210 900 7335 2835 Anode\001
444 1 0 45 -1 18 18 0.0000 4 270 1215 5985 3870 4 Opto In\001
45-6
462 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
47     3375 1800 8325 1800 8325 3375 3375 3375 3375 1800
482 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
49     3150 2745 3690 2835
502 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
51     3105 3060 3690 3015
522 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
53     4095 3195 4095 3600
542 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
55     4995 2340 4995 2655
562 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
57     3825 2925 3960 2925 3960 3060 3825 3060 3825 2925
582 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
59     3960 2925 4095 2925 4095 3060 3960 3060 3960 2925
602 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
61     4095 2925 4230 2925 4230 3060 4095 3060 4095 2925
622 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
63     4230 2925 4365 2925 4365 3060 4230 3060 4230 2925
642 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
65     4230 2790 4365 2790 4365 2925 4230 2925 4230 2790
662 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
67     4095 2790 4230 2790 4230 2925 4095 2925 4095 2790
682 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
69     3825 2790 3960 2790 3960 2925 3825 2925 3825 2790
702 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
71     3960 2790 4095 2790 4095 2925 3960 2925 3960 2790
722 2 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
73     3735 2700 4455 2700 4455 3150 3735 3150 3735 2700
744 1 0 45 -1 18 18 0.0000 4 270 1455 4095 3870 4 Opto Out\001
754 1 0 45 -1 18 18 0.0000 4 210 975 2520 3195 Emitter\001
764 1 0 45 -1 18 18 0.0000 4 210 1245 2430 2835 Collector\001
774 1 0 45 -1 18 18 0.0000 4 210 1245 4995 2250 Mini USB\001

Archive Download the corresponding diff file

Branches:
master



interactive