1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 03:59:23 +02:00

labsw/web/: Web-based overview page

This commit is contained in:
Werner Almesberger 2011-09-11 14:50:30 -03:00
parent f9c4bb60d2
commit 28cdb890a0
4 changed files with 307 additions and 0 deletions

59
labsw/web/Makefile Normal file
View File

@ -0,0 +1,59 @@
SRC=http://downloads.qi-hardware.com/people/werner/labsw/tmp
DL=labsw-0-off.jpg labsw-0-inside.jpg \
labsw-m1-off.jpg labsw-m1-boot.jpg labsw-m1-render.jpg
GEN=labsw-0-off-small.jpg labsw-0-inside-small.jpg \
ovr-front.png ovr-rear.png \
labsw-m1-off-small.jpg labsw-m1-boot-small.jpg labsw-m1-render-small.jpg
.PHONY: upload gen clean spotless
.SUFFIXES: .fig .png
all: gen
upload: $(DL) $(GEN)
rsync -e ssh index.html $(DL) $(GEN) \
www-data@downloads.qi-hardware.com:werner/labsw/web/
gen: $(GEN)
labsw-0-off.jpg:
wget $(SRC)/$@
labsw-0-inside.jpg:
wget $(SRC)/$@
labsw-m1-off.jpg:
wget $(SRC)/$@
labsw-m1-boot.jpg:
wget $(SRC)/$@
labsw-m1-render.jpg:
wget $(SRC)/$@
.fig.png:
fig2dev -L png -S 4 -m 0.7 $< >$@ || { rm -f $@; exit 1; }
labsw-0-off-small.jpg: labsw-0-off.jpg
convert $< -scale x240 $@
labsw-0-inside-small.jpg: labsw-0-inside.jpg
convert $< -scale x240 $@
labsw-m1-off-small.jpg: labsw-m1-off.jpg
convert $< -scale x300 $@
labsw-m1-boot-small.jpg: labsw-m1-boot.jpg
convert $< -scale x300 $@
labsw-m1-render-small.jpg: labsw-m1-render.jpg
convert $< -scale x300 $@
clean:
rm -f $(GEN)
spotless: clean
rm -f $(DL)

101
labsw/web/index.html Normal file
View File

@ -0,0 +1,101 @@
<HTML>
<TITLE>
Lab Switch
</TITLE>
<BODY>
<H1>Lab Switch</H1>
The Lab Switch is a USB-attached device that has a few galvanically
isolated inputs and output for switching loads and signals in a lab
environment.
<P>
<A href="labsw-0-off.jpg"><IMG src="labsw-0-off-small.jpg"></A>
<A href="labsw-0-inside.jpg"><IMG src="labsw-0-inside-small.jpg"></A>
<H2>What it can do</H2>
It has two relays to switch loads of several ampere connected to the
banana jacks on the front panel.<BR>
There are four independent opto-coupler inputs and outputs at the rear.<BR>
In parallel to the relays, there are opto-couplers that can be used
instead if only a low current needs to be switched.
<P>
<IMG src="ovr-front.png" align="middle">&nbsp;
<IMG src="ovr-rear.png" align="middle">
<H2>Example usage</H2>
The images below show the Lab Switch being used to test how power cycling
affects a
<A href="http://milkymist.org/">Milkymist&trade; One<A>.
<BR>
The Lab Switch is inserted into the 5 V DC power supply such that
it can switch the 5 V supply and ground.
<BR>
For further control, the M1 is connected to a PC via the JTAG board.
<P>
<A href="labsw-m1-off.jpg"><IMG src="labsw-m1-off-small.jpg"></A>&nbsp;
<A href="labsw-m1-boot.jpg"><IMG src="labsw-m1-boot-small.jpg"></A>&nbsp;
<A href="labsw-m1-render.jpg"><IMG src="labsw-m1-render-small.jpg"></A>
<P>
In the left image, power is turned off. This is indicated by green LEDs
on both channels. The red main LED indicates that the switch is under
remote control.
<BR>
In the middle image, power has been turned on and the M1 is booting
into RTEMS and Flickernoise. One can see two small LEDs (appearing
yellow) in the M1 that indicate this it is powered and booting.
<BR>
In the right image, the M1 has booted into Flickernoise and is rendering
a visual effect. This is also indicated by all three LEDs of the M1
being lit.
<BR>
A few seconds later, the Lab Switch cuts power and the cycle repeats.
<H2>The software</H2>
The firmware is currently extremely simple and just handles toggling
via the front buttons and direct remote control via USB.
<H2>Future work</H2>
The hardware is currently only designed for low "safe to touch" voltages.
<BR>
It would be desirable to be able to also switch AC mains and to connect
inputs or outputs to places that may be at a high potential with respect
to other inputs and outputs. For this, it will be necessary to make a
number of modifications to the circuit. Some of them are detailed in
the
<A href="http://projects.qi-hardware.com/index.php/p/wernermisc/source/tree/master/labsw/README">README</A>.
<P>
In the future, the firmware will be extended to allow the uploading
of "scripts" that will allow for more complex patterns of interaction.
<BR>
For example, instead of using a channel button as a toggle, it could
switch a device on for a defined interval and then switch it off again.
<H2>Sources, mailing list, IRC</H2>
The electrical design, the mechanical design, and the firmware can
all be found in
<A href="http://projects.qi-hardware.com/index.php/p/wernermisc/source/tree/master/labsw">the Qi-Hardware git</A>.
<P>
Development discussions and such happen on the
<A href="http://lists.en.qi-hardware.com/mailman/listinfo/discussion">
qi-hardware mailing list</A> and on the
<A href="http://webchat.freenode.net/?randomnick=1&channels=qi-hardware">#qi-hardware
channel</A> on
<A href="http://freenode.net/">freenode</A>.
<P>
<HR>
Last update: 2011-09-11&nbsp;&nbsp;<I>Werner Almesberger</I>
<HR>
</BODY>
</HTML>

70
labsw/web/ovr-front.fig Normal file
View File

@ -0,0 +1,70 @@
#FIG 3.2 Produced by xfig version 3.2.5b
Landscape
Center
Metric
A4
100.00
Single
-2
1200 2
0 32 #565656
1 3 0 8 14 7 50 -1 -1 0.000 1 0.0000 3825 2925 180 180 3825 2925 4005 2925
1 3 0 8 14 7 50 -1 -1 0.000 1 0.0000 3825 2250 180 180 3825 2250 4005 2250
1 3 0 8 0 7 50 -1 -1 0.000 1 0.0000 4500 2925 180 180 4500 2925 4680 2925
1 3 0 8 0 7 50 -1 -1 0.000 1 0.0000 4500 2250 180 180 4500 2250 4680 2250
1 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5175 2925 180 180 5175 2925 5355 2925
1 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5175 2250 180 180 5175 2250 5355 2250
1 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5850 2250 180 180 5850 2250 6030 2250
1 3 0 8 4 7 50 -1 -1 0.000 1 0.0000 5850 2925 180 180 5850 2925 6030 2925
1 3 0 4 0 2 50 -1 20 0.000 1 0.0000 6525 2250 142 142 6525 2250 6667 2250
1 3 0 4 0 2 50 -1 20 0.000 1 0.0000 6525 2925 142 142 6525 2925 6667 2925
1 3 0 4 0 27 50 -1 20 0.000 1 0.0000 7875 2340 142 142 7875 2340 8017 2340
2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
3375 1800 8325 1800 8325 3375 3375 3375 3375 1800
2 2 0 5 0 7 50 -1 5 0.000 0 0 -1 0 0 5
6975 2700 7425 2700 7425 3150 6975 3150 6975 2700
2 2 0 5 0 7 50 -1 5 0.000 0 0 -1 0 0 5
6975 2025 7425 2025 7425 2475 6975 2475 6975 2025
2 2 0 5 0 4 50 -1 20 0.000 0 0 -1 0 0 5
7650 2700 8100 2700 8100 3150 7650 3150 7650 2700
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 3
4500 3600 4500 3825 4320 4275
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 3
4275 4275 3825 4275 3825 3600
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 3
4500 4275 5175 4275 5175 3600
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 4
3150 2520 2925 2520 2925 1980 3150 1980
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 4
3150 3195 2925 3195 2925 2655 3150 2655
2 1 1 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 3
5850 3600 5850 4275 5265 4275
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
3240 1485 3600 1980
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
3870 1125 4320 1980
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
5040 1170 5130 1935
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
5850 1485 5850 1980
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
6525 3150 6525 3735
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
7470 2565 7650 3735
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
7290 3240 7515 3735
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
7830 3240 7785 3735
2 1 0 2 0 7 45 -1 -1 6.000 0 0 -1 0 0 2
7875 1485 7875 2115
4 2 0 45 -1 18 18 0.0000 4 210 1335 2790 2340 Channel 1\001
4 2 0 45 -1 18 18 0.0000 4 210 1335 2790 3015 Channel 2\001
4 1 0 45 -1 18 18 0.0000 4 270 780 4500 4725 Relay\001
4 1 0 45 -1 18 18 0.0000 4 270 675 5535 4725 Opto\001
4 1 0 45 -1 18 18 0.0000 4 210 1245 3690 1080 Common\001
4 1 0 45 -1 18 18 0.0000 4 270 1245 5130 1080 Relay On\001
4 1 0 45 -1 18 18 0.0000 4 270 1140 5940 1440 Opto On\001
4 1 0 45 -1 18 18 0.0000 4 270 1290 2925 1440 Relay Off\001
4 1 0 45 -1 18 18 0.0000 4 210 1155 6570 4005 LED R/G\001
4 1 0 45 -1 18 18 0.0000 4 210 1155 7875 1440 LED R/G\001
4 1 0 45 -1 18 18 0.0000 4 210 900 7785 4005 Button\001

77
labsw/web/ovr-rear.fig Normal file
View File

@ -0,0 +1,77 @@
#FIG 3.2 Produced by xfig version 3.2.5b
Landscape
Center
Metric
A4
100.00
Single
-2
1200 2
0 32 #565656
6 4635 2700 5355 3195
2 3 0 3 0 7 45 -1 10 0.000 1 0 -1 0 0 5
4770 2835 5220 2835 5175 3060 4815 3060 4770 2835
2 2 0 2 0 7 45 -1 -1 0.000 1 0 -1 0 0 5
4680 2745 5310 2745 5310 3150 4680 3150 4680 2745
-6
6 5355 2610 8055 3960
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
6795 2745 6300 2835
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
6795 3060 6300 3015
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
5895 3195 5895 3600
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
5625 2790 5760 2790 5760 2925 5625 2925 5625 2790
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
5760 2790 5895 2790 5895 2925 5760 2925 5760 2790
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
5625 2925 5760 2925 5760 3060 5625 3060 5625 2925
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
5760 2925 5895 2925 5895 3060 5760 3060 5760 2925
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
5895 2790 6030 2790 6030 2925 5895 2925 5895 2790
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
6030 2790 6165 2790 6165 2925 6030 2925 6030 2790
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
6030 2925 6165 2925 6165 3060 6030 3060 6030 2925
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
5895 2925 6030 2925 6030 3060 5895 3060 5895 2925
2 2 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
5535 2700 6255 2700 6255 3150 5535 3150 5535 2700
4 1 0 45 -1 18 18 0.0000 4 210 1155 7470 3195 Cathode\001
4 1 0 45 -1 18 18 0.0000 4 210 900 7335 2835 Anode\001
4 1 0 45 -1 18 18 0.0000 4 270 1215 5985 3870 4 Opto In\001
-6
2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
3375 1800 8325 1800 8325 3375 3375 3375 3375 1800
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
3150 2745 3690 2835
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
3105 3060 3690 3015
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
4095 3195 4095 3600
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
4995 2340 4995 2655
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
3825 2925 3960 2925 3960 3060 3825 3060 3825 2925
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
3960 2925 4095 2925 4095 3060 3960 3060 3960 2925
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
4095 2925 4230 2925 4230 3060 4095 3060 4095 2925
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
4230 2925 4365 2925 4365 3060 4230 3060 4230 2925
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
4230 2790 4365 2790 4365 2925 4230 2925 4230 2790
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
4095 2790 4230 2790 4230 2925 4095 2925 4095 2790
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
3825 2790 3960 2790 3960 2925 3825 2925 3825 2790
2 2 0 4 0 31 50 -1 20 0.000 0 0 7 0 0 5
3960 2790 4095 2790 4095 2925 3960 2925 3960 2790
2 2 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
3735 2700 4455 2700 4455 3150 3735 3150 3735 2700
4 1 0 45 -1 18 18 0.0000 4 270 1455 4095 3870 4 Opto Out\001
4 1 0 45 -1 18 18 0.0000 4 210 975 2520 3195 Emitter\001
4 1 0 45 -1 18 18 0.0000 4 210 1245 2430 2835 Collector\001
4 1 0 45 -1 18 18 0.0000 4 210 1245 4995 2250 Mini USB\001