Professional Documents
Culture Documents
80
ElekTrack
trace it with GPS
Ultra-versatile
USBprog Interfacing & programming
5
>D
7
>
75
< 5 @
3
8 A
=
*9=9<=
B
C@
=9A
=
7
5@
=95
6
E ;9@ =6@8
4
@9= %$'(#% #&'
=D $=01=*-8@1 ;>? $=01=*-8@1 ;>?
9==
A @9A
6
@ E E E E E E
E E E E E
4-::18)'$>/588;>/;<1 E E E
- E>
@> 5;9= "-CB1534?8.
731-A51=
19=F= D1/"@
58=
D =6 %=1/5>5;:-<-:1>1"-01 <-=/18>%$"5:59@9;=01=E
>
A969=7
>@95 9
@9
=7
<@8
#;?1%=;0@/?>-=105><-?/4102=;9@>?=-85-
5
<>@
@89
59
5
>
9
D@
@> =6 -=.;:'?118(;;8> >;8;/-8/@>?;9>0@?D-:0?-C1>9-D-<<8D
B
>
A969=>
@
5@9
=7
@8
;B?;;=01=
5
<>@
08
7@B
9 7D7
@
658 @ 99%=1/5>5;:!;:3#;>1%851=> %4;:1-88@>?=-85-:->?1=:'?-:0-=0(591
5
6
7=5@9
=
=
@
95
=
@
0&E>
@> 5;9= ";:=5;:
08
>9
7
@
@
6: B =6 4
C:
9=@@
9-58?1/4>?;=16-D/-=181/?=;:5/>/;@7
95 = D
=6>
5@<
%;>?%$$,
'58A1=B-?1=#'+@>?=-85-
= D
9=
=
D@
>
A96
>
59
5@9
= =6@
=9>08
C<1/?-D>;=5=<-=/180185A1=D
> 5;
/
B
49@
5
9>9=
=
<
@87 @9
7
7
>
59795 @9
=
'= @
6
7@@
588 =6
0-<?5A1(@=.;(591= 5?
(E>
@> 5;9=
"$
% ,69= D@4
@9<
B9@8 79C
6@9<
@@9=
!# 6
=F@ 6 >@@
=9=
=65 =@=
77@
"
"
D9@@8
5 8 4
=69A
=8 6
=
"!
#
" & D
=9=
A
@9<
97@8
5 8
=D4
=
>
@@
9= 4
@089
C5
=@;9@
A
5
<
@8
>
4
<4D5
=@ =@D<
=9@
9=
=9=
6* C9<<5
6
B=
0& E>
@> 5;9=
5 =4
6:@
67
< 7
B
5
=6@
08
5@@
6
9=
67
8 >5@@9=9=
<9=@
=6@8
@9<
B9 @
< @95 DB
;
>
599
=B99=F08
D8 A
B9@89=@89 =
'=695 @
8
B
9= @
6
7@@
588 =6
@?;=-:35:3"" =6 5
9
@=
B8
=@8
@9<
99=
>
@9
=
-*E>
@ 5
9=>
9
6 =6
=
A
(9@
>9=7
> 5;9= >>9
6B9@89;5
=
6" =6
7 @9
7
!=
C5
=@ 55 @
<
@
5@
=95> @
@8 @9 @'' @
6'@
7
@
69
6
7
?
=5D
=65 > 59@ =5
@
@6@D
5D5
5
=@9=9@D
@9A
<
<
=@ =69=56
):5A1=>-8'<1-71=%=;?1/?5;:-:0
4 @@
D>
4
=68
@
"@?5:3";0@81 5?
(E>
@> 5;9=
@
5@D
C>
=9A
>
;
9=@6 <
5959@
4 =98
@8
==
D9=@8<>@8 @
55B8
=< =D <>979
B9@58
6
=
77
>
59 DB8
=@8
A
<
9
@@
898 &&19;?1;:?=;8C?1:01="
A
08
6
9=
9=5
>
@
=
>@9
= ( E>
@> 5;9=
(41=195:'D:?41>5>1= 5?
A
@
<>
@
8
@
=
@8 @B9695
==
5@ ,>
@
D
#2#> D
699@ 6
5
6
( E>
@ =6> 5;9= @8
>
;
97@8
@>@@
@@
8
@ 9=9@
<
@
5
=@
7
< =
@8
<'@
08
08
<9=9 B
96<95 9=@<
=@@8 @
=79 4
7
>>DA
@
4
@B
= >95;>@8
9= 7
<@8
<
@
5
=@
=6
B 9=A
=@
6
D @5
=@D4@9@9
6 2#2#/>>9
6B9@8 9;5
=
6
=69@A9 B9
5 4
@
=9=7
6)$#
@
6 D08
"
58"
DF5 9589@%
6294 @9
= "
D =6
5@
=95
5 @
65
@
@8
6
A95
0899<>
A
6<
6
7
@
6 08
<9="D<
A9=D
8 =6 5
<>
=
=@ 7
@
7 @6 @ @ =7
5 > 4
7
4
@B
=@8
=@
== =6@8
<
@ > @
D
@ =<9@@9=
C@
699@
<
@
5
=@
9=
5
@
@ =
=6
77
5@9;
9=@8
5 D 9=@8
5
<
A9
(9@9=56
< 589=
6
9
6
5
6
#!
9;5
=
6 =6>
69
65
(9@>>9
6B9@8 !
5959@4
6
5@
=95 5
5
=
5
<>
=
=@ =6 >9=@
67
=@
5
$=98 > =
"B9@8
9=@5@9
=
A
D =6
5@
=95
.
?9
2#
5
<>
=
=@
B 6 >@
* >9=%/.. .
?9
2#B 6 >@
E *9=9<< * >9=%/.E
6
=
B
!;3;:?;
=DE
BBB6-D/-=181/?=;:5/>/;@71817?;=
2;=D;@=&/-?-8;3@1
!>95
9=E/@
";:0-D=50-D?;"(4;@=>;:8D
;=?4;>1B4;B-:??;B=5?1'58A1=B-?1=&0
'58A1=B-?1=#'+'D0:1D)'(&! >
@
BBB6-D/-=181/?=;:5/>/;@7
!
#'
*&#
#
- ) %$"$()'*#$)(
%'&%') %$""' )('('+")'%$ (%'!$*") ( #) %$"$()'*#$)($ %#$") %''
)'#'!(%) %$"$()'*#$)()'&'%*)$%#&$,$#(" ()')'#'!(%')'$#(%) ''(&) +%#&$ (
10/2007 - elektor 3
ElekTrack
electronics
worldwide
Just in case you did not notice, Elektor
has a new subtitle. Half a dozen of
these appeared and disappeared
over the past 34 years. For the
trace it with GPS
English-language edition, the first
subtitle to appear was ‘electronics for The alarm systems of expensive cars and other
lab and leisure’ and the most recent,
‘leading the way’. No different for vehicles often comprise positioning systems so they
the other language editions, which can report where the vehicle is located. However,
now abandon their latest subtitles
‘inspiring electronics’ (German), such systems are rather expensive, so we decided to
‘imaginative electronics (French) and
‘surprising electronics’ (Dutch) in
take the DIY approach and develop our own version,
favour of the new, unified, ‘electronics dubbed ElekTrack.
worldwide’.
The subtitle of a magazine ideally
qualifies the content as well acts
as an afterburner to the main title
— what’s the coverage and purpose
of the magazine, how does it affect
the reader and what’s the promise if
46 USBprog
he or she starts reading it on a regu-
lar basis. It’s ‘electronics worldwide’
now and we realise you may not
care too much because the contents
are more important: new circuits and
ideas every month that enable you
to experience and enjoy electronics
no matter if it’s professionally, as an
enthusiast or both at the same time.
Still, the new subtitle holds good news USB-to-serial converters are often slow, especially when it comes to software con-
for you, because it underscores our trol of the handshake signals. The delays are particularly irritating when develo-
intention to broaden our horizon. ping and debugging software. Good (i.e., fast) USB to serial converters exist but
Developments in electronics cannot are dearer than the more general purpose unit we describe here.
be stopped at frontiers using red &
white barriers. The internet acts as
a catalyst, vehicle and medium in
this unstoppable trend. That’s why
Elektor launched new websites for its 52 USB/UART Interfaces
main European editions recently, with
Spanish and Chinese to follow soon. USB bus and asynchronous serial busses (UARTs) appeared
Hence the new subtitle ‘electronics in the early 2000s. Now here we are with third, fourth,
worldwide’. Unwittingly, you are and even fifth generation circuits: faster, more reliable,
part of it all, together with 2 million and more stable (especially their drivers), and offering
others we reach every month with our
improved features.
publications and products.
This issue of Elektor also marks our
move from rather lacklustre, overcrow-
ded and worn out 1970s style offices
to a really ‘grand’ location — a real
castle from the 13th century. Although
we’re not allowed to paint anything The amplifier described here uses a mixture of transistors
on the façade, or even attach a smal-
lish nameplate (the building is under and valves to combine the advantages of both approaches
National Trust protection) we have and thus deserves the designation ‘hybrid’. The result is an
dubbed the premises ‘Elektor House’.
See pages 16-18!
amplifier with audiophile performance.
Wisse Hettinga
International Coordinating Editor
CONTENTS
Volume 33
October 2007
no. 370
36 projects
10 Readers Circuits: E-dictator
20 MUGEN
a Hybrid Audio Amplifier
30 Interference-free sound
36 Elektrack
42 Flash of Inspiration
46 USBProg
58 Home Automation
70 Design Tips
Retirement home for
alkaline batteries
72 EasyControl I/O
technology
62 Astounding Engineering 52 USB/UART Interfaces
infotainment
70 Labtalk: Data Books
76 Hexadoku
77 Retronics:
The Revophone (1922)
ELEKTOR ELECTRONICS WORLDWIDE
United Kingdom
Netherlands
Germany
France
China
Portugal
Spain
Greece
Sweden
Finland
Volume 33, Number 370, October 2007 ISSN 0268/4519 Elektor is also published in French, Spanish, German and Dutch. Together with franchised Editorial secretariat: Hedwig Hennekens (secretariaat@elektor.nl)
editions the magazine is on circulation in more than 50 countries.
Elektor Electronics aims at inspiring people to master electronics at any personal Graphic design / DTP: Giel Dols, Mart Schroijen
level by presenting construction projects and spotting developments in electronics
International Editor: Mat Heffels (m.heffels@elektor.nl), Managing Director / Publisher: Paul Snakkers
and information technology.
Wisse Hettinga (w.hettinga@elektor.nl)
Marketing: Carlo van Nistelrooy
Publishers: Elektor International Media, Regus Brentford,
Editor: Jan Buiting (editor@elektor.com)
1000 Great West Road, Brentford TW8 9HH, England. Tel. (+44) 208 261 Customer Services: Anouska van Ginkel
4509, fax: (+44) 208 261 4447 www.elektor.com International editorial staff: Harry Baggen, Thijs Beckers,
Ernst Krempelsauer, Jens Nickel, Guy Raedersdorf. Subscriptions: Elektor International Media,
The magazine is available from newsagents, bookshops and electronics retail Regus Brentford, 1000 Great West Road, Brentford TW8 9HH, England.
outlets, or on subscription. Design staff: Antoine Authier, Ton Giesberts, Paul Goossens, Tel. (+44) 208 261 4509, fax: (+44) 208 261 4447
Elektor is published 11 times a year with a double issue for July & August. Luc Lemmens, Jan Visser, Christian Vossen Internet: www.elektor.com
6 elektor - 10/2007
W!
A world NE Books
Highlights from the Elektor’s book portfolio. Not just the
latest titles but also top selling publications from the past.
CD-ROMs
from a single Our digital media collection. Software, hardware, education
and, of course, lots of Elektor magazine articles! Nearly all
disciplines from the wide fields of electronics and information
shop
technology are represented.
brand new shop pages a kit of parts or a ready-populated and tested board with
many projects published in the magazine. We leave the
choice up to you!
in Elektor!
Also monthly
in the restyled Elektor Shop:
• Bestsellers: listing the five top selling publications for
each medium
10/2007 - elektor 7
INFO & MARKT MAILBOX
8 elektor - 10/2007
meter from the DIY shop. The strongly dependent on the raw
latter is now sitting in the only
place where it is useful: in the
supply voltage and I would
advise all users to check their
Corrections & Updates
caravan as a sort of glorified batteries from time to time.
voltage tester. Edward Piso Coil Clinic - June 2007, p. 62-65, ref. 060195-I
The article says that ‘the stated The ‘Low Battery’ message is erroneously displayed when the
specifications are guaranteed Thanks for that Edward, again it battery voltage is sufficiently high. The problem is convenien-
for one year, after which points to economies in the elec- tly solved by replacing R2 (10 k7) with a 56 k7 resistor.
calibration may be necessary’. tronic design, in particular, the
I would suggest changing that supply regulation.
to ‘…after which calibration Voltage Stabiliser - July/ August 2007, p. 86, ref. 070280-I
may still be possible’. The input voltage range for this circuit is 3 V to 25 V, not
F.R. Goodmans (UK) 13 V to 25 V as indicated in the circuit diagram.
A handmade resistor
The deviations you found are Dear Elektor readers — have
indeed quite large. They can you ever needed an oddball Tube Sound - June 2007, p. 38-44, ref. 070067-I
probably not be corrected by resistor value like 3 k7 and The circuit diagram in Figure 5 contains a few errors. The
recalibration. Naturally, we do there’s nothing to match in the correct rating of C6 and C7 is 47 μF / 100 V as indicated in
not have any experience with component drawers? Cut off the parts list. Also, C7 should be reversed, i.e. the negative
the long-term accuracy of such a slice of ‘IC foam’ (yes the terminal is connected to ground.
meters, but it is obvious that you conductive black stuff they use The ratings of the fuses shown in Figure 6 are higher than
can’t expect too much from the to prevent ESD on ICs during those stated in the parts list. The lower ratings are adequate
internal mechanical construction transport and handling), use however.
(rotary switch) of a meter that your ohmmeter and trim the
piece to the desired value.
I tested it for an LED and it Speedmaster - May 2007, p. 50-55, ref. 070021-I
worked just fine! As correctly indicated by the text and the PCB design, output
Nivard (by email) 15 of the sensor (XOUT) is connected to the AN0 input of the
R8C via a 1-k7 resistor. In the circuit diagram however, AN0
Seems like clever method but and AN2 are shown reversed. XOUT should go to AN0 and
not sure about the stability of the ZOUT, to AN2.
resistance and of course the cur-
rent rating!
10/2007 - elektor 9
INFO & MARKT READERS CIRCUITS
E-Dictator
+5V +5V
+5V +3V
C7
8
100n R1 R13 R6 R2
3 IC1 HLD 7 C10 C11 C13
11 32 WP
10k
33k
33k
33k
1 6
CS SCK
1 2 100n 100n 100n
2 5
MCLR/THV RA0/AN0 SO SI
3 11 12 48
RA1/AN1 25AA256
VCCD
VCCA
VCCD
30 4
RD7 RA2/AN2
29 5 4 13
RD6 RA3/AN3 INT
28 6 3 25
RD5 RA4/T0CKI VCLK CS
27 7 6
RD4 RA5/AN4 MISO
22
RD3 R9
21 IC4 15 15 46
RD2 RC0 6k8 SS SPK+
20 16 LS1
RD1 RC1
19 17 4
RD0 RC2 R11 IC3 VFS
18 16 5
PIC16F877A RC3 6k8 SCLK VDX
33 23
INT/RB0 RC4 R7
34 24 14 42
RB1 RC5 6k8 MOSI SPK-
35 25
RB2 TX/RC6
36 26 WTS701BM
RB3/PGM RX/RC7 T1 27
37 RST
RB4 26 40
38 8 RDY ATTCAP
RB5 RE0/RD/AN5
39 9
RB6/PGC RE1/WR/AN6 52 54
BC109B AUX IN AUX OUT
40 10
RB7/PGD RE2/CS/AN7
R16 R17 R18 OSC1 OSC2 36
C15 VSSA C14
12 13 14 31 44
10k
10k
10k
VSSD
VSSD
X1 VSSA
100n XT0 XT1 VSSA 100n
S1 S2 S3 C5 C6 9 10 7 8 2
R8 R10 R12 R5 X2 R4 C12 R3
10k
10k
10k
10k
10k
10k
15p 15p
C8 C9 4M7
NEXT REPEAT PREVIOUS 8.0MHz
C2 10p 10p
+5V
10M 24.576MHz
2
16 V+ 1
C1+ C4 +5V IC5
K1
NTE956
1 IC2 3
C1– 10M +3V
6 14 11
T1OUT T1IN +5V
2 7 10
T2OUT T2IN R15
Connect to PC
7 13 12
R1IN R1OUT
150 7
3 8 9
R2IN R2OUT
8 4
C2+ C1
4
MAX232
9 15 5 R14
C2– 10M
220 7
5 V-
6
C3
SUB D9 060352 - 11
10M
10 elektor - 10/2007
the processor, E-dictator employs only one, called ‘Ready’ (RDY). that, the microcontroller returns to its regular procedure of direct
Resistors R7-R12 act as voltage dividers to adjust 5-V logic to 3-V transmission of the data from the UART to the EEPROM. Recording
logic on the speech processor input lines. The open-drain output mode stops when a timeout occurs in the data transmission, which
of the speech processor (MISO) is tolerant of 5-V swings, allowing causes the program flow to return to the event loop.
a seamless connection of the speech processor to the microcon-
troller. RDY is an open-drain feedback pin pulling Low when the Playing back messages. When you press a button, this event is
internal buffer of the speech processor is full. RDY was found to registered and the program flow is diverted from the event loop to
be 5-V intolerant, i.e. major faults would occur in the operation a speaking mode. The PIC micro maintains a pointer to the current
of IC3 if this pin was pulled up to 5 V. Therefore, transistor T1 is message. If the user pressed ‘Repeat’, then microcontroller retrie-
necessary to adjust voltage levels. ves text from the EEPROM starting from the appropriate address.
Due to the EEPROM and speech processor sharing the same SPI
The software was written in assembly language using Microchip bus, the PIC micro stores a portion of the text message in its in-
IDE. The PIC program is organized in an event-driven fashion. An ternal RAM and uploads text into the speech processor piece by
event loop) is constantly running upon the program start. Two con- piece: while the speech processor is interpreting and speaking the
ditions cause the loop to break: occurrence of a data character in text, the microcontroller retrieves further parts of the message from
the UART buffer or a press-button event. the EEPROM and stores in its RAM. This procedure continues until
the entire message is transferred from the EEPROM to the speech
Recording messages. When data arrive to the UART buffer, the processor.
program switches to a message recording mode. In this mode, as
soon as the character arrives to the UART buffer it is echoed back If the user presses ‘Previous’ or ‘Next’, the program scrolls through
to the PC and also immediately transferred into EEPROM via the EEPROM to locate the appropriate message. When it is located,
SPI. The EEPROM can only continuously receive up to 64 bytes, the program executes the same procedure as described in the
which is determined by its paged organization. As soon as the 64- previous paragraph.
byte page is full, the EEPROM needs some time (up to 5 ms) to ac- (060352-I)
tually store the data. While the EEPROM is completing its internal
write cycle, the PC does not stop transmitting characters. Those The project software is available as a free download from
characters are temporarily stored in the RAM of the microcontrol- www.elektor.com. Follow Magazine October 2007 Mailbox.
ler until the EEPROM is ready for more data. As soon as that is
the case, the stored characters are flushed into the EEPROM. After
Advertisement
10/2007 - elektor 11
INFO & MARKET NEWS & NEW PRODUCTS
12 elektor - 10/2007
Robots donated to schools and colleges
The InstMC Wessex Section has donated a number of Lego Mindstorms
Robot kits to Education Establishments in the Hampshire and Dorset Area
and is aiming for more donations in the future due to the great feedback
received so far.
Donations are being funded from Social Events run by the Section with
many more such events being planned.
The Lego Mindstorm Education kits comprise a programmable proces-
sor and I/O brick with a cut-down version of industry standard software
LabView NXT.
The brick takes inputs from a very wide range of sensors (movement,
proximity, temperature, sound, light, touch together with being able to
drive actuators and motors with positional feedback.
The command and reaction code is programmed graphically with nest-
ing, branching and feedback loops in abundance but is suitable for
young children as well as Instrumentation and Control System Engineers.
The processor bricks can communicate with each other over Bluetooth
as well as to a programming and monitoring PC.
The online Mindstorms community is vast with downloadable code
blocks, example projects, videos of others creations and competitions.
Mr. John Lambert, Teacher at Shirley School receives the robot kit.
Silchester Control Systems, and caught up on the vital need for more En-
gineers in the UK to continue the UK’s global strength in innovation.
King Edward VI School will be using the donation education kits to
help promote the vital ‘engineering spark’ to young students up to
GCSE level.
Shirley School will be working with young people during science and
after school clubs to demonstrate robotics, learn construction, instrumen-
tation and motion programming skills.
Wessex Section are doing their bit for the Institute’s Royal Charter: “To
promote for the public benefit, by all available means, the general ad-
vancement of the science and practice of measurement and control tech-
nology and its application.” This, coupled with frequent schools and
colleges visits for open days and student talks is what the section can
do with only volunteers but is it enough for the UK’s future? What can
you do?
(070679-III)
www.instmc.org
www.studentrobotics.org
http://www.ecs.soton.ac.uk/about/news/1273
Cevn Vibert (centre left holding robot) and Dr Klaus-Peter Zauner (holding kit box), with Kisan
Visavadia (far left) and Richard Ashley-Smith (far right), and in front, Rob Spanton and Stephen
English of the Student Robotics Club, and Philip Bennett.
10/2007 - elektor 13
INFO & MARKET NEWS & NEW PRODUCTS
14 elektor - 10/2007
USB Mixed Signal Oscilloscope
Standard 1M/20pF BNC inputs Smart POD Connector Opto-isolated USB 2.0 12VDC with low power modes
www.bitscope.com
10/2007 - elektor 15
INFO & MARKET ELEKTOR
Elektor electronics
Elektor House,
it doesn’t get more
historical than that!
Wisse Hettinga
For more than 40 years Elektor has taken its readers on a journey of discovery through
the world of electronics. First in the Netherlands, and quickly followed by other countries
and language areas. The unique formula of this magazine has withstood the test of time.
The magazine, the books and events, the projects you can build yourself — all in all an
enormous collection of activities and this goes around the whole world. Hence the byline
electronics worldwide. What’s in a name?
The answer is given by our readers themselves. Mention magazine has always closely followed the latest technolo-
Elektor in an arbitrary group of boffins or techies and eve- gy. However, since the beginning of the 1980’s the evolu-
ryone will come up with a different story, anecdote or me- tionary pace of electronics has also become the greatest
mory: the first radio or amplifier, the first computer, the first threat. With the arrival of ICs, surface mounted technolo-
... name whatever you like! A great many readers, now gies and digital technology, building things yourself beca-
often with good jobs in process automation or electronic me less attractive and viable. At the same time, consumer
product development made their first steps with the help of electronics became considerably cheaper, which removed
Elektor magazine Putting aside a sense of modesty: in these an important argument for making things yourself. Disap-
43 years Elektor has written ‘electronics’ history and built peared completely? No, building and discovering things
an enormous reputation while half a dozen competitors fell for yourself continues to have unbelievable attraction, and
off their perch. All this time Elektor has been true to its prin- worldwide many people occupy themselves doing this, eit-
ciples: unless otherwise indicated, circuits described have her privately or professionally.
been tested and work; all designs are repeatable and the
16 elektor - 10/2007
s worldwide
The secret
For the big secret behind Elektor as a publication
and institution we have to look across all borders.
Soon after the launch of the Dutch edition in 1964
it became clear that there was also potential in oth-
er countries. A German edition quickly followed
and in a few years the circulation increased there
to 100 kcopies. After that came the United King-
dom (1974) and France (1978). We recently also
launched Elektor in Spain. With our own activities
and licences, websites in five languages, a large
selection of books and live events we inform an au-
dience of 2 million people worldwide. We receive
reactions and mail from the entire world about our
articles and products. We are, to be honest, quite That’s him! Jan Buiting,
proud of this. Even better than this, we see good op- editor of this the English-
portunities for further expansion of the title into more language edition of Elektor
countries, regions and/or language areas. We are has been with the company
currently taking the first steps to develop activities in since 1985. Jan’s cherished
projects are the 1986
China and Eastern Europe. To give shape to all plans
Elektor Satellite Receiver
and ambitions we have changed the name of the
and the 1989 Filmnet
publisher from Segment to Elektor International
Decoder. Both projects
Media and the name of the Dutch language maga- were authored by him in
zine is changed from Elektuur to Elektor to bring it in collaboration with two
line with all other editions. friends (who shall remain
“The purpose of the publication remains unchanged anonymous). The Filmnet
however” were the words of Bob van der Horst at decoder resulted in a
the launch of the Dutch Elektuur in 1964, when re- sell-out of the magazine,
ferring back to his earlier publication Elektronica- extensive press coverage
Wereld. “We will be primarily practically oriented and about 20,000 units
and in this way supplement the theoretically oriented built, mainly in the UK and
foreign magazines”. Words to the same intent can Scandinavia.
still be said today. In as much as the first Elektor was
about informing, inspiring and activity, discovering
for yourself all the things you can do with electro-
nics, Elektor these days is no different: we remain
very much a projects-oriented and hands-on maga-
zine. Elektor continues to explore the boundaries of
electronics, and everyone is invited to come along
to discover and experience. We have however en-
tered the path of professionalism more and more.
Indeed, exactly those people who say: “Elektor,
now wasn’t that the hobby mag from the seven-
ties? Amazing to see you’re still around”.
10/2007 - elektor 17
INFO & MARKET ELEKTOR
18 elektor - 10/2007
mikroElektronika
DEVELOPMENT TOOLS | COMPILERS | BOOKS
EasyPIC4 Development Board Uni-DS 3 Development Board LV 18FJ Development Board
Complete Hardware and Software solution with on-board Complete Hardware and Software solution with on- Complete Hardware and Software solution with on-board
USB 2.0 programmer and mikroICD board USB 2.0 programmer USB 2.0 programmer and mikroICD
EEPROM Board - Serial System supports 64, 80 and 100 pins PIC24F/24H/dsPIC33F The system supports 18, 28 and 40 pin microcontrollers (it The system supports dsPIC microcontrollers in 64 and 80 pins
EEPROM board via I2C microcontrollers (it comes with PIC24FJ96GA010 - PIC24 16-bit comes with dsPIC30F4013 general purpose microcontroller packages. It is delivered with dsPIC30F6014A microcontroller.
interface. Microcontroller, 96 KB Flash Memory, 8 KB RAM in 100 Pin with internal 12-bit ADC). EasydsPIC4 has many features dsPICPRO3 development system is a full-featured development
Package). Examples in BASIC, PASCAL and C are included that make your development easy. Many of these already board for the Microchip dsPIC MCU. dsPICPRO3 board allows
RTC Board - PCF8583 RTC with(in) the system. You can choose between USB and External made examples in C, BASIC and PASCAL language guaran- microcontroller to be interfaced with external circuits and a broad
with battery backup. Power supply. LV 24-33 has many features that make your devel- tee successful use of the system. Ultra fast USB 2.0 on-board range of peripheral devices. This development board has an on-
opment easy. USB 2.0 on-board programmer with mikroICD (In- programmer and mikroICD (In-circuit Debugger) enables board USB 2.0 programmer and integrated connectors for
Circuit Debugger) enables very efficient debugging and faster pro- very efficient debugging and faster prototype developing. MMC/SD memory cards, 2 x RS232 port, RS485, CAN, on-
totype development. board ENC28J60 Ethernet Controller, DAC etc...
PICFlash programmer – an
ultra fast USB 2.0 programmer
for the PIC microcontrollers. The system supports 8, 20, 28 and 40 pin microcontrollers (it
Continuing its tradition as one SupportingAan impressive range of microcontrollers, an easy-to- The system supports 64-pin and 100-pin AVR microcon-
useaIDE, hundreds of ready-to-use functions and manyaintegrated comes with ATMEGA16). Each jumper, element and pin is trollers (it is delivered with ATMEGA128 working at 10MHz).
of the fastest PIC programmer clearly marked on the board. It is possible to test most of
on the market, a new PICFlash toolsAmakes MikroElektronika compilers one of the best choices on Many already made examples guarantee successful use of
the market today. Besides mikroICD, mikroElektronika compilers industrial needs on the system: temperature controllers, the system. BIGAVR is easy to use Atmel AVR development
with mikroICD now supports counters, timers etc. EasyAVR4 is an easy-to-use Atmel AVR
more PIC MCUs giving devel- offer a statistical module, simulator, bitmap generator for graphic dis- system. BIGAVR has many features that makes your devel-
plays, 7-segment display conversion tool, ASCII table, HTML code development system. Ultra fast USB 2.0 on-board program- opment easy. You can choose between USB or External
oper a wider choice of PIC mer enables very efficient and faster prototype developing.
MCU for further prototype export, communication tools for SD/MMC, UDP (Ethernet) and USB , Power supply. BIGAVR also supports Character LCD as well
EEPROM editor, programming mode management, etc. Examples in BASIC and Pascal language are provided with as Graphic LCD.
development. the board.
mikroICD debugger enables Each compiler has many routines and examples such as EEPROM,
you to execute mikroC /
mikroPascal / mikroBasic pro-
FLASH and MMC, reading/writing SD and CF cards, writing charac-
ter and graphics on LCDs, manipulation of push-buttons, 4x4 key-
Easy8051B Development Board EasyPSoC3 Development Board
with on-board USB 2.0 programmer with on-board USB 2.0 programmer
grams on the host PIC micro- board and PS/2 keyboard input, generation of signals and sounds,
controller and view variable val- character string manipulation, mathematical calculations, I2C, SPI,
ues, Special Function Regi- RS232, CAN, USB, RS485 and OneWire communications,
sters (SFR), memory and EEP- Manchester coding management, logical and numerical conversion,
ROM while the program is run- PWM signals, interrupts, etc. The CD-ROM contains many already-
ning. written and tested programs to use with our development boards.
- All of our products are mikroElektronika manufactures competitive development sys-
shipped in special tems. We deliver our products across the globe and our satis-
protective boxes. fied customers are the best guarantee of our first-rate service.
The company is an official consultant on the PIC microcon-
- On-line secure ordering trollers and the third party partner of Microchip company. We
provides fast and safe are also an official consultant and third party partner of Cypress
way of buying our products. Semiconductors since 2002 and official consultant of Philips
Electronics company as well. All our products are RoHS compilant.
The system sup-
System is compatible with 14, 16, 20, 28 and 40 pin micro- ports 8, 20, 28 and
http://www.mikroe.com/en/distributors/ controllers (it comes with AT89S8253). Also there are 48 pin microcon-
PLCC44 and PLCC32 sockets for 32 and 44 pin microcon- trollers (it comes with CY8C27843). Each jumper, element and
Find your distributor: UK, USA, Germany, Japan, France, Greece, Turkey, Italy, trollers. USB 2.0 Programmer is supplied from the system pin is clearly marked on the board. EasyPSoC3 is an easy-to-
Slovenia, Croatia, Macedonia, Pakistan, Malaysia, Austria, Taiwan, Lebanon, and the programming can be done without taking the micro- use PSoC development system. On-board USB 2.0 program-
Syria, Egypt, Portugal, India. controller out. mer provides fast and easy in-system programming.
10/2007 - elektor 19
PROJECTS AUDIO
MUGEN - A Hybrid
The best of both worlds?
Wim de Haan
There are many different configurations for audio amplifiers, including types with bipolar transistors,
FETs, ICs, and valves. The amplifier described here uses a mixture of transistors and valves to combine
the advantages of both approaches and thus deserves the designation ‘hybrid’. The result is an
amplifier with audiophile performance.
Valves (or ‘vacuum tubes’) are experi- must have sufficiently low distortion, halves of the ECC83 (US equivalent:
encing a real revival in the audio world, since overall negative feedback is not 12AX7) can be regarded as a third in-
which can readily be seen from the used in this design. The circuit must put, which here provides 6 dB of local
large number of commercial amplifiers also be able to drive a load impedance negative feedback.
and DIY designs that have appeared in of 10 k7, since the driver circuit sees A characteristic of the long-tailed pair
recent years. R11 (20 k7) in parallel with the combi- is that it has two outputs with oppo-
Unfortunately, valve amplifiers are rela- nation of P3 and R16 (20 k7). The im- site phases (180 degree phase offset).
tively costly compared with transistor pedance could be increased by boot- The left anode is ‘in phase’, while the
amplifiers, in part due to the need for a strapping or using MOSFET drivers, right anode is ‘out of phase’.
high voltage supply and output trans- but bootstrapping and MOSFET driv- The long-tailed pair normally has
formers. Output transformers in partic- ers do not fit with the concept of this a common cathode resistor, which
ular are a major investment. amplifier. is what gives it its name. A current
This design attempts to remedy this In other projects implemented en- source is used instead in this design.
situation by replacing the output tirely with valves, the author has ac- The high internal impedance of the
valves and transformer by a solid-state quired experience with driver stages current source improves the charac-
circuit using modern transistors, which that must supply output signals with teristics of the circuit, including the
can drive a loudspeaker directly. Valves large amplitudes and low distortion. distortion, and the operating current
are used in the input stage. The ‘long-tailed pair’ circuit is excep- of the ECC83 can be adjusted easily
tionally well suited to this task. This using a trimpot.
configuration was also chosen because Due to its high amplification factor
Driver circuit it can act as a phase splitter, which al- (100) and excellent availability, the
The amplifier (Figure 1) consists of a lows a certain trick to be used as ex- ECC83 is the right choice for this ap-
voltage stage and a current stage. The plained below. plication. The need for high gain can
voltage stage, which is the driver por- The long-tailed pair can be regarded be explained as follows. The long-
tion, is built around valves V1 and V2, as a differential amplifier that ampli- tailed pair has 6 dB of local negative
and it must provide adequate amplifi- fies the difference between the signals feedback. A normal cathode-resistor
cation of the input signal. Here 20 to on the two control grids. The input sig- or grounded-cathode amplifier built
30 dB is a practical figure. The current nal is connected to the ‘left’ input. The around an ECC83 can provide a gain
stage, which is built around transis- ‘right’ input is tied to ground here, so of more than 35 dB, and the long-tailed
tors Q4 and Q5, enables the amplifier the output signal is an amplified ver- pair circuit used here can provide more
to drive 4-ohm or 8-ohm loudspeakers. sion of the input signal. An advantage than 29 dB. The original intention with
The current stage acts as buffer and of this arrangement is that feedback this amplifier was to avoid using over-
does not have any gain. can be connected to the right input, all negative feedback. However, we
The voltage stage has to supply a solid where it will be subtracted from the have included an option for adding
25 Veff to the current stage to drive the original signal. This negative feedback 6 dB of overall negative feedback. A
amplifier to its maximum output lev- reduces the amount of distortion. jumper/header is provided on the PCB
el. A key factor here is that the signal The common cathodes of the two for this purpose. This allows every-
Mugen Hybrid Amp – Mugen (mu-gen) is a Japanese word that means ‘infinity’ of ‘endless’. ‘Endless’ is the name of a track on the live CD Figure 1. The hybrid amplifier has a valve driver stage
Changeless by the Keith Jarrett Trio. This piece was the source of the author’s inspiration for this design. and a transistor output stage.
20 elektor - 10/2007
Audio Amplifier
R8
2k43 JP1
Cfb
Q2 100n 270M
4 9 5 R13 D2 50V
R3 R4
C1 392 7
2SC2073
150k
150k
C14 Q4 UF4007
100n
2W 2W 400V R14
100n V2.A 6 272 switch-on &
+195V DC protection
R15
R5 RLY1 circuit
100 7
7 ECC88
+190V 1k
6V3 6V3 TP1
2SC5200
C2
V1.A ECC83 V1.B 8
6 1
R21
3M3
0722
R2 630V Q1
7 2
1k +194V RLY1
R1 R6 R7 P2 4W
8 3
100 7
R22
22k
392k
R23
0722
10 7
R10
2x 100n
560 7
BC550B
Q7
Q3
D4 R17 D3
392 7
LED1 2SA940
P1 1N4001 Q5 UF4007
2k U1 Rth = 21K/W R18
272
C8 C9 C10
LM337 R16 R19
100 7
-12V
20k
R20
1k
C13 C12 C11
-38V
R44 R9 R25
47M 50V 100n 10M 50V
C39
274 7
1k5
477
10M 25V
070069 - 11
10/2007 - elektor 21
PROJECTS AUDIO
22 elektor - 10/2007
ance of the transistor stage to form an
RC filter with a corner frequency of D5
1N4001
1 / (2P r 3.3 MF r 10 k7) RLY1 = Amplimo LR 24V
U2 Rth = 21K/W
+24V
D6... D8 = 1N4148
the coupling capacitors must have a +42V LM317
working voltage of at least 400 VDC. R26 R28
D7
182 7
1M
Current stage RLY1 D6
D8
R27
The current stage (power stage) is C16 C17
3k3
R29
based on bipolar transistors. Although 10M 10M
1M
MOSFETS such as the BUZ900P or 50V 50V Q8
1k
330k
10M
amplifier
output 22M
63V
The selected driver transistors are
R33
often used in audio amplifiers. They Q9
100k
have outstanding characteristics for Q10
R34
audio use, and besides that they are
100k
inexpensive. The output transistors 2x
C19
(2SC5200) have excellent characteris- R35 BC547B
100k
tics, and they are specifically designed 2x 47M 25V C20
10/2007 - elektor 23
PROJECTS AUDIO
Z1
110V
R42 +310V
1W3
D13 1k R
* see text
1W
C27
1N4007
U3 SK104 14K/W 22M 400V
D9...D12 = BY228 1200V
+315V
T1 red
TL783 R43 +310V
+360V 1k L
R39
1W
330 7
Amplimo 3N604
*
C23
C28
250V
D9...D12 22M 400V
2n2
R40 R41
F1 C24 C25 C26
150k
82k
gelb
400mA T 150M 100n 10M
pink 450V 3W 400V 3W
115V purple
DF06M
600V - 1A
black +42V
B1
30V
white
C21 C22
115V purple
220M 100n
50V
brown
R36
0722
* 6V3
blue
1W R37
100 7
C15 1W
6V3
1M R38
100 7
250V
1W
grey
6V3
L
MAINS F2 T2
230V *
C29 +38V
N 1A6 T B2
28V
2n2
C31 * C32 C33 C34
*
C30
28V
B3
2n2
Amplimo 78075
C35 * C36 C37 C38
- 38V 070069 - 12
and C8 can also be 220 MF or 330 MF here to mimic a PNP transistor. Quasi- that the BL version of the 2SC1815
if desired. P3 allows the DC offset of complementary circuits normally use should be used here. Although the -O,
the output stage to be set to zero. Ac- a ‘Baxandall diode’ to improve sym- -Y and -GR versions can also be used,
tive DC offset control in the form of an metry and linearise the response. This they yield results that are practically
opamp integrator is intentionally not approach was used in the Ekwa ampli- the same as with a normal diode. The
used here because the author believes fier published in Elektor in 1972. In the difference decreases gradually at lev-
that this affects the sound quality of present design, a transistor configured els greater than 5 W. The PCB is de-
the amplifier. as a diode (Qbax) is used instead of a signed to allow a 2SC2073 or a 1N4007
Q2 and Q4 form a Darlington pair that normal diode. The measured distortion to be used instead. This is also the or-
provides adequate current gain, as do at 1 W was 0.22% with a diode in the der of preference. Obviously, only one
Q3 and Q5. Q3 and Q5 form what is circuit, while the value with a 2SC1815 of these three types of components can
called a ‘Sziklai pair’, which is used configured as a diode was 0.08%. Note be fitted on the board.
24 elektor - 10/2007
Figure 4. The amplifier board can be split in two, depending on how it is arranged in the enclosure. Component overlay reproduced at 80% of actual size.
Thanks to the inherent local negative of the speaker. This coil is omitted in mately 310 VDC.
feedback, the output stage is very sta- the version of the amplifier described If you cannot find a Wima FKP1 type
ble with regard to temperature drift here. A DIY coil with an inductance of for C23 as specified in the components
and quiescent current. The emitter re- 4 MH, consisting of 16 turns of 0.75-mm list, you should omit it.
sistors should preferably be Intertech- enamelled copper wire wound on a 6.3- The 30-V winding of transformer T1 is
nik MOX types. They are non-inductive mm drill bit, can be used here if de- used for the switch-on delay and pro-
and have relatively small dimensions. sired. A 15 7/2 W resistor must be fit- tection circuit.
The amplifier output has a Zobel net- ted inside the coil and soldered across The AC filament voltage is tied to
work built around R23 and C7, which the coil. ground via a capacitor. In this case
ensures stability above 100 kHz. it cannot be connected directly to
Base resistors (R13, R17, R14, and R18) ground. This is because the cathode of
are used for all transistors in the output
Power supply the ECC88 is not close to ground po-
stage to prevent oscillation. The resis- The high-voltage supply (Figure 3) tential here, but instead at +195 V. The
tors for the driver transistors (R13 and uses a type TL783 voltage regulator IC. capacitor arrangement allows the max-
R17) are essential. The input voltage of the TL783 must imum cathode–filament voltage rating
The heatsink extrusion for each output be approximately 360 VDC for proper to be respected. This floating filament
stage must be rated at 0.7 K/W or less operation. The Amplimo toroidal high- supply works well in practice. A value
to ensure reliable operation. voltage transformer used here provides of 0.47 MF can be used instead of 1 MF
The switch-on delay and DC protec- this voltage in a manner that is per- with equally good results.
tion circuit (Figure 2) is built around haps somewhat unorthodox. The 250-V The value of R36 must be determined
relay RLY1 and MOSFET Q8. This cir- winding is so generously dimensioned experimentally. This resistor deter-
cuit was previously used in the Valve that it is hardly loaded by the ECC83s mines the value of the filament voltage,
Final Amp design published in the and ECC88s, so the secondary voltage which must be close to 6.3 V.
April/May 2003 issues of Elektor Elec- is a good deal higher than the rated The power supply shown here is suit-
tronics. The switch-on delay is approxi- 250 V. You should bear this in mind if able for stereo use, but it can also be
mately 30 seconds. If a hazardous DC you use a different transformer. The used for a mono final amplifier. If it is
voltage is present at the output, the re- TL783 is fitted with a small heat sink used for a stereo version with a single
lay will disconnect the amplifier output and must be mounted insulated. transformer and a single supply PCB,
from the loudspeaker. The relay used Voltage divider R39/R40 sets the out- then R37, R38 and C15 only have to
here is an Amplimo type with special put voltage to around 315 V. Resistor be fitted on one of the two amplifier
contacts that make it especially suit- R41 is included to discharge the elec- boards, although fitting them on both
able for use as an output relay in audio trolytic capacitors when the amplifier boards will not do any harm.
amplifiers. is switched off. R40 and R41 must be The o38-V supply is simple but effec-
A coil can optionally be fitted in se- 3-watt types. R42/C27 and R43/C28 tive. A toroidal transformer with a sec-
ries with the output to make the am- are additional RC filters for the left ondary voltage of 2 r 28 VAC gives the
plifier more general-purpose with re- and right channel, respectively. The best results in terms of output power.
spect to possible capacitive behaviour high voltage for V1 and V2 is approxi- If you use a different type of transform-
10/2007 - elektor 25
PROJECTS AUDIO
Figure 5. The power supply board is dimensioned for a complete stereo amplifier. Component overlay reproduced at 80% of actual size.
26 elektor - 10/2007
er here, a type with a more conven- must be kept as short as possible. big enough to hold a complete ampli-
tional value of 2 r 25 VAC can be used, Figure 6 shows clearly how the tran- fier board.
but the maximum output power will sistors of the power stage are fitted The two supply transformers and the
be somewhat less. The 2.2-nF Wima (all insulated!). For best results, first fit bridge rectifiers for the o38-V supply
FKP-1 capacitors provide additional the transistors to the heat sink, bend are fitted in the middle of the base of
decoupling. their leads at right angles, and then the enclosure. The supply board is lo-
secure the board to the heat sink with cated above transformer T1.
screws. Do not solder the transistors
Construction in place until everything is properly The amplifier board and supply board
The PCBs for the amplifier and the positioned. have several ground connections. They
power supply are shown in Figures 4 must all be connected separately to a
and 5. The actual size layouts can be An enclosure with two large heat single star point as indicated in Fig-
downloaded from the Elektor website, sinks on the sides was used for the ure 8. In order to avoid ground loops,
or you can order ready-made boards prototype (see the photo of the fully the grounds of the o38-V supply, the
from PCBShop. The board shown in assembled amplifier in Figure 7). It is +42-V supply and the +310-V supply
Figure 4 is for a mono amplifier, so you
need two amplifier boards and a power
supply board for a stereo version.
10/2007 - elektor 27
PROJECTS AUDIO
are not joined on the supply board. The Alignment Before switching on the amplifier, en-
4.7-7 resistor (R44) between the input sure that the wiper of P2 is at the end
neutral terminal and circuit ground is Inspect all components and connec- connected to the collector of Q1.
optional and can be replaced by a wire tions before switching on the amplifi-
link, but in the prototype this resistor er. Check that the transistors are insu- This results in minimum quiescent
proved to be necessary to keep the lated from the heat sink and from each current. Test points TP1 and TP2 are
overall arrangement free of hum. other, check the polarity of the elec- provided for this purpose on the PCB.
trolytic capacitors, and check that the Adjust potentiometer P1 to a value of
Be sure to use plastic standoffs for right valves are fitted in the sockets. approximately 800 7 before soldering
mounting the circuit boards. Metal The ECC83 and ECC88 are absolutely it to the board.
types can cause shorts between PCB not electronically interchangeable.
tracks and the heat sink or chassis. After switching on the amplifier, adjust
A mains entry unit, a double-pole The amplifier has three adjustment P1 so the DC voltage at TP3 is +1.6 V.
mains switch, a pilot light and a pair points: The exact value is not critical, but the
of fuse holders for the transformers can • P1 sets the operating current of the DC voltage measured across R7 must
be fitted on the primary side. In this ECC83. be close to +195 V (±5%). If neces-
regard, consult the instructions on the • P2 controls the quiescent current of sary, readjust P1 to obtain this value.
Electrical Safety page that’s published the output transformers. The anode voltage of V1b should be
regularly in the magazine, or accessible • P3 adjusts the DC level of the about +190 V. These three voltages
permanently on the Elektor website. output. are interrelated.
28 elektor - 10/2007
After this, adjust P2 and P3 with no in- Key points is often a problem with final amplifiers
put signal and no load. P3 controls the • Be careful! High voltages are present that do not use negative feedback.
output offset. The DC voltage meas- at various places on the circuit boards. The sound characteristics of an am-
ured at the output must lie between Remember that residual voltages can plifier are often difficult to express in
+50 mV and –50 mV. It varies slightly, be present for a while after the ampli- words, but here we’ll try to give you
which is normal. Then adjust P2 to set fier is switched off. an impression in a few sentences. The
the quiescent current. The DC voltage • Be kind to your loudspeakers: never amplifier can create a splendid sound
across emitter resistor R21 or R22 must connect or disconnect inputs or interlinks stage, the lows are controlled, and the
lie between 22 mV and 33 mV (for a unless the amplifier is switched off. dynamic behaviour is convincing. The
quiescent current of 100 to 150 mA). listening pleasure is thus also very
After the amplifier has warmed up for good. The Mugen amplifier has an
approximately 15 minutes, check all
Results honest character without any signs
the values again and adjust the set- Despite the fact that overall negative of an exaggerated ‘valve sound’ (i.e.
tings as necessary. feedback is not used in this amplifier, colouration).
You can repeat this procedure several it has relatively low distortion. The dis-
times during the first hour. In between tortion is less than 0.1% at low power By combining a valve driver stage with
these adjustment cycles, you can test levels. This respectable value is the a transistor power stage, the Mugen
run the amplifier with an inexpensive result of careful component selection amplifier offers the best of both worlds
loudspeaker (such as a PC speaker) and dimensioning. The damping factor at an attractive price.
and a bit of music. is also suitable for practical use. This (070069-1)
chassis
central
ground
-LS
signal input
R44 = 4Ω7
resistor to prevent
earth loop
070069 - 14
Figure 8. The ground connections must be arranged this way in the enclosure. They are all tied to a single ground point connected to the enclosure.
10/2007 - elektor 29
PROJECTS PSU FILTER
Interference-free Sound
Mains filter for clean audio power
Joost Waegebaert
When listening to your favourite CD, any audiophile will at some occasion realise that the CD concerned
used to sound better during the previous listening session. Or perhaps just the other way around. The
cause for this difference in quality cannot be directly traced to one of the carefully assembled chain
of audio components and saddles the listener with a feeling of uneasiness. To exclude all technical
causes we need a decent mains filter, which at the least ensures that nothing can be blamed on the very
beginning of the audio chain, the power supply.
The nice thing of audio as a hobby is Cloaked in noise... These, by their very nature, gener-
the freedom to take as long as you like State of mind can play a role here, but ate quite a bit of noise on their mains
to choose or build audio components is it also possible to find a technical connection. Examples are computers,
until the whole installation sounds just basis for these differences in listen- TVs, battery chargers, etcetera. The
‘perfect’. The achievement of this goal ing experience? An electrical cause assumption can be made that each of
cannot be established scientifically, of which is often forgotten, is the qual- these appliances conforms to the Eu-
course. It is a subjective matter that is ity of the energy required to power our ropean EMC requirements and there-
the cause of many discussions and just audio equipment, the energy from the fore sends only a limited amount of
as many opinions. This is, however, not mains. noise back to the mains. For a number
the subject of this article. Instead, we of appliances it is, of course, the sum
concentrate on the phenomenon cited The number of devices that are con- of all the individual interference levels
in the introduction, namely: why does nected to the mains increases every that determines the total noise level
identical source material sound better day. Many modern appliances use en- of the mains, and this can add up to
on one day than another? ergy-saving switching power supplies. quite a bit.
L1 C3
U2 2mH R1
C1 2n2
1007
15n C2
L2
2mH 2n2
L5
R2
L3 C6
1007
100nH 2mH
C4 2n2
U1
R3 15n C5
L4
17
2mH 2n2
070135 - 11
Figure 1. The equivalent circuit of two appliances, Figure 2. The current that will flow through C2 as a result of interference source U2.
each with a mains filter, that are connected in parallel .
30 elektor - 10/2007
The author connected two transformers in parallel for the prototype, so that they are smaller and the whole filter could fit in a lower enclosure.
Another source of noise is the use of X and Class Y capacitors (C1, C2, C3). In a traditional mains filter such as this
power-line communication equipment This is a method that works well and one, the coil is connected in series with
(alarm systems, remote controls, en- proves its use every day, but is less the load. This seems to be no problem
ergy meters and such). These use the suited for audio applications. at first glance since the impedance of
mains network, in addition to being In audio equipment, the X capacitor the coil at 50 Hz is negligible. This is
their power source, also as communi- does its job as expected and removes obviously true for loads that draw a
cation network. The frequencies that the differential mode interference. constant power, but not for a power
are permitted for this use cover a range The problem is with the Y capacitors. amplifier which is reproducing a dy-
from 3 to 148.5 kHz. Normally speaking, these conduct namic piece of music. The power re-
common-mode interference nicely to quirements of an amplifier naturally
Furthermore, there are the traditional earth. However, the current through follow the dynamics of the reproduced
polluters: incandescent lamp dimmers, the earth conductor has no limitations music. And that includes frequencies
electric motors, fluorescent lights, etc. with respect to direction of flow. There up to 20 kHz. The filter certainly has an
All in all, the power source that is is therefore no reason to suppose that effect at these frequencies: it limits the
available to power our expensive au- signals which are already present on rate at which the current for the pow-
dio equipment can be significantly pol- the earth conductor could not pen- er supply in the amplifier can increase,
luted. To power the equipment from etrate the audio equipment via the with audible differences as a possible
such a source is disrespectful of the Y-capacitor! consequence.
audio engineers who moved heaven
and earth to realise a dynamic range This situation is drawn in Figure 1
of 100 dB for audio signals (that is a with a PC as the other device. The PC
A better solution
fraction of 1/105 of a typical 2 VRMS-au- has the same mains filter as the audio The filter shown in Figure 3 is purely
dio signal, that is, 20 MV). It is there- component (L3, L4, C4 to C6). U1 rep- connected in parallel with the mains.
fore not inconceivable that a polluted resents the interference which is gen- It is really a ‘frequency selective short-
mains can penetrate into the signal erated by the switching power supply circuit’ for disturbance signals that we
path of an audio component and pre- in the PC. Figure 2 shows the result of want to eliminate. Translated into im-
vent the device from performing at its the simulation. This clearly shows that pedance, this filter therefore needs to
optimal level. the interference source U1 generates have as low as possible a value for the
a current through capacitor C2 and as frequencies of the disturbance.
a result also generates interference The series network L1/C1 has an im-
A solution across R1 (which represents the load pedance of nearly zero at the reso-
An obvious approach to filtering the of the connected audio equipment). nance frequency (1/2PL1C1). R1 has
undesired interference from the mains So the interference from the PC enters been added so suppress the tenden-
is to use a traditional, ready-made the audio equipment via the very filter cy of the LC network to oscillate. This
mains filter (see Figure 1). This con- that was supposed to clean the mains reduces the impedance at higher fre-
sists of a coil (L1, L2) and a few Class voltage! quencies. With the addition of C2,
10/2007 - elektor 31
PROJECTS PSU FILTER
1007
frequency range of the audio signal, U1 3M 12M5 a winding with a centre tap on the
so that the interference suppression secondary side of the transformer.
is the most effective. This resonant R4 L1 This centre Tap is connected to the
frequency has to be sufficiently far earth conductor. The result of this
1007
away from 50 Hz, of course. is that the common-mode voltages
Since the impedance peak of an LC 3mH5 at the ends of the transformer wind-
filter is quite narrow, it would be ing are in anti-phase and therefore
070135 - 13
ideal to use multiple LC networks cancel each other out (Figure 4). U2
with different resonant frequencies, is the common-mode interference
spaced at one octave apart, for ex- source. Owing to the parasitic ca-
Figure 3. A parallel filter works better in an audio system.
ample. In this way a wide frequency pacitance in the transformer (C1 and
range with low impedance can be C2), this signal is also at the outputs
realised. This will however quick- and therefore also across load R2.
ly become expensive, heavy and Because of the way the transformer
C1
quite large. This design limits itself is made, these signals are displaced
to one single LC combination. This 20p in phase by 180˚. They therefore dis-
would appear to have only limited appear for the attached load.
effect on the transfer characteris- L3 The ideal transformer for this type
tic, but is very useful for restricting U1 R1 5mH5 R2 of filter needs to have a very small
L1 C3
the consequences of mains voltage capacitance between the wind-
1007
1M
drop-outs. 22mH
L2
ings in combination with a limited
100n
bandwidth (around 50 Hz) – a filter
5mH5
in its own right and unaffordable.
Further improvements U2 You can come a long way however
C2
The filter up to this point only using standard transformers if you
works for differential-mode interfer- 20p connect two back-to-back.
070135 - 15
ence. Common-mode interference Figure 5 shows the complete sche-
is not affected and as has just been matic. This schematic immediately
shown, Y capacitors are very unde- offers another possibility for addi-
sirable. Why don’t we use an iso- Figure 4. We can use this circuit to suppress common-mode interference. tional filtering, using C3. In Addi-
lating transformer? 230 V in, 230 V tion, varistor R2 gives protection
out, the mains is nicely separated for incoming spikes. It is not a good
and you’re done... Unfortunately this idea to connect varistors from phase
does not work. The common-mode in- formers with multiple screens between and neutral to earth, because these
terference happily appears on the sec- the windings that can suppress inter- parts have a parasitic capacitance of
ondary side of the transformer because ference by impressive amounts. In or- about 350 pF and therefore would look
of the parasitic capacitance between der to realise this, the screen has to like a type of Y capacitor.
the primary and secondary windings. be connected to earth however. This If after all the foregoing the tempta-
There are good (and expensive) trans- again results in undesirable capacitive tion exists not to connect the ‘pollut-
S1 F1
5A T TR1 TR2
C1
1 8 8 1
K1 K2
3M
P1 S2 S2 P1
R2
C2 2 7 C3 7 2 C4
230V
230V
S14K250
12M5 3 6 22M 6 3 100n
L1
R1 P2 S1 S1 P2
227
4 5 5 4
F2 3MH5
070135 - 17
32 elektor - 10/2007
+10 For the technical justification we
ed’ earth connection to the audio +5
obviously made a few performance
equipment then we have to strongly +0
-5
measurements on the filter. The
advise against that. The earth con- -10
transfer function is drawn in Fig-
nection has to be present always, -15 ure 6. The graph shows that the
to ensure safety in the event of an -20
filter starts to filter at quite a low
-25
isolation fault! d
B
r -30
frequency. Above 5 kHz the curve
A
-35 drops rapidly. High noise frequen-
-40
cies on the mains voltage are fil-
Components -45
tered very effectively.
-50
300 VA to 500 VA with a secondary proposed here for yourself, you can
voltage from 36 V to 50 V can be Figure 7. An FFT of a square wave with a frequency of 1 kHz.
make up your own mind whether it
used. On the primary side two 115V The characteristic odd harmonics slowly reduce as the frequency increases. is worth the effort to filter the mains
windings have to be available. The voltage that the audio installation
prototype was built with toroidal requires. We are not going to say
transformers to limit the size and that there is a world of difference.
weight. This minimises the stray +10
Elektor A-A FFT SPECTRUM ANALYSIS
But a difference there certainly is
magnetic field at the same time. +5
+0 with this circuit.
-5
-10 (070135-I)
-15
-20
Results -25
-30
-35
Web Links
-40
came after the filter was removed 5k 10k 15k 20k 25k
Hz
30k 35k 40k 45k
070135 - 18
[3] www.epcos.com/inf/70/db/
from the system again. The sound
var_01/01590173.pdf
was clearly different. The higher fre- Figure 8. The same square wave, but measured after the filter. It is obvious
quencies in particular benefit con- that the higher harmonics reduce much quicker in amplitude. Here the 1-kHz [4] www.epcos.com/inf/20/25/ds/
siderably from this filter. signal is attenuated by 15 dB relative to Figure 7. b32320_22.pdf
10/2007 - elektor 33
Quasar Electronics Limited Postage & Packing Options (Up to 0.5Kg gross weight): UK Standard
PO Box 6935, Bishops Stortford 3-7 Day Delivery - £3.95; UK Mainland Next Day Delivery - £8.95;
Europe (EU) - £6.95; Rest of World - £9.95 (up to 0.5Kg)
CM23 4WP, United Kingdom
!Order online for reduced price UK Postage!
Tel: 0870 246 1826 :HDFFHSWDOOPDMRUFUHGLWGHELWFDUGV0DNHFKHTXHV32¶VSD\DEOH
Fax: 0870 460 1045 to Quasar Electronics. Prices include 17.5% VAT.
E-mail: sales@quasarelectronics.com Call now for our FREE CATALOGUE with details of over 300 kits,
Web: www.QuasarElectronics.com projects, modules and publications. Discounts for bulk quantities.
Credit Card
Sales
7KH(OHFWURQLF6SHFLDOLVWV6LQFH
7KH(OHFWURQLF6SHFLDOLVWV6LQFH
rated up to 6 Amps max. puts. 4 isolated digital We have a wide range of low cost PIC and
Provides speed and direc- inputs. Useful in a vari- $70(/3URJUDPPHUV&RPSOHWHUDQJHDQG
tion control. Operates in stand-alone or PC- ety of control and sens- documentation available from our web site.
controlled mode. Up to six 3179 driver boards ing applications. Controlled via serial port for Programmer Accessories:
can be connected to a single parallel port. programming (using our new Windows inter- 40-pin Wide ZIF socket (ZIF40W) £14.95
Supply: 9Vdc. PCB: 80x50mm. face, terminal emulator or batch files). In- 18Vdc Power supply (PSU010) £18.95
Kit Order Code: 3179KT - £12.95 cludes plastic case 130x100x30mm. Power Leads: Parallel (LDC136) £395 / Serial
Assembled Order Code: AS3179 - £19.95 Supply: 12Vdc/500mA. (LDC441) £3.95 / USB (LDC644) £2.95
Kit Order Code: 3108KT - £54.95
Bi-Polar Stepper Motor Driver Assembled Order Code: AS3108 - £64.95
'ULYHDQ\ELSRODUVWHSSHU NEW! USB & Serial Port PIC Programmer
motor using externally sup- Computer Temperature Data Logger USB/Serial connection. Header
plied 5V levels for stepping 4-channel temperature log- cable for ICSP. Free Windows
and direction control. These ger for serial port. °C or °F. XP software. Wide range of
usually come from software Continuously logs up to 4 supported PICs - see website for
running on a computer. separate sensors located complete listing. ZIF Socket/USB
Supply: 8-30Vdc. PCB: 75x85mm. 200m+ from board. Wide lead not included. Supply: 16-18Vdc.
Kit Order Code: 3158KT - £17.95 range of free software applications for stor- Kit Order Code: 3149EKT - £39.95
Assembled Order Code: AS3158 - £27.95 ing/using data. PCB just 45x45mm. Powered Assembled Order Code: AS3149E - £49.95
E\3&,QFOXGHVRQH'6VHQVRU
Bi-Directional DC Motor Controller (v2) Kit Order Code: 3145KT - £17.95 NEW! USB 'All-Flash' PIC Programmer
Controls the speed of Assembled Order Code: AS3145 - £24.95 USB PIC programmer for all
PRVWFRPPRQ'& $GGLWLRQDO'66HQVRUV£3.95 each µ)ODVK¶GHYLFHV1RH[WHUQDO
motors (rated up to power supply making it truly
32Vdc, 10A) in both Rolling Code 4-Channel UHF Remote portable. Supplied with box and
the forward and re- State-of-the-Art. High security. Windows Software. ZIF Socket
verse direction. The 4 channels. Momentary or and USB lead not included.
UDQJHRIFRQWUROLVIURPIXOO\2))WRIXOO\21 latching relay output. Range Assembled Order Code: AS3128 - £44.95
in both directions. The direction and speed XSWRP8SWR7[¶VFDQ
are controlled using a single potentiometer. be learnt by one Rx (kit in- ³3,&$//´3,&3URJUDPPHU
Screw terminal block for connections. cludes one Tx but more avail- ³3,&$//´ZLOOSURJUDPYLUWX
Kit Order Code: 3166v2KT - £17.95 DEOHVHSDUDWHO\LQGLFDWRU/('¶V5[3&% ally all 8 to 40 pin VHULDO
Assembled Order Code: AS3166v2 - £27.95 77x85mm, 12Vdc/6mA (standby). 7ZRDQG PRGH$1'SDUDOOHOPRGH
7HQFKDQQHOYHUVLRQVDOVRDYDLODEOH (PIC16C5x family) pro-
DC Motor Speed Controller (100V/7.5A) Kit Order Code: 3180KT - £44.95 grammed PIC micro control-
Control the speed of Assembled Order Code: AS3180 - £54.95 lers. Free fully functional software. Blank chip
almost any common auto detect for super fast bulk programming.
'&PRWRUUDWHGXSWR DTMF Telephone Relay Switcher Parallel port connection. Supply: 16-18Vdc.
100V/7.5A. Pulse width Call your phone num- Assembled Order Code: AS3117 - £24.95
modulation output for EHUXVLQJD'70)
maximum motor torque phone from anywhere ATMEL 89xxxx Programmer
at all speeds. Supply: 5-15Vdc. Box supplied. in the world and re- Uses serial port and any
'LPHQVLRQVPP:[/[+ motely turn on/off any standard terminal comms
Kit Order Code: 3067KT - £13.95 of the 4 relays as de- program. Program/ Read/
Assembled Order Code: AS3067 - £21.95 sired. User settable Security Password, Anti- 9HULI\&RGH'DWD:ULWH
Tamper, Rings to Answer, Auto Hang-up and )XVH/RFN%LWV(UDVHDQG
/RFNRXW,QFOXGHVSODVWLFFDVH1RW%7DS %ODQN&KHFN/('¶VGLVSOD\WKHVWDWXV=,)
proved. 130x110x30mm. Power: 12Vdc. sockets not included. Supply: 16-18Vdc.
Most items are available in kit form (KT suffix)
Kit Order Code: 3140KT - £54.95 Kit Order Code: 3123KT - £24.95
or assembled and ready for use (AS prefix).
Assembled Order Code: AS3140 - £69.95 Assembled Order Code: AS3123 - £34.95
SecureOnline Ordering Facilities Ɣ Full Product Listing, Descriptions & Photos Ɣ Kit Documentation & Software Downloads
34 elektor - 10/2007
ÜÊ>ÞÊ«iViÃÊvÊÌiÃÌÊ
iµÕ«iÌÊV>ÊÞÕÊLÕÞÊvÀÊ˶
7Ì
Ê>Ê*-V«iÊ1- ÊÃÌÀÕiÌÊÞÕÊ}iÌÊÌ
iÊvi>ÌÕÀiÃÊvÊ>ÊÃVÃV«i]ÊëiVÌÀÕÊ
>>ÞÃiÀ]ÊV
>ÀÌÊÀiVÀ`iÀ]Ê}VÊ>>ÞÃiÀÊÜÌ
Ê1,/]Ê-*]ÊÓ
Ê>`Ê£ÜÀiÊÃiÀ>ÊLÕÃÊ
`iV`}®]Ê«>ÌÌiÀÊ}iiÀ>ÌÀÊ>`ÊõÕ>ÀiÜ>ÛiÉ*7Ê}iiÀ>ÌÀ°Ê/
>̽ÃÊiµÕÛ>iÌÊÌÊÃÝÊ
«iViÃÊvÊÌiÃÌÊiµÕ«iÌÊvÀÊËÊVÕ`}Ê1Ê`iÛiÀÞÊ>`Ê6/°
GfJZfg\`jXcfn$ZfjkLJ9$ GfJZfg\gifm`[\jk_\]fccfn`e^ )$Z_Xee\cZ_Xiki\Zfi[\in`k_ /$Z_Xee\c(b?qkf(D?q
YXj\[`ejkild\ekk_XkX[[j fg\iXk`fedf[\j1 '%'(?qkf)''b?qjXdgc`e^# gXkk\ie^\e\iXkfin`k_kXYlcXi
`emXclXYc\k\jk\hl`gd\ek dXo`dld#d`e`dldXe[ nXm\]fid]fidXkk`e^fi[`i\Zk
)$Z_Xee\cfjZ`ccfjZfg\n`k_ Xm\iX^\mfckX^\d\Xjli\d\ekj
]\Xkli\jkfpfli[\jbkfgfi k`d`e^Z_Xikgcfkk`e^fek_\
(''?qkf)''b?qjXdgc`e^# ]fi\XZ_Z_Xee\cXe[nXm\]fid
efk\YffbG:%9\`e^G:$YXj\[# jZi\\e%
$)'Mkf")'M`eglkiXe^\# i\Zfi[fm\ij\m\iXck\ejf]
Xccd\Xjli\d\ekjZXeY\
('$Y`k8;:i\jfclk`fe# _flij% JhlXi\$nXm\&GNDglcj\
gi`ek\[#Zfg`\[kfk_\Zc`gYfXi[
XYjfclk\#[`]]\i\ek`XcXe[ n`[k_df[lcXk`fe ^\e\iXkfi%
Xe[jXm\[Xjk\ok#Y`kdXgfi (-$Z_Xee\c/n_\egXkk\ie
\ok\ieXcki`^^\i`e^#X[aljkXYc\
m\Zkfi^iXg_`Zj]fijlYj\hl\ek ^\e\iXkfilj\[ cf^`ZXeXcpj\i :fdgXk`Yc\n`k_D`Zifjf]k
gi\$ki`^^\iXe[dXib\i
XeXcpj`jfikf`dgfik`ekffk_\i n`k_(b?qkf/D?qjXdgc`e^# N`e[fnjD<#)'''Xe[OG#
d\Xjli\d\ekj%
gif^iXdj%GfJZfg\`j`[\Xc]fi m\ijXk`c\ki`^^\i`e^n`k_ GfJZfg\`jjlggc`\[n`k_\Xjp$
lj\Yp\c\Zkife`Zj_fYYp`jkj# )$Z_Xee\cjg\ZkildXeXcpj\i X[aljkXYc\gi\$ki`^^\i#\ok\ieXc kf$lj\jf]knXi\Xe[XLJ9
jkl[\ekjXe[\e^`e\\ijXc`b\Xe[ n`k_bc`ii]XZkfid\Xjli\d\ek# ZcfZb`e^#gi\j\kglcj\d`jj# ZXYc\%FjZ`ccfjZfg\gifY\jXe[
`jgXik`ZlcXicpjl`k\[kfk_fj\ ?Xdd`e^#?Xee`e^#9cXZbdXe gi\j\kY`kj\hl\eZ\&\[^\# cf^`ZXeXcpj\ik\jkc\X[&Zc`gj\kj
[\m\cfg`e^n`k_d`ZifZfekifcc\ij Xe[9cXZbdXe$?Xii`j==K [\Zf[`e^f]L8IK#JG@#@):Xe[ Xi\XmX`cXYc\j\gXiXk\cp%
jlZ_XjG@:Xe[8MI% n`e[fn]leZk`fej% ($n`i\j\i`Xc`ek\i]XZ\j%
"À`iÀÊÜÊÊÀiiviÊänääÊÈ£ÓÊÓ£Îx
ÀÊiÊ>ÌÊÜÜÜ°«>ÌÀÝ°V <HL@GD<EK=FI<C<:KIFE@:J;<M<CFGD<EK#KI8@E@E><OG<I@D<EK8K@FE
GXckife`oC`d`k\[
Le`k*;fcg_`eCXe\#*,?`^_Jki\\k#Jflk_XdgkfeJF(+);=
K\c\g_fe\1'/+,))-0+,(=XZj`d`c\1'/+,))-0+,)
<dX`c1jXc\j7gXckife`o%ZfdN\Y1nnn%gXckife`o%Zfd
8ccdXafiZi\[`kXe[[\Y`kZXi[jXZZ\gk\[
PROJECTS GPS
ElekTrack
Tracking & tracing
with GPS
Chris Vossen
Position determination is all the rage. The manufacturer of the well-known TomTom
navigation system has become a publicly traded company, and the alarm systems of
expensive cars and other vehicles often comprise positioning systems so they can report
where the vehicle is located. However, such systems are rather expensive, so we decided to
take the DIY approach and develop our own version, dubbed ElekTrack.
Nowadays we want to know the cur- the vehicle location to a message cen- components, we decided to supply
rent position of everything. Where’s tre. Stolen vehicles are indicated by red this module fully assembled only.
that package I ordered? Is the book I spots on a map in the control room.
want already back in the library? Has
my nephew’s train arrived already? Passenger cars are not the only vehi-
Objective of the design
Technology has advanced so much in cles being fitted with tracking sys- What must a tracking aid be able to
recent years that there’s almost no sit- tems. Lorries and boats can also ben- do in its simplest form? Naturally, you
uation we can imagine that doesn’t al- efit from such systems. More and more want to be able to track the unit’s lo-
ready have a solution. And otherwise excavating machines are also being cation. We chose the most obvious so-
we provide a solution! fitted with security systems, because lution for the position determination
they are stolen by the truckload. With part: GPS. With this, the system can
a built-in track & trace module, these identify its position nearly everywhere
Big Brother pricy machines can be tracked down in the world. In addition, GPS is pres-
People are often a bit nervous about and recovered. ently very accurate, and as long as the
organisations that keep track of every- European Galileo system [1] is not yet
thing, but in some cases this is exactly Of course, not everybody has an exca- operational, it is the best ‘alternative’.
what we want. For example, consider vating machine or a Bentley in the ga- We decided on SMS for data transmis-
car security and alarm systems. Those rage, but it’s still possible to find other sion. Although data transmission is
of us who can afford the latest May- interesting uses for a GPS tracker. For not actually live with this approach,
bach or Mercedes SLR will doubtless example, on a scooter or motorcycle. it is possible almost everywhere and
encounter stringent security require- And if you’re a private detective, such at all times. The GPRS network would
ments when they take out insurance a system is bound to make your eyes have been another good option for data
for their vehicles. Quite often these light up. transmission. GPRS works with a di-
cars must be fitted with security sys- rect link via the Internet, so data can
tems that include vehicle tracking and We developed the ElekTrack to give
tracing capability in addition to stand- our readers an opportunity to experi-
ard anti-start and alarm functions. This ment with GPS tracking. Due to the
means that they have a built-in GPS- large number of SMD components Figure 1. As you can readily see from the schematic,
based positioning system that reports and the difficulty of soldering such everything revolves around the GSM modem.
36 elektor - 10/2007
be displayed live on a computer thus consists of two main modules: a GPS receiver design published in the
with Internet access. The loca- GPS module and a GSM module. May 2005 issue of Elektor Electronics.
tion could thus be queried The GSM module is a type Q2686 from
without any time delay, Wavecom. This module can be con-
and the data could be trolled using Wavecom OpenAT com-
Schematic diagram
stored ‘live’ in a da- mands, and it has a built-in microcon- A glance at the schematic diagram in
tabase. However, troller. The main advantage of this is Figure 1 quickly shows that everything
we gave the pref- shorter development time compared is built around the GSM modem. The
erence to the with using a separate modem, since GPS module is connected to UART2 of
simpler SMS it is not necessary to implement a mi- the modem via a logic-level converter
system. crocontroller or any peripheral logic. (IC3). The circuitry around T3, T4 and
The de- Everything is located in a single mod- T5 detects whether the antenna circuit
sign ule. This also keeps the overall design is shorted, open, or connected normal-
nicely compact. ly. The GPS module supplies power to
the active antenna via T1 and T2.
For the GPS module, we decided on the Two supply voltages are necessary for
Copernicus from Trimble. This is a suc- proper operation of the circuit: 4.5 V
cessor to the Lassen iQ, which already and 3.3 V. They are provided by IC5 and
showed what it could do in the USB IC6. IC5 (a LT3430) is a buck convert-
R2
10
470R
1
2
3
4
5
7
6
8
BAT_RTC
CHG_IN
CHG_IN
VBATT
VBATT
VBATT
VBATT
VCC_1V8
VCC_2V8
3V3
1V8
D3
K1 19
ON_OFF
10 17 80
15
FLASH LED PCM_OUT C3
4 79
VCC
VPP PCM_CLK
1 9 78 2 16
VCC SIM_VCC PCM_IN C4 C1+ FORCEOFF 100n
6 11 77 3
IO SIM_IO PCM_SYNC V+
9 12 100n 4
SIMPRES C1-
3 13 76 5
RST SIM_RST DTR1/GPIO41 C5 C2+
5 14 75 IC1
CLK SIM_CLK CTS1/GPIO39
2 D2 74 6 L1
GND DSR1/GPIO40 100n C2-
2
ESDA6V1SC6 15 73 11 13 BLM21B102
K5 BUZZ_OUT RXD1/GPIO37 T1IN T1OUT
Simcard Holder D1 16 72
1 BOOT RTS1/GPIO38 MAX3221E
1
3
4
6
R1 18 71 9 8
C1 3 C2 /RESET TXD1/GPIO36 R1OUT R1IN
20 70 L2
100k
GND
22 68
2
5
14
DALC208 SPI1-CLK ROW1/GPIO10
10k
K4 24 66
R25 D12 SPI1-I ROW2/GPIO11
25 65 100n
GND
4V3 470R SPI1-IO ROW3/GPIO12
64
1 ROW4/GPIO13
28 63
SPI2-CS COL4/GPIO8 GND
L3 26 62
SPI2-CLK COL3/GPIO7
29 61
100nH 3V3
5
4
3
2
SPI2-I COL2/GPIO6
27 60
SPI2-IO COL1/GPIO5
3V3 59
IC2 COL0/GPIO4 2V8
C7 C8 34 GND
MIC2N
R3 C9 35 58
100n 18p SPK1P GPIO24
36 57
1V8 MIC2P GPIO22
100k
12
100n 37
TXD_OUT
T1 GND SPK1N
VCC
56
RXD_IN
GND USB-DM K3
9 16 38 55
RESERVED XSTANDBY IC3 MIC1N GPIO23
10 19 C10 39 Wavecom Q2686 54
3
11 40 53
T2 XRESET MIC1P GPIO2
24 100n 6 41 52
BC848 TXD-B THREE-STATE SPK2N VPAD-USB
3 23 GND
RF-IN IC4 TXD-A
D4 5 8 5 31 51
LNA IVCC1 OVL1 TXD2 GPIO1
1N4148 1 4 30 50
R6 Copernicus GPS Receiver OVCC2 IVL2 RXD2 INT0
GND
8 21 32 49 DI0
10R 1k SHORT RXD-A CTS2 INT1
R5 7 20 33 48 DI1
R8
2
1k
GPIO21
GND
GND
GND
GND
GND
GND
GND
GND
10k
46
2x SDA
MMBT3906 T4 T5 42 45
1
2
4
13
14
15
27
28
T3 GPIO0 GPIO19
43 44
GPIO44 SCL
GND
GND
GND
GND
MMBT3904
2V8
101
102
103
104
10k
R10 R11
R9
4k7
4k7
4k7
4k7
D5 Vbat
GND K2
4V3
C11 1N4148 R21
Vbat
82k
6
D6 680n EXT_INPUT1
BOOST
L4 L5 R20
3 2 EXT_INPUT2
VIN SW 82k
BLM21P300S 5 47uH EXT_INPUT3
RS3K SW R16
4 10 TXD_OUT
VIN BIAS 4V3 3V3 82k
R12 IC6 RXD_IN
IC5 T6 T7 T8
15 MMBT3904 MMBT3904 MMBT3904
12k7
SHDN 1 5
VIN VOUT
LT3430 R22
11 12 LP2985 R24 R23
VC FB 3 4 GND C22 D9 C21 D10 C20 D11
R13 ON/OFF NC
10k
10k
10k
SYNC
GND
GND
GND
GND
GND
GND
3k3
14
GND
100n SM8S33A 4u7 22n 220p 30BQ060 100u 100n 1u 10u
250V 50V 10V 16V 10V
040161 - 11
GND GND
10/2007 - elektor 37
PROJECTS GPS
38 elektor - 10/2007
at+cfun=1 dem has successfully logged in to the The modem will respond with
network. If you wish, you can check +COPS: 0,2,20408
If everything goes well, the upper LED this by entering the command OK
(D12) will start blinking after a bit less
than a minute. This means that the mo- at+cops? (here ‘20408’ is the operator number,
10/2007 - elektor 39
PROJECTS GPS
GPS status
The GPS module is connected to the
serial port of the modem. Two com-
mands for requesting data from the
GPS module are implemented in the
first version of the firmware. The first
command is
at+gpshealth?
40 elektor - 10/2007
Practical problems
Anyone who writes software knows that little bugs always
find a way to creep into the code. When were first devel-
oping the software, we had problems with sending SMS
messages. It seemed like the SMS service of the modem
somehow didn’t want to work. After spending several
hours looking for the source of the problem and reading
through documentation, we came up with the simple but
brilliant idea of trying a different SIM card. That meant
a quick trip to the shop to pick up a new SIM card. And
just imagine our surprise when we discovered that there
were no problems at all with the new card!
Of course, we found it rather remarkable that everything
worked OK with the new SIM card, so we contacted the
supplier. It turned out that there was indeed a bug in the
modem firmware. Logging in to the SMS service evident-
ly did not work properly with some types of SIM cards.
This problem has been corrected in the latest version of
the firmware.
Another problem that is probably familiar to most soft-
ware developers is the difference between little-endian
and big-endian memory organisation. The GPS module
outputs latitude and longitude coordinates as doubles in
radians. The GPS module operates in little-endian mode,
while the GSM module operates in big-endian mode.
When you import the data (as ASCII values), the order
of the bytes must therefore be reversed. If you convert
little-endian radian data in a big-endian processor, the
results are naturally all over the map. We overlooked this
detail at first. Your first impulse is to think that you made
a mistake in the code that performs the conversion. In
retrospect it’s all pretty obvious, but in the midst of the
fray it’s a hard nut to crack.
Web Links
Of course, you want to be able to re- al. The reply is returned to the sender
quest the coordinates via SMS so you by default. If you want to have the re-
can request the position of the mod- ply be sent to a different number, you
[1] en.wikipedia.
ule remotely. To prevent unauthor- can use this parameter to specify the
org/wiki/Galileo_positioning_system
ised persons from receiving a reply desired number.
from the module if they send a text [2] www.gpscoordinates.eu
message to it, the module must have After a few seconds, the ElekTrack will [3] http://boulter.com/gps
a password. Send the following mes- send a text message via SMS with the
sage to the module via SMS to assign longitude, latitude and altitude data,
it a password: which can be used to determine the lo-
cation of the ElekTrack unit. For exam-
info:<password>:<phonenum> ple, you can do this online at [2] (Fig-
or ure 3) or [3].
INFO:<password>:<phonenum>
The ElekTrack is supplied as fully as-
Note: ‘info’ must be written either sembled unit, and you can order it via
entirely in upper case or entirely in our webshop at www.elektor.com.
lower case. The password you con- The latest version of the software is
figured using the at+password com- also available on our website. And of
mand must be entered here in place of course, we always appreciate hearing
<password>. from our readers about interesting ide-
as and applications.
The <phonenum> parameter is option- (040161-1)
10/2007 - elektor 41
PROJECTS RECYCLING
Flash of Inspiration
‘Cheap as chips’
phone flash makes
versatile lights source
Michael Gaus and Bernhard Kaiser
Barely believable: inside a low-cost flash gun the authors discovered hidden treasure
— a Freescale 8-bit controller equipped with 4 kB of Flash memory suitable for in-circuit
programming. Add a homebrew programming adapter and a couple of free programs off the
Internet and you’ve got a multifunction LED lamp!
The boom in camera phones means gun requires some logic and needs to ty. And doesn’t this just beg you to cre-
you can now pick up tiny snap-on flash tell the mobile phone what it’s doing, ate your own mini programs? That way
guns for a couple of pounds if you know there’s normally a small microcontrol- you can get rid of the existing exter-
where to look. And if you look inside ler among the components. If you’re nal control logic, which in turn leaves
them you’ll find some extremely bright thinking this controller is going to be empty space in the casing for your own
LEDs and some sophisticated electron- some anodyne mask-programmed no- purposes. A whole raft of features can
ics that make these bargain units ideal name product, prepare for a pleasant then be realised quite simply: constant
for conversion into pocket torches, sig- surprise, at least with the MPF-10 KRY illumination, dimming, flashing on and
nalling lamps and more. Some descrip- from Sony Ericsson. Inside this little off or a stroboscope effect. The sample
tions of the control logic found on the beauty we find an industry-standard software our authors have written pro-
Internet [1] were the authors’ inspira- 8-bit controller by Freescale, equipped vides all these functions, enabling this
tion for this project. with 4 kB of Flash memory with the bo- LED lamp project to be used as a mul-
That’s not all. Since even a simple flash nus of in-circuit programming capabili- tifunctional torch, for low energy light-
MC68HC908QT4
VDD 1 8 VSS
PTA5/OSC1/AD3/KBI5 2 7 PTA0/AD0/TCH0/KBI0
PTA4/OSC2/AD2/KBI4 3 6 PTA1/AD1/TCH1/KBI1
PTA3/RST/KBI3 4 5 PTA2/IRQ/KBI2/TCLK
PDIP/SOIC 070479 - 13
Figure 1. The phone flash employed can be bought for a couple Figure 2. Pin assignments for the miniature 8-bit Controller. Figure 3. The step-up transformer can be seen among the
of pounds on the Internet. passive SMD components.
42 elektor - 10/2007
ing outdoors, a USB light for laptops, a
programmable stroboscope or even a VCC
R2
signalling lamp for joggers or cyclists.
10k
Even more applications are possible if IC1 1
J1
you replace the white LEDs with col- 1 7
PTA0
oured ones. 2 6
PTA1
3 5
programming adapter
PTA2/IRQ
4 4
PTA3/RST
Hardware 5 3
PTA4
6 2
PTA5/OSC1
The phone flash used is a standard 7
C4 C3 C2 C1
product of Sony Ericsson and goes by 8
8
9 MC68HC908QT4
the name of MPF-10 KRY (Figure 1). It’s
10
available new from many online stores or 11
VCC
far cheaper second-hand from Amazon IC2
and on eBay (just enter the search string
‘MPF-10’). Do a bit of searching and you VCC OUT
D1
can find examples for under £ 2. step-up
The microcontroller mentioned has ENABLE D2
the designation MC68HC908QT4 and converter
D3
is equipped with 4 kB Flash memory
plus 128 bytes of RAM as well as an D4
R1
internal 3.2-MHz oscillator (Figure 2 TA1
10k
D1...D6 =
gives the pinout details). LED white
D5
D6
With the phone flash you also get six
white ultra-bright LEDs, a pushbutton
switch and a step-up transformer, which 070479 - 11
you can make out in Figure 3 among the
passive SMD components. That’s about
it, as the remarkably simple circuit dia-
Figure 4. The circuit of the phone flash is extremely simple — the functionality is all in the ICs.
gram seen in Figure 4 shows.
EN EN 8
100n
nected to Port pin PTA3, which reads a 7 10 13
16 1 1
C1+ C1 IC2.B
J2
age lies between 2.7 V and 5.5 V and 2
1 IC1 3 6 5 3
the authors’ tests indicate that the com- C1– 1M
6 14 11 25V EN 4
camera flasher
T1OUT T1IN
plete flash unit will operate successful- 2 7 10 4 5
T2OUT T2IN
ly anywhere in the range 3.0 V to 5.5 V. 7 13
R1IN R1OUT
12 6
Current draw with the LEDs illuminated 3 8
R2IN R2OUT
9 IC2.A 7
8 C5 4 8
is a moderate 180 mA (at 3.6 V). C2+ C2 2 3
4 9
The built-in step-up transformer, which 9 1M 15
MAX232
5
EN
10
25V C2– 1M
supplies the series-connected LEDs 5 V- 25V 1 11
with a constant current of around C4
6
10/2007 - elektor 43
PROJECTS RECYCLING
Figure 6. Programming is carried out via this connector on the Figure 7. You can also make the matching connector yourself Figure 9. When the ‘Power Cycle Dialog’ window appears the
phone flash. The matching connector illustrated can be bought using a PCB designed for SMD components. supply voltage must be switched off and on again briefly.
online.
44 elektor - 10/2007
from the Elektor Electronics website and Hex file) that you can download
[5]):
sdcc -mhc08 --out-fmt-s19 --
gratis from the Elektor website [5]. The
program MULTILED.C operates in two Opening up
code-loc 0xEE00 --stack-loc
0xFF MULTILED.C
different modes.
The ‘constant/dimmed light’ mode al- the case
pause lows you to operate the LEDs at maxi- During programming (using a DIY adapt-
mum brightness with power enabled er or even a fly-lead) it is important to
0xEE00 is the start address of the in- without needing to press the built-in secure the power supply, by mechanical
ternal Flash memory bank. The stack switch. Pressing the button puts the means, from disconnection. This means
begins at Address 0xFF in the internal dimmer into operation, with the step- opening up the case and soldering the
RAM und runs downwards. up transformer cycled on and off by wires to the microcontroller. This is a con-
the Enable input. Keeping the button venient opportunity to replace the white
pressed further dims the brightness
Programming by reducing the On/Off phase. Once
LEDs with coloured ones if you wish.
The compiler produces several files the minimum brightness level pro- There are two steps to this disassembly
from the source code, including an .S19 grammed has been reached the lamp operation.
file. This is used for programming the regains maximum brightness. The clear window and reflector assembly
microcontroller. You can enter ‘flash/strobe’ mode by clip onto the remainder of the case. Press-
You will need to install the tool applying power and simultaneously
ing a knife or screwdriver blade into the
‘PROG08SZ Programmer’ from PEMI- pressing down the flash button. Re-
slot releases the window/reflector assem-
CRO [6]. This freeware program re- peated operation of this button switch-
bly and allows you to separate the phone
quires no-cost registration before es the frequency between 60 different
flash into two parts.
you can download it so go first to the values.
Caution
Please take great care when using this device, as the ultra-bright
LEDs can all too easily damage your sight. Never look at the light
source at close quarters or for any extended period of time.
screenshot (Figure 8). When you have [1] Phone flash info, additional photos
connected up the phone flash to the and the inspiration for this project:
http://avr.auctionant.de/mpf-10_handyblitz
power supply and the programming
adapter you have to activate the button [2] Data sheet for the microcontroller:
‘Contact target with these settings’. www.freescale.com/files/microcontrollers/
doc/data_sheet/MC68HC908QY4.pdf
A new window opens, in which you
need to select the microcontroller type [3] Connector for flash programming
the phone flash:
(‘908_qt4.08P’).
http://stores.ebay.de/MOBIL-PLANET-GMBH
(keyword: ‘Anschlußleiste t68’)
When the window ‘Power Cycle Dialog’ Or try a Google UK or eBay UK search to find The power leads are soldered direct onto
opens (see Figure 9), the power must a more local supplier (let us know if you do!). the supply pins of the microcontroller.
be switched off and on briefly. The ac-
[4a] C Compiler SDCC 2.6.0 (Freeware): Closing the case afterwards assures a
tual programming comes next. First http://sourceforge.net/project/
we select the correct programming file good strain relief
showfiles.php?group_id=599
(in this example ‘MULTILED.S19’) us-
[4b] Freescale SpYder project in Elektor
ing the program function ‘SS’ (see Fig- Electronics March and April 2007:
ure 10). The module is erased with the www.elektor.com
command ‘EM’ and programmed with [5] MULTILED.C, free download from the
‘PM’. Using ‘VM’ (verify module) you Elektor website.
can check whether the whole opera- Follow:
tion is functioning error-free. Magazine2007[Month][article title]
[6] Programming software (registration
required):
Sample program https://www.pemicro.com/login.cfm?from_
The authors have written a small but url=http://www.pemicro.com/downloads/
practical sample program (source code download_file.cfm?download_id=83
10/2007 - elektor 45
PROJECTS MICROCONTROLLERS
A new microcontroller, and yet another new programmer? Anyone involved with microcontrollers today
will have a drawerful of printed circuit boards and adaptors for programming various devices. Enter
USBprog, which can replace all those with a single unit. As a bonus, it can even be used as a general-
purpose USB I/O port and RS-232 adaptor.
46 elektor - 10/2007
grammer
Win
do
ws & Linu
x ARM programmer
erface
USB-I/O interface
Table 1. Firmware available from the project website (status: August 2007). The range available is continuously being extended.
N° Name Description Status
1 AVRISP mkII clone Clone of the original AVRISP mkII stable
2 OpenOCD adapter Adapter for ARM7 and ARM9 beta
3 AT89 programmer Developed for the Elektor Electronics AT89S8252 board beta
4 SimplePort Ten I/O signals that can be controlled using C, Python or Java stable
5 JTAG adapter Universal USB-to-JTAG adapter with C library beta
6 USB-to-serial converter USB-to-RS-232 converter (no extra driver needed) pre-alpha
7 JTAGICE mkII clone Clone of original JTAGICE mkII in development (basic functions)
structure and source code framework
8 XSVF-USB player Universal XSVF player
in place
9 Blink demo Simple LED flashing demonstration stable
structure and source code framework
10 PIC programmer Based on ‘Odyssey’ for Linux and Windows
in place
structure and source code framework
11 USB BDM interface Interface and debugging for 68-series processors
in place
structure and source code framework
12 MSP430 JTAG Interface for this low-power microcontroller from Texas Instruments
in place
ler in one rapid operation, and then it device into a general-purpose tool. By suitable bootloader and firmware to
can carry out the rest of the program- using firmware with different func- provide all the anticipated functions
ming task autonomously, simulating tions in USBprog’s microcontroller, we we would just have a useless piece of
the programming interface and trans- can turn the unit into an AVR program- electronics. It is hardly reasonable to
ferring data to the target system (see mer, or an ARM7/ARM9 programmer, tell users to write their own firmware,
Figure 1). or a USB digital I/O port. And, since and so, in addition to the required USB
In fact, we can go one better: if our the microcontroller we use has a built- interface driver for IC2 and bootloader
microcontroller is programmed with a in UART, we also get a free USB-to-se- for IC1, the author has made a range
generic bootloader, then it is possible rial converter! of additional programs available on his
to download into its memory whatev- own project website [1]; the firmware
er software is required for the partic- is also available for download from
ular task at hand from the PC, using
Open source www.elektor.com.
the USB interface rather than using its The most elegant hardware design in
own programming interface. Of course, the world is nothing without its ac- Table 1 shows at a glance what
this facility allows for straightforward companying software, and this is es- firmware is available and currently in
firmware updates, but it also turns the pecially true of USBprog. Without a development. An interesting item al-
10/2007 - elektor 47
PROJECTS MICROCONTROLLERS
C4 R1 C3 C11
C3 C7 C6 C9 C10 C8
10k
100n 1u 100n 1u 100n 100n 100n 100n
GND
GND GND GND
17
38
27
5
12
JP3
VCC
VCC
VCC
AVCC
VCC
10k
10k
D7 USBN9604SLB DRQ PD7 (OC2) PC7 (TOSC2)
1 18
CLKOUT
2 10 15 8 4
D- MODE0 VUSB XTAL1 RESET
3 9 14 D1 7 29
D+ MODE1 XTAL2 AREF
4 8 7
V3.3 AGND ATmega32L-8MU
PB0 40 37
XOUT
GND
XIN
5
6
PB1 41 36
PB1 (T1) PA1 (ADC1)
PB2 42 35
11
16
17
13
274R
274R
2 1 R8 MOSI PB5 PB6 2 31
100R PB6 (MISO) PA6 (ADC6)
PB3 R13 4 3 R9 PB4 PB7 3 30
C5 C1 C2 100R 100R PB7 (SCK) PA7 (ADC7)
AGND
PB1 6 5 R10 RST PB0
100R R15
GND
GND
GND
100R JP1 JP4
PB2 R14 8 7 R11 SCK PB7 LED1 LED2
1u 15p 24MHz 15p 100R 100R
6
18
28
39
10 9 R12 MISO PB6
100R
POWER
GND GND RESET AUX red green
GND GND
PB0 GND
060224 - 11
Figure 2. The circuit diagram of USBprog is hardly more complicated than the block diagram.
lows USBprog to be turned into a clone unit to act as a USB-to-serial converter benefit of all users; there is already a
of the Atmel mkII in-system program- or simple USB interface with ten dig- small community of USBprog users and
mer. It can then be used directly with ital I/O lines. In the works are a JTAG- developers.
Atmel’s free AVR Studio development based programmer and firmware for
environment [2] and other software programming other microcontroller In the interests of making it easier
that supports the AVRISP mkII. An- families. to get started with this open source
other firmware option allows ARM7 project, the project site also contains
and ARM9 microcontrollers to the pro- In the true spirit of open source soft- software that can not only reflash the
grammed and debugged using the ware, the source code for the firmware ATmega32, but also (at the press of a
OpenOCD software development en- is freely available. You are warmly en- button) check the project site to see if
vironment [3]. Other options allow the couraged to add to the project for the any new firmware has become avail-
48 elektor - 10/2007
able, and, if so, download Construction and bootloader
it. The package is available
for Linux as well as Win- USBprog is built on a double-
dows, and an OS X version is sided printed circuit board
planned. and employs a number of sur-
face-mount components, and
so many readers might prefer
Hardware to buy the kit available from
Figure 2 shows the circuit the Elektor Shop where most
diagram of USBprog, which of the components have al-
is hardly more complicated ready been mounted on the
than the block diagram. The circuit board. Just the con-
whole circuit draws less than nectors and headers remain
100 mA and is comfortably to be soldered. More ambi-
powered directly from the PC tious constructors can make
via the USB connector. D2 pro- their own printed circuit board
tects the PC from excessive (Figure 3) using the layout
voltages originating in hard- available for download from
ware connected to the unit. http://www.elektor.com or
IC2 is a dedicated USB bridge Figure 3. Most of the components on the double-sided printed circuit board are surface-mount types. order the board from http://
COMPONENTS Capacitors
C1, C2 = 15pF, SMD 0603
C3, C5, C7 = 1μF, SMD 0603
Miscellaneous
Y1 = 24 MHz, quartz crystal, HC49/4 case
K1 = USB socket, Type B, PCB mount
LIST C4, C6, C8-C11 = 100nF, SMD 0603 K2 = 10-way DIL boxheader, angled, PCB
mount
Semiconductors JP1,JP4 = 2-way SIL pinheader
Resistors
IC1 = ATmega32L-AU, QFP 12x12 (Atmel) JP2 = 3-way SIL pinheader
R1, R2, R7 = 10k7, SMD 0603
IC2 = USBN9604SLB (National JP3 = 4-way SIL pinheader
R3 = 1M7, SMD 0603
Semiconductor) PCB, bare, ref. 060224-1, see www.elektor.
R4 = 1k75, SMD 0603
D1, D2 = MBRS130T3G, SMB DO214AA com
R5, R6 = 2747, SMD 0603
LED1 = LED, red, SMD 0603 PCB, SMD pre-fitted, all other parts sup-
R8...R15 = 1007, SMD 0603
LED2 = LED green, SMD 0603 plied, order code 060224-71, see SHOP
pages or www.elektor.com
which is compatible with ‘full speed’ supply on the USB connector or wheth- www.thePCBShop.com, and populate
USB 1.1. It transfers data using DMA, er the PC’s supply should be protected it by hand.
which is more than fast enough for our by diode D1. D1 and D2 are Schottky
purposes. Its clock is derived from a types as these have a lower forward When construction is complete (Fig-
24 MHz crystal: this frequency is dou- voltage drop than ordinary diodes. JP4 ure 5) we find ourselves in a chick-
bled internally and then a program- is available for any purpose: for exam- en-and-egg situation: before we can
mable derived frequency can be made ple, an external push button could be download the desired firmware over
available at the CLKOUT output. We connected to it. the USB interface, the bootloader,
use this to clock IC1, thereby avoiding which performs this programming
the need for a second crystal. function, needs to be pro-
Most firmware will configure grammed into IC1. As a sec-
the clock so that IC1 runs at ondary function, port B of IC1
its maximum frequency of can be used for programming,
16 MHz. IC1 and IC2 are con- and all the necessary connec-
nected by a number of control tions are brought out to K2. If
signals and an eight-bit bus. you do not already have an
The function of the pins of AVR programmer (and can-
parallel port K2 and of JP3 is not beg, borrow or steal one
determined by the firmware from a friend) it is possible to
in use (see Table 2). use a PC with a parallel port
and a simple programming
If JP1 is fitted the reset sig- circuit [4] that you can assem-
nal of IC1 can be driven ex- ble on a breadboard.
ternally via pin 5 of K2, which
is needed when program- The file ‘usbprog_base.hex’
ming the bootloader into IC1. can be transferred to the AT-
JP2 determines whether the mega32 using AVR Studio,
hardware connected to K2 is AVRDUDE or other AVR pro-
powered directly from the 5 V Figure 4. A screenshot of ‘usbprog-gui.exe’, running under Windows. gramming tool. The fuses
10/2007 - elektor 49
PROJECTS MICROCONTROLLERS
Web Links
[1] Project site:
www.embedded-projects.net/usbprog and
http://www.elektor.com
[2] AVR Studio:
www.atmel.com/avrstudio
[3] OpenOCD:
http://openocd.berlios.de/web
[4] Parallel port programmer:
www.ixbat.de/index.php?page_id=188
[5] AVRDUDE:
www.nongnu.org/avrdude
[6] WinAVR:
http://winavr.sourceforge.net
[7| Yagarto (ARM development
environment):
http://www.yagarto.de
[8] ATmega32 data sheet:
www.atmel.com/dyn/resources/
Figure 5. This prototype made in the Elektor Electronics laboratory is almost identical to the final version. prod_documents/doc2503.ppdf
50 elektor - 10/2007
Electronics Engineers - Join A Winning Team!
UK and Czech Republic
We are looking for Engineers for the United Kingdom & Czech Republic.
Due to the huge demand for our services we need to employ additional
engineers at our three UK workshops (West Midlands, South Wales and
Northern Ireland) to keep pace with the work we are receiving.
Also, due to future expansion throughout Europe we are looking for English
speaking engineers to train and work in the UK with eventual relocation to
our workshop in Brno, Czech Republic.
10/2007 - elektor 51
TECHNOLOGY USB/UART
USB/UART Interfaces
A survival guide
Antoine Authier
The first chips to interface between the USB bus and asynchronous serial busses (UARTs)
appeared in the early 2000s.
Now here we are with third, fourth, and even fifth generation circuits: faster, more reliable,
and more stable (especially their drivers), and offering improved features.
These ICs make it possible to con- the majority of operating systems (Win- bulk mode), in particular through the
nect any device that requires a full dows, Linux). In so doing, it increases user of a larger buffer memory — so
duplex asynchronous serial link the flexibility of the technology transi- long as the conventional RS-232 sig-
(whether RS-232 compatible or not) tion by making it easier to use older nalling can be abandoned. Certain ICs
to a USB host bus. equipment designed for serial ports make it possible to comfortably exceed
Their drivers usually offer two modes transparently on the USB bus. the 115,200 bps limit.
of use. The first makes it possible to The second mode concerns high-speed The three principal players in this mar-
simulate a traditional COM port under data transfer (i.e. direct block transfer, ketplace are the Scottish Future Tech-
VCC
Baud Rate
48MHz
Generator
3.3 Volt
VCCIO
3V3OUT LDO FIFO TX Buffer
Regulator 128 bytes
TXD
RXD
RTS#
CTS#
DTR#
USB UART Controller
Transceiver DSR#
USBDP with
with Serial Interface DCD#
Engine USB UART Programmable
Integrated Protocol Engine FIFO Controller Signal Inversion RI#
Series ( SIE )
USBDM and High Drive
Resistors
CBUS0
and 1.5K
Pull-up CBUS1
CBUS2
To USB
CBUS3
Transceiver
Cell Internal CBUS4
EEPROM
USB DPLL
3V3OUT
FIFO RX Buffer
256 bytes
OSCO
(optional) 48MHz
Internal Clock RESET
12MHz Multiplier / RESET#
24 MHz GENERATOR
OCSI Oscillator Divider 12 MHz
6 MHz To USB Transceiver Cell
(optional)
TEST
GND
52 elektor - 10/2007
nology Device International Ltd (in following modes in particular: UART 2.4.20 and it’s responsible for creating
case you’ve ever wondered what was interface, FIFO, bit bang, JTAG-com- the peripheral /dev/ttyUSBx when an
behind the abbreviation FTDI), Ameri- patible synchronous serial interface, FTDI IC is connected under Linux.
can Silicon Laboratories Inc. (‘Silabs’ I2C, and SPI bus. These last three in- Various other contributors have writ-
to their friends), and Taiwanese Pro- terfaces make this IC very popular for ten other implementations and supple-
lific Technology Inc. direct connections to a wider range of ments. Intra2net, for example, provides
chips. The JTAG compatibility makes a special library for access in bit bang
debugging and impeccable program- mode (http://www.intra2net.com/de/
FTDI
T h e t w o m o s t re c e n t p ro d u c t s
from FTDI are the FT232R and the
FT2232D.
The FT232R offers a USB/serial UART A user report
(Universal Asynchronous Receiver/ “The hardware flow control wasn’t working properly. Fortunately for us, the US technical
Transmitter) interface, and also works support corrected the problem very quickly.
in synchronous ‘bit bang’ mode; this On the other hand, no source code is provided with the Linux driver. So it took us quite a lot
mode, specific to the FTDI chips, al- of messing around and a bit of reverse engineering to adapt it.
lows them to control eight high-speed
In terms of the serial port synchronisation, the USB forces the transmission of frames per
input/outputs (I/O). The configuration
packet, which causes a slight delay – a few milliseconds, if my memory serves me correctly
EEPROM and USB bus connection re- – on both transmit and receive.
sistors have been integrated onto the
chip, along with the clock circuit, to But one thing’s for sure – this doesn’t stop you achieving transfer rates much higher than a
conventional serial port.”
simplify implementation and save
space. Frederic, R&D Inventel, Paris.
The internal clock (configurable to 6,
12, 24 or 48 MHz) is available on one
of the IC pins; it can be used addition-
ally to clock a microcontroller or exter- ming easier. produkte/opensource/ftdi/). Based
nal logic. The drivers for these circuits are sup- on the ‘libusb’ standard, this library
During production, each IC is given a plied by FTDI free and without fees, for works very well, at least insofar as we
unique identification number (FTDI- both Microsoft operating systems and have been able to test it.
Chip-ID). FTDI are very proud of this Linux (kernel 2.4.x only, which seems The Windows drivers are avail-
technical innovation, which makes it pretty antique at the time of writing). able from the website and are
possible, for example, to protect an ap- Bill Ryder is the initiator of the virtu- well-documented.
plication against copying. al COM for Linux (http://ftdi-usb-sio. FTDI seem to be the front-runners in
The FT2232D offers two independent- sourceforge.net) and is co-ordinating the ICs most used in home-construc-
ly-configurable USB–UART/FIFO (First long-term development. Bill’s driver tion electronics projects.
In-First Out) interfaces. It supports the is built into the kernel since version There’s a great deal of know-how out
10/2007 - elektor 53
TECHNOLOGY USB/UART
Virtual COM Port (W/L) Virtual COM Port (W/L) Virtual COM Port (W/L)
Software drivers
D2XX (W/L) D2XX (W/L) USBXpress (W)
there on the Web, which is to every- ence. It offers all the basic functions of put voltage adjustable (by means of an
one’s benefit. the USB/UART interface from the Sil- external supply). It also supports the
Although it’s true the supply situa- abs stable. Its 5 mm package houses RS-485 protocol and dynamic stand-by
tion was a bit tricky a few years back, a USB 2.0 full speed controller, a clock, operation via the USB bus.
the distribution network has been im- the impedance matching circuitry for Silabs also provide two types of driver.
proved and FTDI chips are now widely resistor-less connection to the USB COM port emulation is available un-
available at reasonable prices. bus, a 512-byte EEPROM, and an RS- der both Windows and Linux. In this
We’ll shortly be giving you an introduc- 232-compatible UART controller. Hence configuration, the UART interface sup-
tion to their latest innovation, the Vin- no external components are needed on ports all the functions of the RS-232
culum USB host controller. the USB bus side of things. protocol, as well as handshaking. The
The CP2102 and CP2103 are suc- CP2103 also recognizes the RS-485 pro-
cessive improvements on this, with tocol, and it controls four GPIOs (Gen-
Silicon Laboratories an increasing number of functions. eral Purpose Input/Output). A driver
Silicon Laboratories offers three ICs The internal EEPROM, extended to named ‘USBXpress’, available for Win-
in its USB/serial interface range: the 1,024 bytes, can be write-protected. dows only, accesses the chip directly.
CP2101, CP2102, and CP2103. The CP2103 has been expanded with It’s worth noting that the source code
The CP2101 is the base, and the refer- four independent I/O ports, their out- is unfortunately not supplied with the
54 elektor - 10/2007
Prolific Moschip
2.0 Full Speed 2.0 Full Speed 2.0 Full Speed 1,1 2.0 Full Speed 2.0 Full Speed
1024 1024 OTP + external OTP + external external I²C external I²C
640 640 256 / 128 - 512 512
576 576 256 / 328 - 512 512
5, 6, 7 and 8 5, 6, 7 and 8 5, 6, 7 and 8 - 5, 6, 7 and 8 5, 6, 7 and 8
1, 1.5 and 2 1, 1.5 and 2 1, 1.5 and 2 - - -
even, odd, none mark, even, odd, none mark, even, odd, none mark,
- - -
space space space
hardware or software
hardware and software hardware and software hardware and software hardware and software hardware and software
X-On X-Off
300 bps 1 Mbps 300 bps 1 Mbps 75 bps – 6 Mbps up to 1 Mbps 50 bps – 6 Mbps 50 bps – 6 Mbps
Linux driver. The PL2303X complies with the spec- nal clock, the bus resistors, an OTP
Craig Shelley has re-written this driver, ifications for the USB 2.0 full-speed memory for customization, and 12 in/
which is available with the source files bus. This IC offers an internal 12 MHz out ports.
of the current kernel. It is still at the clock and two generic in/out ports. The As a bonus, it is compatible with sev-
advanced development stage. UART recognizes the RS-232 protocol. eral Japanese mobile phone interfaces
However, the Silabs website does offer An OTP memory allows you to config- iMode, CDMA-1, etc.
a rich and detailed knowledge base. ure the parameters of the serial link You are recommended to prepare the
The high-quality application circuits and your manufacturer data, VendorID ground by obtaining the drivers for
are provided complete with the source and ProductID. A serial number can Windows and pre-installing them.
code for their firmware. also be written into this memory. Without this, the automatic installa-
This information can be modified in ex- tion won’t work.
ternal EEPROM when this is used. The data sheets for the Prolific compo-
Prolific The PL2313 seems to be based on nents, the source codes, and the appli-
Prolific offers us two recent ICs: the an older core – it complies with the cation notes are available under [sup-
PL2303X-Edition and the PL2313, pro- USB 1.1 standard. It offers two USB/ port > download center] on their web-
viding one or two USB serial interfaces UART interfaces complying with the site. They also provide there the drivers
respectively. RS-232 protocol. It contains an inter- for Windows, virtual COM, and direct
10/2007 - elektor 55
TECHNOLOGY USB/UART
access, as well as some examples of Linux. We haven’t come across this type driver and the D2XX direct access to-
source code describing direct access of product before in Europe. gether won’t work, you will be asked
under Linux. The COM port driver un- K-micro, an American manufacturer, to uninstall the current driver.
der Linux is developed independently also offers this type of product, but – If your IC offers two interfaces, you
by Greg Kroah-Hartman; the code is we’re not yet convincing, so we’ll will have to install the same driver
built into the kernel. content ourselves with just mention- twice. Each interface in effect has its
ing them – you can always read more own group of USB endpoints, managed
about them on their website. separately by the host device.
Others So at the end of this brief introduction, (070478-I)
The last manufacturer we’ll tackle here it seems as if each manufacturer of-
is Indian and presents a very extensive fers a complete range of products that
range of products.
The two recent USB/serial interfaces
are to a greater or lesser extent iden-
tical. The prices, the support offered, Web Links
from Moschip Semiconductor Technol- and the information available from the www.ftdichip.com/
ogy Ltd are the MCS7820 and MCS7840. manufacturers, along with the summa-
www.silabs.com/
They provide two and four interfaces re- ry table we’ve prepared for you, ought
spectively, complying with the USB 2.0 to help you choose. www.prolific.com.tw/
standard and the RS-232, RS-422, and RS- www.k-micro.us/
485 protocols. These components need
an I2C-compatible EEPROM and can be
Remarks and advice www.compuapps.com/
powered directly from the USB bus. Driv- – (tested for FTDI only) www.moschip.com/
ers are available for both Windows and Warning! installing the virtual COM www.usb.org/
56 elektor - 10/2007
.!+
'
)(
# (('*-*
-
()
(
,*)/
(* +%!)$" (
+
,
-
!
%&!#""( &# &
"#! +
)( $$
$ &!
%
#
&
^^^LSLR[VYLSLJ[YVUPJZJV\RZ\IZ
;LS
PROJECTS HOME AUTOMATION
Home Automation
Using a broadband router
to control home automation devices
Arthur Vogels
A wireless router can be used for a variety of unusual purposes, such as controlling home automation
devices. This article describes a relatively simple conversion of an Asus router for use as a home
automation control unit.
As already described in an article in their designers never had in mind. That article, we show you how to modify a
the February 2006 issue on modifying article described how to add a USB standard wireless router for use as the
routers, standard broadband routers port to an inexpensive Sweex router central control unit of a home automa-
can be used for many purposes that and convert it into a web server. In this tion system.
Figure 1. The PCB inside the case has an expansion connector for two serial ports.
58 elektor - 10/2007
Controller
The home automation system in ques- This opens the door to interesting pos- network settings and the like. Natural-
tion is a DIY system that was original- sibilities, such as this home automa- ly, you can’t do much with the router
ly designed to work with a PC as the tion project. in this condition. It’s thus necessary to
central control unit. If you use a differ- modify the router so it acts like a con-
ent home automation system, you will It is also important to select a router sole and you can use a prompt (like a
probably have make some adjustments that supports connection of USB or DOS prompt, but for Linux) to enter and
to the project described here, but the RS232 devices. This is possible with execute commands. An obvious way
basic idea is the same. most routers. In some cases you will to do this is to use a telnet program,
The advantage of using a router is that have to open the case for a bit of solder but the standard firmware does not
it consumes much less energy that a work, but this shouldn’t pose a prob- support telnet access. In order to add
PC. You probably have a wireless rout- lem for the average Elektor reader. this capability, you can download the
er somewhere in your house for your firmware source code from the Asus
broadband Internet connection, and it Finally, the router must have enough website. Then you can add a telnet
can assume an additional function. memory and (preferably) a high-per- module to the source code and recom-
In order to implement the system, you formance processor. After all, who pile it using a compiler that can also be
have to select a suitable router that can knows what else you’ll want do with it downloaded from the Asus website.
run user-generated software, fit it with after you’ve see what’s possible? The Fortunately for those of us who are not
a USB or RS232 port, write the home potential applications are nearly end- Linux wizards, there’s an easier way
automation software, and then connect less – a web server, an FTP server, an to do this. A modified version of the
and configure everything. All of these MP3 server – you name it. firmware is available in the form of
steps are described in this article. The following website provides an ‘Oleg’s Firmware’, which can be down-
overview of routers and their features: loaded from http://oleg.wl500g.info/
#latest. That saves you the trouble of
Router selection http://wiki.openwrt. making the changes yourself. Be sure
There are several things you have to org/TableOfHardware to download the firmware version for
pay attention to when selecting a suit- the WL500g Premium. There are vari-
able router. In this case, we chose an Asus WL500g ous versions of Oleg’s Firmware for dif-
First, it is advisable to choose a router Premium router. It costs around £ 65 ferent Asus models, and they are not
that uses a standard operating system. (` 80), which means it’s not the cheap- necessarily interchangeable.
A router is actually a computer without est model, but it has a 266-MHz proc-
a keyboard, mouse or monitor. But just essor, 32 megabytes of working mem- The next step is to flash the new
like a PC, it has an operating system. If ory, and two USB 2.0 ports on the rear firmware. We recommend that you
you want to run your own software on panel. There is also a large community test the router for correct operation
a router, it’s handy to use one with an of hobbyists who experiment with this in its original condition before doing
open operating system. Some routers router (see http://www.wl500g.info), this. As usual, the guarantee is void if
use operating systems written by the and you can consult them for advice if you make any modifications, so it’s a
manufacturer specifically for the router. you get stuck. good idea to make sure that you won’t
As these operating systems are usu- need it. Flashing is a simple process.
ally not made public, there’s not much First, open the router’s web interface
you can do with them. Fortunately,
Modifying the router in a browser window. At the right-
more and more routers nowadays use As delivered, the router does not sup- hand end of the navigation bar, select
a variant of Linux, and this means that port user access except via its web in- ‘Firmware Upgrade’, and then select
the source code is publicly available. terface, which you can use to configure the file with Oleg’s Firmware. Flash-
10/2007 - elektor 59
PROJECTS HOME AUTOMATION
ing takes a minute. If anything goes open the case. As you can see from Be sure to use the right IC here. The
wrong, there is a recovery tool that re- the photo, there is a connector on the ‘standard’ MAX232 needs a 5-V supply
stores the router to its original condi- board, or alternatively several holes voltage, but the router only provides
tion. This tool is on the installation CD for a connector. Two RS232 ports can 3.3 V. The circuit can be built on a small
for the router. be attached to this connector. The pin piece of prototyping board and fitted
layout is printed nicely next to the con- in the router case. Use solder pins or
After flashing the firmware, you can nector. There are two ports (Port 0 and a plug to connect the converter to the
use telnet to establish a link to the Port 1), each with a Tx line, an Rx line, router. You can use a 3.5-mm jack sock-
router. A program such as PuTTY can a 3.3-V line, and a GND line. We recom- et to route the serial port to the outside
be used for this, but the standard Win- mend using Port 1, since Port 0 is used world, along with an adapter cable to
dows telnet utility also works. Launch as a console and is thus in constant convert it to a 9-way or 25-way con-
telnet by entering the command ‘tel- use. Incidentally, Port 1 cannot not nector. There’s not enough room on the
net’, and then enter the fol- rear panel of the router for a con-
lowing string after the telnet nector of this size.
prompt:
You can test the port by con-
o 192.168.1.1 <enter> +3V3 necting it to a PC COM port via
1M a null modem cable and using
Here ‘o’ stands for ‘open’ and a terminal emulator program
16V
192.168.1.1 is the IP address of 2 to ‘listen’ to the serial port (set-
V+
J3
the router. This is the standard 16
C1+
1
1M tings: 115,200 baud / 8N1).
1
setting, but you might want Now you have a Linux port for
U1 3 6
16V
to check it to be sure. If every- TX DATA 11
C1–
14 2
your home automation appli-
T1IN T1OUT
thing is OK, you will be asked 10 7 7 cation available on your router.
T2IN T2OUT PC
to enter a user name and a RX DATA 12
R1OUT R1IN
13 3 This port answers to the name
9 8 8
password. The default values R2OUT R2IN ‘/dev/tts/1’.
4 4
are ‘admin’ and ‘admin’. Now C2+ 1M
9
you’re logged in to the operat- MAX3232 Converter cable method
15 5 5
C2– 16V
ing system of the router. V- As the router has two USB ports,
1M 6
RS232 DB9 you can use a converter cable to
There is other alternative avoid solder work and any need
16V
firmware available beside 070376 - 11 to open the case. The only thing
Oleg’s Firmware, such as you have to check is that a driv-
OpenWRT (http://openwrt. er is available for the converter
org/). It works in a similar way, you plan to use. We chose an AT-
Figure 2. This circuit built around a MAX3232 must be added to create a full-fledged
although OpenWRT has the EN UC-232A, which costs about
RS232 port.
advantage that it is not spe- £ 10 (` 15) and uses a Prolific
cific to Asus routers. You could PL2303 IC. A driver for this IC
thus use the Sweex router de- is included in Oleg’s Firmware.
scribed in the previous article However, you won’t see much
or the Linksys WRT-54G, which happen after you plug in the
is also popular. cable. First you have to launch
the driver by typing the follow-
ing commands in the Linux com-
RS232 link mand line interface:
Now that you can work with
the router via telnet, it’s time insmod usbserial
to let the router communicate insmod pl2303
with the outside world. This
is necessary for the home au- The insmod command adds an
tomation application. In the new module to the running op-
home automation system used Figure 3. Access via telnet. erating system. Usbserial is a
by the author, RS232 is used for generic driver, and pl2303 is a
connection to the control unit, driver for this particular IC. After
but the standard version of the these two drivers start running,
router only has two USB ports. Here be used with early versions of Oleg’s the port will be visible with the name
you have two choices. The WL500g Firmware due to an IRQ conflict, but ‘/dev/usb/tts/0‘. However, these driv-
has a UART, so you can create a ‘real’ this problem is corrected in version 7b ers will disappear if the router is re-
RS232 port with a minimum of addi- and later. started. Consequently, the commands
tional hardware. The other option is to must be included in a boot file, which
use a USB-to-RS232 converter cable. These ports use a signal level of only is similar to the Autoexec.bat file you
Both methods are described here. 3.3 V. In order to turn them into normal may recall from the DOS era. This can
RS232 signals, you have to use a con- also be done with Oleg’s Firmware,
DIY method verter circuit with a MAX3232 such as with a file named /usr/local/sbin/post-
The circuit board is visible after you the one shown in Figure 2. boot providing this function. However,
60 elektor - 10/2007
About the author
Arthur Vogels wrote this article as part of his graduation project at Fontys Polytech-
nic in Eindhoven, The Netherlands. This rounded off his course of study
in Advanced Informatics. He completed his graduation
project in the Technical Software Engineer-
ing group of LogicaCMG in Eindhoven,
which carries out innovative projects in
collaboration with students of colleges
and universities at various locations in
the Netherlands.
See www.workingtomorrow.nl for more
information.
you first have to create this file and en- lution. This also makes a separate AC for its usual job as a router, so a web
ter the commands in it: adapter for the router unnecessary. It’s page on the router is the most conven-
best to use an ‘old’ AT supply instead ient way to give the user access to the
mkdir -p /usr/local/sbin/ of a newer-model ATX supply, since an home automation software.
echo “insmod usbserial” >> AT supply is fitted with a real on/off
/usr/local/sbin/post-boot switch. One way to implement this is to write
echo “insmod pl2303” >> This completes the hardware. a PHP page that reads and writes text
/usr/local/sbin/post-boot files from and to the database layer.
chmod +x /usr/local/sbin/post-boot The only other thing you need is a
Software PHP-capable web server that can run
After this, you have to store the file in The router runs on a platform (MIP- on the router. Such a web server can be
flash memory. The command for this SEL) that is not based on a standard installed by following the procedures
is: PC processor, so it cannot run PC soft- in an excellent guide available on the
ware directly. This means that the Internet at http://www.macsat.com/
flashfs save && flashfs commit && source code of the software first has macsat/content/category/3/13/29/.
flashfs enable to be cross-compiled to the router plat- First follow the procedure for install-
form. You can download a tool chain ing the IPKG package, and then follow
Now you’re done with the RS232 part, for this (for use on a Linux PC) from the procedure for installing the THT-
and you can start building and connect- the Asus website (http://dlsvr01.asus. TPD web server.
ing the home automation hardware. com/pub/ASUS/wireless/WL-300g/
toolschain323_tar.rar). Naturally, this It’s convenient to first configure the
presumes that you have a Linux sys- router for a fixed DNS before perform-
Home automation hardware tem available, such as Ubuntu (http:// ing these procedures so it can find the
The hardware of the home automation www.ubuntu.com/), which is a very server with the package lists. This can
system is based on an interface mod- user-friendly Linux distribution. The avoid a lot of problems with download-
ule that communicates with the control software is written in C++ using KDe- ing IPKG package information.
unit via RS232 on one side and a net- velop as the development environment.
work of I/O modules on the other side. The nice thing about this is that it is all Once the web interface is installed
The control unit can be a PC or a router freeware and available as open-source and running, you’re all set. Now you
modified for this purpose. Sensors, ac- software. have a router running control software
tuators and motors can be connected for an attached home automation sys-
to the I/O modules. As the software is designed to work tem, with a user interface. It’s by no
with the DIY hardware components, it means the only alternative use for a
You can use a second-hand PC power is not described in detail here. One of broadband router, but it is one of the
supply to power all of this. The router the interesting elements in this con- nicest ones.
needs a 5-V supply, and the home au- nection is the web interface used to (070376-1)
tomation hardware usually needs 5 V control the system. The router is al-
and 12 V, so a PC supply is an ideal so- ready connected to a home network
10/2007 - elektor 61
INFO & MARKET SOLARTEAM
Astounding Eng
More ingenuity in solar car
Elkin Coppoolse
It all started in September last year. Since then over 40,000 man-hours have been
invested on the solar car by Solar Team Twente. They have picked a daring design, based
on the positively phototropic behaviour of sunflowers. Some very creative brainstorming
took place to find the best possible performance for the World Solar Challenge 2007 in
Australia. Tilting solar panels with Fresnel lenses aim to maximise the yield of the sun’s
energy in this solar car.
Tilting wing
The 2000 or so Gallium Arsenide triple-junction solar
cells are on the top of the car, which we’ve termed the
wing. What is noticeable about this wing is that it can tilt
along its longest axis. The frame of the wing is made out
of aluminium and was designed to perfection using the
computer program Ansys [3].
During the race the team drives from North to South Aus-
tralia. During the day the sun will therefore move from
the left to the right of the car. When the solar cells are
perpendicular to the sun they will absorb the most energy.
The refractive index will have less of an effect and the
reflection of light from the coating will also be less. The
solar cell will then take in more of the energy from the
sun’s rays. Having the wing tilt towards the sun keeps
the sun at right angles to the panel for longer and hence
increases the time during which the maximum power can
CAD drawing of the be extracted from the cells.
unique construction using The tilting is a simple principle as such, but the imple-
Fresnel lenses mentation in the car was a mechanical challenge. The
62 elektor - 10/2007
ineering
design
wing rests on roll bars that are mounted to the chassis of Semi-conductors
the car. With the help of rod-ends in the wing it becomes
possible to make it tilt over the brackets of the chassis. The solar cells are made from GaAs (Gallium Arsenide)
This is not done by the driver, however. An actuator, con- and have an efficiency of over 27%. They have an inter-
nected to the chassis and the wing, adjusts the position of nal protection system: the cell with the smallest yield deter-
the wing towards the sun. This actuator is controlled us- mines the current through the rest of the panel. To prevent
ing PWM from a board that also takes care of the whole the whole panel from becoming unusable because of a
dashboard. There is an engineer in the support vehicle single broken cell, each cell is fitted with a bypass diode
who decides what the position of the wing should be. The in parallel. This also stops the yield from dropping too
required value is sent to the car electronics, which then much when a shadow covers part of a panel.
adjust the panel to the correct position.
Batteries have been used to improve the efficiency of the
power collection. Maximum power transfer is achieved
Fresnel lenses with the help of Maximum Power Point Trackers (MPPT).
Fresnel lenses are special types of lenses that can also The devices make sure that the optimum voltage and cur-
be found in overhead projectors, for example. The lenses rent is used to extract energy from the solar panels. When
used for the Twente One differ from normal ones in that the solar panel is loaded with a small current, the voltage
they have a focal band instead of a focal point. Placing will be higher, but the power transfer (the product of the
the solar cells underneath the lenses increases the light in- two) will be low. When the panel is loaded with a high
tensity. The new regulations limit the area of solar cells to current, the voltage will drop and the power will again be
6 m². However, the use of the lenses has made the collect- low. The optimum is somewhere in between and is called
ed power equivalent to that of a panel of about 7.5 m²! the ‘maximum power point’. The MPPT determines several
As a result of the ‘movement’ of the sun, the focal band times a second where this point lies and delivers a volt-
will not always fall onto the solar cells. To overcome this, age and current that is dependent on the light falling on
a system was designed that can move the solar cells un- the panel.
derneath the lenses. The cells are mounted on a carrier
that moves over a spindle mechanism. Simply put a large The next circuit in the electronic system is the start-up box.
bolt connected to an electromotor. This motor is driven by The most important function of this box is the ‘pre-charging’
a board designed specifically for this task. of the car. This means that when the car is turned on, the
A number of photo diodes connected to a microcontroller battery is initially connected via a resistor to the electronic
are used to determine where the sunlight is most concen- circuits. This is needed because nearly all of the circuits in
trated. This information is used in a PID controlled system the car have a large suppression capacitor at the supply
to make the motor move the carrier to the correct position. input. The combined capacitance of these capacitors is so
The system operates completely autonomously. Solar Team great that if the car was turned on with an ordinary switch,
Twente has applied for a patent on this technique. The an enormous current would flow. This would be enough
technique is new and innovative and it surely has a lot of to fuse the contacts of the switch or relay together and it
promise in the future. would be impossible to turn the car off again.
10/2007 - elektor 63
INFO & MARKET SOLARTEAM
Communications
Chassis of To control everything requires reliable communications
the Twente One between all modules. For this we’ve used the CAN bus.
All control buttons on the dashboard are connected to this
bus. However, not all modules come supplied with this
Batteries useful protocol, and several boards had to be designed to
More than 5 kWh of Lithium Polymer batteries have been pass on the control signals.
connected in series to provide the energy for the car. The
danger of putting the batteries in series is that some may During the race there is a need to analyse a large amount
get out of balance with the rest. When a battery is out of of data from the solar car. In the new car there are nearly
balance, its cells are charged at a different level to the 200 measurement signals on the CAN bus, which can
be inspected by the engineer in the support vehicle. (The
temperature of the tyres is measured with infrared sen-
Nice to know
sors, the temperature of the batteries with thermo-couples,
the load on the shock absorbers with potentiometers, the
values from the motor come via the motor controller, etc.)
The power used by the solar cars to travel at 130 km/h is about A complete arsenal of sensors is therefore available in
the same as that used by a household electric kettle or vacuum the car. To process all these signals properly we’ve used
cleaner. CRONOS from IMC [4]. This clever device provides all
If you convert the power used by the electromotor into horsepower, the required inputs and outputs, which are controlled via
you get about 7.5 hp. DSPs. Many of the calculations can be programmed and
An average car contains about 1500 metres of cabling inside, the the resulting data is sent wirelessly to the engineer. From
Twente One has only 100 metres. these, the optimal driving conditions can be determined.
The Twente One has 29 ‘computers’, including the onboard This completes the circle and the new information is sent
computer, motor controller and battery management system. back to the Twente One.
The batteries in the solar cars have a capacity equivalent to that of
2200 mobile phone batteries.
Speed
A CSIRO Surface motor [5] is used to convert the gener-
ated electrical energy into motive energy. This is a 6 kW
others. That also results in a different voltage and inter- electromotor with a permanent magnet, connected inside
nal impedance. And if this impedance limits the current the rear wheel. The motor is virtually directly coupled over
it could result in the cell being charged the wrong way the complete revs range. Because the rear axle is driven
round. In extreme cases the cell may even explode or directly there is no energy lost in the transmission. The effi-
catch fire. The Battery Management System (BMS) moni- ciency of the CSIRO (98%) is a bit higher than that of the
tors all cell voltages and gives an alarm if any cells ap- NGM motor (94%) that was used by the previous Twente
team. This motor has already proven itself in the World
Solar Challenge in 2005, so is perfect as a spare.
The CSIRO motor is supplied in kit form: a coil, two mag-
netic rings and a sensor board for the Hall effect sensors.
The design had to take account of the electronic aspects
as well as all the mechanical and strategic aspects. Quite
a challenge!
It is interesting that Solar Team Twente has used the mo-
tor in a smaller wheel than the one it was intended for.
Instead of 16”, it was made to fit into 14”. When the revs
of the motor increase its efficiency also increases, which
results in a more efficient car. A consequence of the small-
er wheel is that the car’s top speed isn’t very high.
64 elektor - 10/2007
Two concepts compared
Nuna4 Twente One
come up with a winning design for their car. We’ve com- Web Links
pared the specifications of the Twente One car with those [1] www.wsc.org.au
of the team from Delft, the Nuna4, which can be seen in [2] www.solarteam.nl
the table below. The cars are well matched and we won-
[3] www.ansys.com
der which of the designs turns out to be the better one in
the competition. [4] http://www.imcdata-berlin.de/en/
In the next article we have a report of the race itself and [5] www.csiro.au
give an account of how well the cars did in practice. Now
we just have to hope that the innovative designs show their
full potential and result in a place amongst the top finishers.
(070468-I)
10/2007 - elektor 65
INFO & MARKET REVIEW
Inexpensive ARM Ki
ARM yourself with a new microcontro
Paul Goossens
Embedded-system designers work in a very dynamic world, and a wide range of products
are dependent on their efforts. However, the average embedded-system designer is not so
dynamic when it comes to selecting a microcontroller. He tends to remain loyal to a specific
type. But for anyone who is considering switching to a modern ARM7 microcontroller, iSystem
has put together an inexpensive ARM7 kit.
66 elektor - 10/2007
it
oller
troller whenever you wish. Single-step program execution project settings to be saved at the same time. This is rather
is also possible. This can be done at C level or assembly- non-intuitive at first. Once you know how it works, it’s not
language level. You can also view and modify memory a problem.
contents. All this is what you expect to find in a modern
development system.
Another nice feature is setting hardware breakpoints. This DIY
does not affect the operation of the microcontroller. Pro- If you would like to build the hardware yourself (despite
gram execution is stopped automatically when a breakpoint the low price of the kit and the fact that it uses small SMD
is reached. Hardware breakpoints are possible thanks to components), you can. The manufacturer offers a free
the Embedded ICE interface of the ARM7 microcontroller. download on its website under the name iF-DEV SBK,
where ‘SBK’ stands for ‘Self-Build Kit’. It contains all the
schematic diagrams, component lists, PCB layouts and
Sample programs firmware for the USB–JTAG interface and the microcontrol-
The kit comes with two sample programs. The objective of ler board. This download also includes all the software and
both of them is to cause the LED to blink and demonstrate documentation.
a large variety of routines. These routines show how easy
it is to debug software using winIDEA.
The main difference between the two sample programs is The 32-bit era
how they cause the LED to blink cheerfully. In the first sam- If you would like to try out an ARM7 microcontroller, wheth-
ple program, the wait time is determined by a large FOR er simply out of curiosity or for some other reason, this de-
loop. By contrast, the second sample program uses an inter- velopment kit is definitely worthwhile. Thanks to the includ-
nal hardware timer and an interrupt to drive the LED. ed USB–JTAG interface, you can also continue to use it long
after you have completed your first experiments.
The same applies to the development environment. It is
Comments certainly suitable for developing small to medium-sized
Although we were quite satisfied with the development kit, projects.
there are definitely a few comments we feel obliged to Not bad for a development system costing around 50
make. pounds!
During our experiments, we occasionally received a mes- (070240-1)
sage advising that the debugger could not stop the CPU,
which is an annoying ‘obstacle’. The only recourse in this Web Link http://www.isystem.com/ifdev
case is to issue a reset via a button on the toolbar. This
forces the microcontroller into the normal reset state. Af-
ter this, we could continue debugging the microcontroller
in the usual manner. We were not able to determine the
cause of this problem. Fortunately, this situation occurred
only very sporadically, and in any case it’s something you
can live with.
Our second (and last) criticism relates to loading and sav-
ing projects. We spent a fair amount of time trying go fig-
iF-DEV RTK contents
ure out how to load and save projects. After a bit of sleuth- • USB–JTAG interface • complete toolset and documentation on CD
ing, we found that each workspace is linked to a project. • ARM7 microcontroller board • USB cable
When you open a new workspace, you automatically open • Quickstart guide
the associated project. Saving a workspace causes your
10/2007 - elektor 67
INFOTAINMENT LABTALK
Data Books
Farewell to paper copies
Luc Lemmens easily find individual datasheets on the Internet. Every manufacturer
At the time of writing, we’re one month away from a change of (with a few exceptions) has its own website, where you can down-
premises for Elektor Electronics’ head office. After around 40 years, load complete data, application notes, errata sheets and the like to
we’re leaving the town of Beek, Limburg (Netherlands) and moving your PC with a simple mouse click. You can always find the most
to Limbricht, near Sittard. And as with every relocation, it’s a good recent data on the website, so you no longer have to worry about
idea to take as few things as possible with you to the new location whether changes have been made to a component. Many websites
and throw away as much as possible before the packing starts. This also show you right away whether the component concerned is still in
is sometimes accompanied by a bit of heartache and/or pangs of production, so you can quickly decide whether it is advisable to use
regret, but you have to be realistic. If something has been sitting it in a new design. Given all this, what’s the point of having an old-
unused in a cabinet or on a bookshelf for a few years, the chances fashioned data book in the lab or even in your hobby room?
that you will need it sometime later on are vanishingly small. So why
should you bother to pack it and take it with you? Still, it’s not easy One of the reasons to want a real book is purely practical in nature.
to throw so many things away, especially when you think about how Nothing else is as pleasant to read as an ‘old-fashioned’ printed
much you paid for them. page. Besides this, you can easily scribble notes on paper or add
your own comments. A datasheet for a simple component consists
Our collection of data books is one of the victims of our recent house- of just a few pages, and if you wish you can print it out, staple the
cleaning frenzy. They were once the ‘bibles’ of electronics, but in pages together, and voilà: your mini-book is ready for use. With more
light of the fact that they have vary rarely left the shelves in recent complicated components, the ‘datasheet’ can easily amount to several
years, it’s understandable that no space was allocated for them in hundred pages, and the amount of paper and ink necessary to print
our new premises. it out is often reason enough to abandon the idea – not to mention
There was a time when companies found it rather difficult to obtain the trouble it takes to convert such a thick pile of paper into a handy
data for components such as ICs, transistors and diodes, and hobby- reference document. In such cases, a real book certainly not be a
ists could only dream of putting their hands on such books. In some luxury, but of course it is understandable that distributing PDFs is a lot
cases, data books were actually quite expensive, but over the years easier and less costly for semiconductor manufacturers.
they followed the same trend as other products, such as microcon-
troller software development tools. At first they were nearly unafford- Another reason for keeping old data books involves a completely dif-
able, but later on they were free of charge – at least for commercial ferent aspect, and it relates primarily to discrete components such as
users. transistors. For example, take the data sheet for the BC557, a gar-
After the introduction of data CDs, many data books appeared in den-variety transistor. In the 1987 version of the Philips data book,
the form of CD-ROMs, which are much less expensive to reproduce the datasheet for this transistor included 15 characteristics charts
and take up much less space. At that time, the idea of throwing away documenting the performance of the device with various parameters.
the real books and installing a PC with a hefty CD jukebox in their The 1999 version of the datasheet for the same transistor from the
place was discussed in the Elektor labs, but nothing ever came of it. same manufacturer has a grand total of one chart: a plot of hFE ver-
However, with the advent of CDs the contents of our bookcases were sus IC. Admittedly, this is not exactly a transistor that is intended for
updated and augmented much less frequently than before, for the top-end analogue applications, and it is questionable whether the
simple reason that semiconductor manufacturers made less and less BC557 deserves such a wealth of data, but this dilution of data is a
use of printed media. trend that has become increasingly
Nowadays everyone can common in transistor datasheets
in recent years. Are people no
longer interested in the data, or
are discrete components in gen-
eral no longer interesting?
68 elektor - 10/2007
4VCTDSJCFBUXXXBVEJP9QSFTTDPN
4)03
47%!+3
02/*%#43
$)9 AUDIO
AT ITS BEST
MONTHLY ISSUES FOR ONLY 53
3UBSCRIBE AT WWW AUDIO8PRESSCOM
10/2007 - elektor 69
HANDS-ON DESIGN TIPS
1k
pool of lukewarm water (huge "BATTERIES TEST"
D1 11
energy reservoir) can’t be eas- BT1
13
R17 +6V
IC4.D 1k
ily converted into a small cup 10
D17
S1
1N5817 K1
of steaming hot coffee. In or-
R1
der to induce energy transfer 1k
BT19
from the old batteries into the
rechargeable ones, a voltage D2 BT2
9
R18
1V5
14
difference must be established. IC4.C 1k
8
Obviously, we can simply 1N5817
D18
BT20
!
10/2007 - elektor 71
HANDS-ON MICROCONTROLLERS
EasyControl I/O
ECIO: a super low-cost USB-enabled
PIC18 development system
John Dobson
In the old days, life was simpler. All computers one could that have USB ports integrated into the chip, in particu-
afford had a parallel port and a serial port. You could put lar the 18F4455 40- or 44-pin device and the 18F2455
together a simple circuit to program a microcontroller us- 28-pin device. Setting this up in a circuit can be quite
ing the PC’s parallel port and then you could use a micro- simple: get off MSN, switch off the telly, take the PIC,
controller’s USART (universal serial asynchronous receiver add a 4-MHz oscillator to the resonator pins, connect
transmitter — sorry for that) to communicate back to the the two PIC USB lines to the PC’s USB lines, add a reset
PC via the serial port. Then USB came along to ‘make switch and power it up.
life easier’ for us all. Now the fact that parallel ports and
serial ports are often left off modern PCs, means that you With the power supply, you have a choice: you can
need to buy a USB microcontroller programmer. Fortu- source 5 V from an external power supply, or you can use
nately, microcontrollers are now catching up: many mi- the PC’s own power supply on the USB port. There is a
crocontrollers have an internal USB port, which implies small caveat with this plan: you are not guaranteed more
that once again it is possible to plug the microcontroller than 100 mA to be available on your USB port as avail-
straight into the PC. Well, nearly… ability depends on how many USB devices are plugged
in. However in most circumstances around 250mA will be
Whilst it is not possible to make a full microcontroller pro- available.
grammer with just the USB lines, it is possible to do the
next best thing: to develop a piece of software called a The circuit diagram of ECIO40P using the 44-pin
‘bootloader’ which resides inside a USB-enabled micro- PIC18F4455 device is given in Figure 1. LED D1 indi-
controller and allows the microcontroller to download a cates when the USB lead is plugged in, and the power
program via the USB lead. jumpers allow you to select power to be taken from the
PC or from an external source.
Circuit details The circuit for the smaller (28-pin) device (ECIO28P) is
With the PICmicro range of products there are now sev- very similar — you just get less I/O (input/output) lines.
eral microcontrollers in the 18 series range of products There you have it: Easy Control I/O, in short, ECIO.
VDD
10n 10n
R4 R1
J2
7 8 28 29
150 7
10k
J3
MCLR 18 17 B7
MCLR/VPP/RE3 RB7/KBI3/PGD
A0 19 16 B6
RA0/AN0 RB6/KBI2/PGC
A1 20 15 B5
RA1/AN1 U1 RB5/KBI1/PGM
A2 21 14 B4
RA2/AN2/VREF-/CVR RB4/KBI0/AN11/CSSPP
A3 22 12 B3
RA3/AN3/VREF+ RB3/AN9/CCP2A/VPO
A4 23 11 B2
RA4/0CKI/C1OUT/RCV RB2/AN8/INT2/VMO
A5 24 10 B1
RA5/AN4/SS/HLVDIN/C2OUT RB1/AN10/INT1/SCK/SCL
E0 25 9 B0
RE0/AN5/CK1SPP RB0/AN12/FLT0/INT0/SDI/SDA
E1 26 1 C7
RE1/AN6/CK2SPP RC7/RX/DT/SDO
E2 27 44 C6
RE2/AN7/OESPP RC6/TX/CK
D0 38 36 C2
RD0/SPP0 RC2/CCP1/P1A
D1 39 35 C1
RD1/SPP1 RC1/T1OSI/CCP2B/UOE
D2 40 34 C0
RD2/SPP2 RC0/T1OSO/T13CKI
D3 41
RD3/SPP3 J1
D4 2 PIC18F4455QFN 1
RD4/SPP4 +5V
D5 3 42 2
RD5/SPP5/P1B RC4/D–/VM D–
D6 4 43 3
RD6/SPP6/P1C RC5/D+/VP D+
D7 5 37 4
RD7/SPP7/P1D VUSB GND
OSC1 OSC2 5
R2 R3
6 32 33 30 31 USB-B
390 7
X1
10k
3 1
SW2
C1
D1
4MHz 220n
RESET
2
Figure 1.
LED_SMD
075076 - 11 Complete circuit diagram
for the 18F4455 ECIO
version.
Bootloader details resonator, a USB socket and a reset switch. For each of
the 28-pin and 40 pin devices pictured in Figure 3 this
The bootloader software for a system like ECIO needs to provides a ‘ready to go’ component that can be plugged
be simple but effective. It was decided that only one switch directly into an application board, or into a breadboard.
for both Reset and Program would be convenient. The soft-
ware was written in such a way that when the Reset switch For both ECIO devices an E-blocks compatible ap-
is pressed the bootloader software looks at the USB leads plication board is also available — this allows you to
to see if the USB lead is plugged in. If it detects the pres- take advantage of the large range of E-blocks that are
ence of USB then the bootloader software implements a now in existence.
download program that allows the PC to communicate to
the PIC and send it a new program. If no USB lead is de-
tected, then the bootloader goes off and runs the user pro-
gram. Yes that will be your very own program eventually!
Besides the bootloader software, a Windows-based ap-
plication is needed to allow users to send hex code to the
microcontroller. You can see this in Figure 2. In line with
Elektor’s presence around the globe, the ECIO software
application is available in five main languages: English,
French, Dutch, Spanish and German. It allows users to
locate a hex file on the computer and then download it to
the device.
Figure 3.
Photograph of the ECIO40P
and the ECIO28P.
ECIO28P
RA2/AN2 6 35 RB3/AN9 RA2/AN2 6 23 RB3/AN9
RA3/AN3 7 34 RB2/AN8/INT2 RA3/AN3 7 22 RB2/AN8/INT2
RA4/AN4 8 33 RB1/AN10/INT1/SCK RA4/AN4 8 21 RB1/AN10/INT1/SCK
ECIO40P
Figure 4.
Pin connections for the
ECIO40P and ECIO28P.
Development software
Item(s) Price (£) Price (`)
The ECIO devices can be used with any soft-
ECIO28P (1 pc) 20.30 29.50 ware that generates hex code for the 18 series
of PICmicro devices.
ECIO28P (4 pcs) 60.60 89.95
ECIO40P (1 pc) 24.80 36.50 So, if you have a compiler or assembler that’s compatible
with the 18 series of Microchip PICmicro devices then you
ECIO40P (4 pcs) 74.60 112.00 have all you need to get started. Note that the bootloader
resides in the PICmicro between locations 0x000 and
E-blocks Adaptor Board 24.80 36.50
0x7FF, so your code needs to begin at location 0x800
E-blocks ECIO Starter Pack 206.50 299.00 (this can usually be achieved with a simple command to
the Linker tool).
All prices are inclusive of VAT; excluding P&P. If you don’t have any software then don’t despair: a free
For further details, see the Elektor SHOP section elsewhere in this version of Flowcode is available with both ECIO devices
issue, or visit our website at www.elektor.com that will allow you to create quite functional programs.
This free version of Flowcode is the same as the full ver-
Next time
In the November 2007 issue we will look at how you can
use the ECIO to develop a fully operational Programma-
ble Logic Controller (PLC).
(075076-I)
Figure 6.
An ECIO with adaptor
board and E-blocks.
Hexadoku
Hello all Hexadoku fans, here’s another exercise to keep the odd brain cell active. Eminently suited for
Puzzle with an
electronics touch
a rainy day (or two) in Autumn! Send us your solution and enter a prize draw for one of the prizes: an E-
blocks Starter Kit Professional and three Elektor Shop vouchers.
The instructions for this puzzle are straightforward. A number of clues are given in the puzzle and these determine
the start situation.
In the diagram composed of 16 x 16 boxes, enter numbers such All correct entries received for each month’s puzzle go into a
that all hexadecimal numbers 0 through F (that’s 0-9 and A-F) draw for a main prize and three lesser prizes. All you need to
occur once only in each row, once in each column and in each do is send us the numbers in the grey boxes. The puzzle is also
of the 4x4 boxes (marked by the thicker black lines). available as a free download from our website.
2 5 A P 9 R O 3 D C B 4 0 S H 1 Z W K Y M E 7 N I U J G 6 X T F Q V L 8
D 6 L U 3 T 1 Q R 5 9 X M G J A F 2 C H Z B 8 P Y 4 K S O V I E 0 7 N W
O 8 H 4 Z E G W T 7 A 0 V 6 K U Y B D 1 3 J I F P L C Q N R 5 X M 2 9 S
7 X 0 M K S L P 6 H Y 2 8 N C 9 I Q V 5 A O U T B 3 W Z E F G J 1 R D 4
G Q N B J 1 I E F 8 U V 4 5 D P 3 L 0 S R 9 X W 7 T 2 A H M Y 6 O K C Z
F C W V Y I Z S K N J M E O T X 7 R L 6 Q G 2 4 9 8 D 0 5 1 U P H 3 A B
H 1 D Y N 4 B J X T 2 U S M O Z C V G E K 8 P A Q 5 L I 0 3 F 9 7 6 W R
5 I Z L M Q K C A D O 8 H U 2 Y 4 9 W F T R N 1 6 G S B P 7 X 3 E 0 J V
X V 8 C 2 9 4 5 Z M G R W E Q 0 B 6 7 I L U 3 Y N A F J T O K D P 1 S H
0 P E T W B Q 9 S L N 6 X F 3 7 A 1 5 M J Z C V H Y R 4 D K 8 U 2 I G O
J R 3 7 O G W H Y 1 F E I P L K T 5 X D S 0 6 2 8 9 V M C U B Z A N 4 Q
K A 6 S F U V I 3 0 P 7 D J N R G 8 O B 4 Q 9 H 2 1 X E Z W M 5 T L Y C
S W 1 5 B F J G 0 Q T P 9 4 Z I 2 C 6 7 N 3 R 8 M H E X A D O K U Y V L
A 3 V I 7 8 F O M W H N R X P L U S T G 2 Y D K 0 B 5 9 1 6 4 Q J C Z E
9 4 J N G 0 6 D U B Z L 5 8 1 M E Y Q X C W H O K 7 I V 2 P A R 3 S F T
E L K Z U M C X I R 4 5 A D B G N 3 9 P V F S J T Q O W 8 Y 0 1 6 H 2 7
P 2 C O D H E Y 8 3 S 1 Q K V T 6 7 A 0 I 5 4 U L J G F R Z 9 B N W X M
6 Y T Q R X 9 V 2 K 7 A J W F O 0 H Z L B M 1 E 3 C 4 U S N D G I P 8 5
3 0 S K 5 D M 2 J Y R F G H 7 V O I E U P 1 Q 9 X W A L B 8 N C 4 Z T 6
T M X A I N U 1 C P W Z B 3 6 8 S K 4 V 0 H J L 5 F Q Y 9 G R 7 D O E 2
Y H 9 F L 2 0 B 5 S Q G Z T E C M D I N O X A 3 1 6 P R 7 4 W V 8 U K J
1 U 7 E Q P 8 N 9 O L K F R 4 2 5 X M W 6 C Y D Z V 3 T J I H 0 S G B A
V G B 6 C J H T 4 E X 3 L 0 Y W P A R 8 F 7 K Z O D N 2 U S Q M 5 9 1 I
W Z 4 R 8 O D A 7 6 V I N 1 9 J Q U S 2 5 T G B E K 0 H M C 3 Y L X P F
8 T 2 1 4 V Y 0 N 9 K J 7 Z A Q W P B 3 E S M X D O U 6 L 5 C I R F H G
R B G 9 S 5 T L V U C O Y 2 M 4 H N 1 Z D K W 6 J I 7 3 F 0 E 8 X A Q P
Q O F 3 6 L 7 8 W 2 M D C B G E 1 T P 9 Y 4 0 I R X H N K A Z S V J 5 U
N 7 I W P A R F G X E S 6 9 U 5 8 0 J O H L V C 4 Z M 1 Q B 2 T Y D 3 K
Z D M X 0 C 3 6 P 4 I H K V R F L J U A G 2 5 Q W S T 8 Y E 1 O 9 B 7 N
U J Y H E K 5 Z Q A 1 B 3 I X S D O 8 T 7 N F R V P 9 C G 2 L 4 W M 6 0
M F U 8 H Y N R 1 J 3 C T 7 W D K G 2 4 X V O 5 S E B P I L 6 A Z Q 0 9
4 K R J V 3 A M B G D Y P L S 6 9 E H Q 8 I Z 0 F N 1 O W T 7 2 C 5 U X
B S Q G X W P U O Z 5 T 1 C 0 3 J F N R 9 6 E M A 2 Y 7 4 H V L K 8 I D
I 9 5 D T 6 S 7 E F 0 W 2 Q 8 H V M Y C 1 A L G U R Z K X J P N B 4 O 3
C E O 2 A Z X K L I 6 Q U Y 5 N R 4 3 J W P B 7 G 0 8 D V 9 S H F T M 1
L N P 0 1 7 2 4 H V 8 9 O A I B X Z F K U D T S C M 6 5 3 Q J W G E R Y
76 elektor - 10/2007
RETRONICS INFOTAINMENT
Retronics is a monthly column covering vintage electronics including legendary Elektor designs. Contributions, suggestions and requests are
welcomed; please send an email to editor@elektor.com
EASYSYNC FUTURLEC
http://www.easysync.co.uk http://www.futurlec.com
AVIT RESEARCH EasySync Ltd sells a wide Save up to 60% on
www.avitresearch.co.uk
range of single and multi- • Electronic Components
USB has never been so simple...
port USB to RS232/RS422 • Microcontrollers, PIC, Atmel
with our USB to Microcontroller Interface cable.
and RS485 converters at competitive prices. • Development Boards, Programmers
Appears just like a serial port to both PC and Huge range of products available on-line for
Microcontroller, for really easy USB connection to immediate delivery, at very competitive prices.
your projects, or replacement of existing RS232
interfaces. ELNEC
See our webpage for more www.elnec.com
details. From £15.00. • device programmer LONDON ELECTRONICS COLLEGE
manufacturer http://www.lec.org.uk
• selling through contracted Vocational training and education for national
distributors all over the world qualifications in Electronics Engineering and
BETA LAYOUT • universal and dedicated device programmers Information Technology (BTEC First National,
www.pcb-pool.com • excellent support and after sale support Higher National NVQs, GCSEs and Advanced
Beta layout Ltd Award- • free SW updates Qualifications). Also Technical Management and
winning site in both • reliable HW Languages.
English and German • once a months new SW release
offers prototype • three years warranty for most programmers
PCBs at a fraction of the cost of the usual
manufacturer’s prices. MARCHAND ELECTRONICS INC.
www.marchandelec.com
FIRST TECHNOLOGY TRANSFER LTD. • power amplifier modules
http://www.ftt.co.uk/PICProTrng.html • electronic crossovers
BYVAC ELECTRONICS Microchip Professional C solid state / valve /
www.byvac.co.uk and Assembly passive
Programming Courses. • valve amplifiers
32Bit ARM
The future is embedded. • phono preamps
Microcontroller,
Microchip Consultant / Training Partner developed • handheld sinewave generator
USB, built in RTC
courses: • kits or assembled
with itís own
• Distance learning / instructor led • software electronic instruments
operating system,
• Assembly / C-Programming of PIC16, PIC18, • custom design services
no complex
PIC24, dsPIC microcontrollers
tools, just a
• Foundation / Intermediate
terminal emulator, start writing programs in 20
minutes. Complete with CD-ROM, Software and MODular ElecTRONics
100 Page Foundation book www.modetron.com
FLEXIPANEL LTD • Plug and Program
www.flexipanel.com • FREE application s/w
TEAclippers - the smallest • Hobbyist ease-of-use
DECIBIT CO.LTD. PIC programmers in the world, • Professional finish with enclosure
www.decibit.com from £20 each: and LEXAN faceplate
Smallest 2.4 GHz ISM band MCU embedded • Per-copy firmware sales • We will design and brand your
transceiver modules. Complete tiny solution, • Firmware programming & archiving custom application
ready to transmit RF data by only attaching as • In-the-field firmware updates • Growing range of PSU’s, i/o modules, displays
example a CR2032 coin cell to it. • Protection from design theft by subcontractors and microcontrollers
78 elektor - 10/2007
products and services directory
MQP ELECTRONICS SOURCEBOOST TECHNOLOGIES USB INSTRUMENTS
www.mqp.com http://www.sourceboost.com http://www.usb-instruments.com
• Low cost USB Bus Analysers Next generation C compiler and USB Instruments specialises
• High, Full or Low speed captures development products at highly in PC based instrumentation
• Graphical analysis and filtering affordable prices: products and software such
• Automatic speed detection • C, C++, and Basic compilers for PIC12, PIC16, PIC18 as Oscilloscopes, Data
• Bus powered from high speed PC • Modern IDE, with PIC simulator, source level Loggers, Logic Analaysers
• Capture buttons and feature connector debugger and virtual devices. which interface to your PC via USB.
• Optional analysis classes • RTOS for PICmicro.
• PIC based controller and Development boards.
NEW WAVE CONCEPTS • Download and try for Free from http://www. VIRTINS TECHNOLOGY
www.new-wave-concepts.com sourceboost.com www.virtins.com
Software for Hobbyists: PC and Pocket PC based
• Livewire - circuit simulation virtual instrument such
software, only £34.99
COMPONENTBIN.COM as sound card real time
www.componentbin.com oscilloscope, spectrum
• PCB Wizard - PCB design
Kickstart your development with analyzer, signal generator,
software, only £34.99
modules and parts from multimeter, sound meter,
• Circuit Wizard - circuit, PCB and breadboard
componentbin.com distortion analyzer, LCR meter.
design software, only £59.99
• ARM7 modules Free to download and try.
Available from all Maplin Electronics stores and
• Ethernet modules
www.maplin.co.uk
• Superb Graphic LCD displays (all with example
software)
ROBOT ELECTRONICS
http://www.robot-electronics.co.uk
Advanced Sensors and Electronics for Robotics
and much much more...
Online ordering and great prices! www.
• Ultrasonic Range Finders
• Compass modules
• Infra-Red Thermal sensors
• Motor Controllers
ULTRALEDS
http://www.ultraleds.co.uk
tel: 0871 7110413 / 01625 576778
elektor.
• Vision Systems
• Wireless Telemetry Links
• Embedded Controllers
Large range of low cost Ultra bright leds and
Led related lighting products. Major credit cards
taken online with same day depatch.
com
SHOWCASE YOUR COMPANY HERE
Elektor Electronics has a feature to help • For just £220 + VAT (£20 per issue for image - e.g. a product shot, a screen shot
customers promote their business, eleven issues) Elektor will publish your from your site, a company logo - your
Showcase - a permanent feature of the company name, website address and a choice
magazine where you will be able to showcase 30-word description
your products and services. • For £330 + VAT for the year (£30 per Places are limited and spaces will go on
issue for eleven issues) we will publish a strictly first come, first served basis.
the above plus run a 3cm deep full colour So-please fax back your order today!
10/2007 - elektor 79
SHOP BOOKS, CD-ROMS, KITS & MODULES
Going Strong
A world of electronics
from a single shop! 5.0, 6.0, VBA, .NET, 2005
NEW
! Learn more about them
Books
Microcontroller Basics
This book offers more than just a basic
introduction! It clearly explains the tech-
Fully elaborated electronics projects nology using various microcontroller
circuits and programs written in several
309 Circuits different programming languages. In the
The present tenth edition of the popular ‘30x Circuits’ series of books once again contains a course of the book, the reader gradually
comprehensive variety of circuits, sub-circuits, tips and tricks and design ideas for electronics. develops increased competence in con-
Among many other inspiring topics, the following categories are well presented in this book: test verting his or her ideas into microcon-
& measurement; RF (radio); computers and peripherals; audio & video; hobby and modelling; troller circuitry.
microcontrollers; home & garden; power supplies & battery chargers; etcetera.
230 pages • ISBN 978-0-905705-67-5
432 pages • ISBN 978-0-905705-69-9 • £19.95 • US$ 39.95 £19.50 • US$ 39.00
80 elektor - 10/2007
e
Now also availabl
Bestseller!
CD-ROMs
as a Module!
Stand
Alone OBD-2
Software Tools & Hardware Tips Analyser Digital Inspector
(June 2007) (September 2007)
Ethernet Toolbox
This CD-ROM contains all essential in- This handy analyser makes a simple job When checking digital signals a logic
formation regarding Ethernet interfaces! of rummaging through the information analyser is indispensable, especially
Ethernet Toolbox includes a collection of stored by the client-accessible part of since many circuits use microcontrollers
datasheets for dedicated Ethernet in- your car’s computer. It works with all cur- these days. This four-channel logic ana-
terface ICs from many different manu- rent OBD-2 protocols and can read and lyser is compact and battery-powered.
facturers. To help you with your own erase trouble codes stored in the vehicle The maximum sampling rate is 2 MHz
projects, the CD-ROM provides a wealth and reset the MIL display. All this without and the circuit has sufficient memory to
of information about connectors and the help of a PC or a visit to a service store 1024 samples of the signal. The
components for the physical layer (PHY) station. dot-matrix display with a resolution of 64
and specific software tools for use with by 128 pixels shows a clear representa-
the Ethernet (Software). Of course, none Kit of parts containing all components, the tion of the digital signals.
of the Elektor Electronics articles on the case (with front panel foil fitted), mount-
subject of Ethernet are missing on this ing materials and an OBD-2 cable. Construction kit including the PCB, con-
CD-ROM. troller, display, case and all parts
Art. # 070038-72 • £55.20 • US$ 110.40
ISBN 978-90-5381-214-3 • £18.90 • US$ 37.90 Art. # 060092-71 • £77.60 • US$ 155.20
PCB, ready-assembled and tested (case
and OBD-2 cable included)
ISBN 978-90-5381-195-5 • £13.90 • US$ 27.80 Art. # 070039-91 • £72.45 • US$ 126.50
10/2007 - elektor 81
SHOP PRODUCT SHORTLIST, BESTSELLERS
Bestsellers
Product Shortlist
Books Books
070069-1 ......Printed circuit board, amplifier (mono) ............................20.70........41.40
070069-2 ......Printed circuit board, power supply ..................................19.30........38.60 Microcontroller Basics
September 2007 (No. 369) 3 ISBN 978-0-905705-67-5 ............... £19.50 .....US$ 39.00
Tilt Gamepad
070233-41 ....Programmed controller ATMega8-16PI .............................6.20........12.35 PC Interfaces under Windows
070233-81 ....Software on CD-ROM..........................................................5.20........10.40 4 ISBN 978-0-905705-65-1 ............... £27.25 .....US$ 54.50
070233-91 ....Printed circuit board with sensor fitted .............................18.90........37.80
CD-ROMs
Digital Inspector 308 Circuits
060092-1 ......Printed circuit board ................................................www.thePCBshop.com 5 ISBN 0-905705-66-1....................... £19.25 .....US$ 38.50
060092-41 ....Programmed controller PIC18F4580-I/P .........................13.10........26.20
060092-71 ....Kit of parts PCB, controller, case and all parts ...................77.60......155.20 Ethernet Toolbox
060092-81 ....Software on CD-ROM..........................................................5.20........10.40 1 ISBN 978-90-5381-214-3 ............... £18.90 .....US$ 37.90
July/August 2007 (No. 367)
Kits & Modules USB Toolbox
Dual Battery
070343-1 ......PCB, bare ...........................................................................5.20..........9.75 2 ISBN 978-90-5381-212-9 ............... £19.90 .....US$ 39.80
Fast Charger for NiMH Batteries
070213-1 ......PCB, bare ................................................................www.thePCBshop.com Elektor 2006
3
CD-ROMs
Lithium Charger ISBN 978-90-5381-207-5 ............... £16.90 .....US$ 33.80
070273-1 ......PCB, bare ...........................................................................8.90........12.95
Low2 Cost USB Demo Board Home Automation
060342-81 ....CD-ROM, project software...................................................5.20..........9.75 4 ISBN 978-90-5381-195-5 ............... £13.90 .....US$ 27.80
060342-41 ....PIC18F4550, programmed ...............................................15.15........28.50
LPC 900 Programmer Robotics
070084-1 ......PCB, bare ...........................................................................6.90........12.95 5 ISBN 978-90-5381-179-5 ............... £12.90 .....US$ 25.80
MotoBox
070129-1 ......PCB, bare ................................................................www.thePCBshop.com Stand Alone OBD-2 Analyser
070129-41 ....PIC16F628-04/P, programmed .........................................14.80........27.95
Propeller Prototyping Board for BoeBot
1 Art. # 070038-72 ........................... £55.20 ...US$ 110.40
82 elektor - 10/2007
Our online store
contains an ever
expanding variety of
products designed for
engineers, hobbyists and
students. These include:
ͻZDĞǀĞůŽƉŵĞŶƚ^LJƐƚĞŵƐ
ͻƚŚĞƌŶĞƚDŽĚƵůĞƐ
ͻZ&DŽĚƵůĞƐ
ͻ'ƌĂƉŚŝĐ>ŝƐƉůĂLJƐ;tŝƚŚĞdžĂŵƉůĞƐŽŌware!)
ͻ,ŽŵĞƵƚŽŵĂƟon
ͻWŽǁĞƌŽŶǀĞƌƐŝŽŶ
ͻŽŵƉŽŶĞŶƚƐΘŽŶŶĞĐƚŽƌƐ
ͻŶĚDƵĐŚDŽƌĞ͊
ͻĚƵĐĂƟŽŶĂůŝƐĐŽƵŶƚƐǀĂŝůĂďůĞ
+44 (0) 1354 778224
Do you want to stay up to date with electronics and
computer technology? Always looking for useful hints, tips
and interesting offers? Subscribe now to E-weekly,
the free Elektor Newsletter.
The latest news on electronics in your own mailbox
each friday
Free access to the News Archive on the Elektor website
You’re authorized to post replies and new topics in our forum
10/2007 - elektor 83
INFO & MARKET SNEAK PREVIEW
Flash-board on USB
Quickly and easily programmed, Flash microcontrollers are just the ticket to developing software the comfort-
able way. Until recently, the link to the PC was based on the RS232 port but that’s had to give way to the more
contemporary USB on most PCs. So, a controller board is needed that’s USB savvy. Our board is, and it’s ideal
for lots of experiments. The micro used is an AT89C5131A sporting an 80C52 core and a full-speed USB inter-
face. Moreover, the controller comprises an update interface
that makes loading new software a breeze. Chip programming
is handled by free Atmel software called FLIP.
Low-cost webserver
A small, stand-alone web server is very handy (and trendy) if you want to store data from camera’s, data loggers, sensors and other
devices, for accessing (and viewing) anywhere on the globe via your own web pages. Our project for a home web server is cheap and
easy to reproduce. It is based on an ATmega32 microcontroller employing an
old ISA-network card to link itself to the Internet. The web server’s mass data
may be stored on an SD/MMC memory card. The project has lots of scope
for your own additions, experiments and adaptations.
RESERVE YOUR COPY NOW! The November 2007 issue goes on sale on Thursday 25 October 2007 (UK distribution only).
UK mainland subscribers will receive the magazine between 19 and 22 October 2007. Article titles and magazine contents subject to change, please check www.elektor.com.
Name: ....................................
Address: ....................................
Post code: .................................... Please cut out or photocopy this form, complete details and
Telephone: .................................... hand to your newsagent.
Elektor Electronics is published on the third Thursday of each
Date: ....................................
month, except in July.
Signature: .................................... Distribution S.O.R. by Seymour (NS).
£19.95
Qty. Total Order Code
METHOD OF PAYMENT
(see reverse before ticking as appropriate)
Formula Flowcode Buggy NEW £85.00 Bank transfer
Cheque
CD-ROM Ethernet Toolbox £18.90 (UK-resident customers ONLY)
Sub-total
Prices and item descriptions subject to change. Please send this order form to*
The publishers reserve the right to change prices (see reverse for conditions)
without prior notification. Prices and item descriptions
P&P
shown here supersede those in previous issues. E. & O.E.
Total paid Elektor
Regus Brentford
1000 Great West Road
Brentford TW8 9HH
Name
United Kingdom
Tel.: +44 208 261 4509
Address + Post code
Fax: +44 208 261 4447
www.elektor-electronics.co.uk.
sales@elektor-electronics.co.uk
*USA and Canada residents may
(but are not obliged to)
Tel. Email use $ prices, and send the order form to:
Old Colony Sound Lab
P.O. Box 876, Peterborough
EL10 Email: custserv@audioXpress.com
Order Form
10-2007
Subscription-Plus
(11 issues plus the Elektor Volume 2007 CD-ROM)
Elektor
Regus Brentford
1000 Great West Road
Tel. Email Brentford TW8 9HH
United Kingdom
Date – – 2007 Signature Tel.: +44 208 261 4509
* cross out what is not applicable Fax: +44 208 261 4447
www.elektor-electronics.co.uk.
EL10 subscriptions@elektor-electronics.co.uk
ORDERING INSTRUCTIONS, P&P CHARGES
Except in the USA and Canada, all orders, except for subscriptions (for which see below), must be sent BY POST or FAX to our Brentford address
using the Order Form overleaf. On-line ordering: http://www.elektor-electronics.co.uk
Readers in the USA and Canada may (but are not obliged to) send orders, except for subscriptions (for which see below), to the USA address
given on the order form. Please apply to Old Colony Sound for applicable P&P charges. Please allow 4-6 weeks for delivery.
Orders placed on our Brentford office must include P&P charges (Priority or Standard) as follows: Europe: £6.00 (Standard) or £7.00 (Prio-
rity) Outside Europe: £9.00 (Standard) or £11.00 (Priority)
HOW TO PAY
All orders must be accompanied by the full payment, including postage and packing charges as stated above or advised by Customer Services staff.
Bank transfer into account no. 40209520 held by Elektor Electronics with ABN-AMRO Bank, London. IBAN: GB35 ABNA 4050 3040 2095 20.
BIC: ABNAGB2L. Currency: sterling (UKP). Please ensure your full name and address gets communicated to us.
Cheque sent by post, made payable to Elektor Electronics. We can only accept sterling cheques and bank drafts from UK-resident customers or
subscribers. We regret that no cheques can be accepted from customers or subscribers in any other country.
Giro transfer into account no. 34-152-3801, held by Elektor Electronics. Please do not send giro transfer/deposit forms directly to us, but instead
use the National Giro postage paid envelope and send it to your National Giro Centre.
Credit card VISA and MasterCard can be processed by mail, email, web, fax and telephone. Online ordering through our website is
SSL-protected for your security.
COMPONENTS
Components for projects appearing in Elektor are usually available from certain advertisers in this magazine. If difficulties in the supply
of components are envisaged, a source will normally be advised in the article. Note, however, that the source(s) given is (are) not exclusive.
TERMS OF BUSINESS
Delivery Although every effort will be made to dispatch your order within 2-3 weeks from receipt of your instructions, we can not guarantee this
time scale for all orders. Returns Faulty goods or goods sent in error may be returned for replacement or refund, but not before obtaining our
consent. All goods returned should be packed securely in a padded bag or box, enclosing a covering letter stating the dispatch note number.
If the goods are returned because of a mistake on our part, we will refund the return postage. Damaged goods Claims for damaged goods
must be received at our Brentford office within 10-days (UK); 14-days (Europe) or 21-days (all other countries). Cancelled orders All cancelled
orders will be subject to a 10% handling charge with a minimum charge of £5.00. Patents Patent protection may exist in respect of circuits,
devices, components, and so on, described in our books and magazines. Elektor does not accept responsibility or liability for failing to identify
such patent or other protection. Copyright All drawings, photographs, articles, printed circuit boards, programmed integrated circuits, diskettes
and software carriers published in our books and magazines (other than in third-party advertisements) are copyright and may not be reproduced
or transmitted in any form or by any means, including photocopying and recording, in whole or in part, without the prior permission of Elektor
in writing. Such written permission must also be obtained before any part of these publications is stored in a retrieval system of any nature.
Notwithstanding the above, printed-circuit boards may be produced for private and personal use without prior permission. Limitation of liability
Elektor shall not be liable in contract, tort, or otherwise, for any loss or damage suffered by the purchaser whatsoever or howsoever arising out of, or in
connexion with, the supply of goods or services by Elektor other than to supply goods as described or, at the option of Elektor, to refund the purchaser
any money paid in respect of the goods. Law Any question relating to the supply of goods and services
by Elektor shall be determined in all respects by the laws of England.
September 2007
Standard Plus
United Kingdom £41.90 £48.80
Surface Mail
Rest of the World £54.50 £61.40
USA & Canada US$ 95.50 US$106.50
Airmail
Rest of the World £68.90 £75.80
USA & Canada US$120.00 US$131.00
Bank transfer into account no. 40209520 held by Elektor Electronics. The standard subscription order period is twelve months. If a perma-
with ABN-AMRO Bank, London. IBAN: GB35 ABNA 4050 3040 2095 20. nent change of address during the subscription period means that
BIC: ABNAGB2L. Currency: sterling (UKP). Please ensure your full name copies have to be despatched by a more expensive service, no extra
and address gets communicated to us. charge will be made. Conversely, no refund will be made, nor expiry
date extended, if a change of address allows the use of a cheaper
Cheque sent by post, made payable to Elektor Electronics. We can only service.
accept sterling cheques and bank drafts from UK-resident customers or Student applications, which qualify for a 20% (twenty per cent)
subscribers. We regret that no cheques can be accepted from customers reduction in current rates, must be supported by evidence of student-
or subscribers in any other country. ship signed by the head of the college, school or university faculty.
A standard Student Subscription costs £33.50, a Student Subscription-
Giro transfer into account no. 34-152-3801, held by Elektor Electronics. Plus costs £40.40 (UK only).
Please do not send giro transfer/deposit forms directly to us, but instead Please note that new subscriptions take about four weeks from receipt
use the National Giro postage paid envelope and send it to your National of order to become effective.
Giro Centre. Cancelled subscriptions will be subject to a charge of 25% (twenty-
five per cent) of the full subscription price or £7.50, whichever is the
Credit card VISA and MasterCard can be processed by mail, email, higher, plus the cost of any issues already dispatched. Subsciptions
web, fax and telephone. Online ordering through our website is SSL- cannot be cancelled after they have run for six months or more.
protected for your security. January 2007
NEW
!
" !!
!
"
$
"
!#
INDEX OF ADVERTISERS
Antex Electronics Ltd . . . . . . . . . . . . . . . . www.antex.co.uk. . . . . . . . . . . . . . . . . . . . . . . . 11 MJComponents . . . . . . . . . . . . . . . . . . . . www.mjcomponents.com . . . . . . . . . . . . . . . . . 71
Paltronix. . . . . . . . . . . . . . . . . . . . . . . . . . www.paltronix.com . . . . . . . . . . . . . . . . . . . . . . 35
Byvac Electronics, Showcase. . . . . . . . . . www.byvac.co.uk . . . . . . . . . . . . . . . . . . . . . . . 78
Pico. . . . . . . . . . . . . . . . . . . . . . . . . . . . . www.picotech.com . . . . . . . . . . . . . . . . . . . . . . 51
Decibit Co. Ltd, Showcase . . . . . . . . . . . . www.decibit.com . . . . . . . . . . . . . . . . . . . . . . . 78
Quasar Electronics . . . . . . . . . . . . . . . . . . www.quasarelectronics.com . . . . . . . . . . . . . . . 34
EasyDAQ, Showcase . . . . . . . . . . . . . . . . www.easydaq.biz . . . . . . . . . . . . . . . . . . . . . . . 78
Robot Electronics, Showcase . . . . . . . . . . www.robot-electronics.co.uk. . . . . . . . . . . . . . . 79
Easysync, Showcase . . . . . . . . . . . . . . . . www.easysync.co.uk. . . . . . . . . . . . . . . . . . . . . 78
Scantool . . . . . . . . . . . . . . . . . . . . . . . . . www.ElmScan5.com/elektor . . . . . . . . . . . . . . . 71
Elnec, Showcase . . . . . . . . . . . . . . . . . . . www.elnec.com . . . . . . . . . . . . . . . . . . . . . . . . 78
Schaeffer AG . . . . . . . . . . . . . . . . . . . . . . www.schaeffer-ag.de . . . . . . . . . . . . . . . . . . . . 83
Eurocircuits . . . . . . . . . . . . . . . . . . . . . . . www.eurocircuits.com . . . . . . . . . . . . . . . . . . . 71
Showcase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78, 79
First Technology Transfer Ltd, Showcase . www.ftt.co.uk . . . . . . . . . . . . . . . . . . . . . . . 71, 78
SourceBoost Technologies, Showcase . . . www.sourceboost.com . . . . . . . . . . . . . . . . . . . 79
FlexiPanel Ltd, Showcase . . . . . . . . . . . . . www.flexipanel.com . . . . . . . . . . . . . . . . . . . . . 78
Tsien (UK) Ltd, Showcase . . . . . . . . . . . . www.componentbin.com . . . . . . . . . . . . . . 79, 83
Future Technology Devices, Showcase . . . www.ftdichip.com . . . . . . . . . . . . . . . . . . . . . . . 78
Ultraleds, Showcase . . . . . . . . . . . . . . . . www.ultraleds.co.uk . . . . . . . . . . . . . . . . . . . . . 79
Futurlec, Showcase . . . . . . . . . . . . . . . . . www.futurlec.com . . . . . . . . . . . . . . . . . . . . . . . 78
USB Instruments, Showcase . . . . . . . . . . www.usb-instruments.com . . . . . . . . . . . . . . . . 79
Jaycar Electronics . . . . . . . . . . . . . . . . . . www.jaycarelectronics.co.uk . . . . . . . . . . . . . . . . 2
Virtins Technology, Showcase . . . . . . . . . www.virtins.com . . . . . . . . . . . . . . . . . . . . . . . . 79
JB Systems, Showcase . . . . . . . . . . . . . . www.modetron.com . . . . . . . . . . . . . . . . . . . . . 78
Labcenter. . . . . . . . . . . . . . . . . . . . . . . . . www.labcenter.com. . . . . . . . . . . . . . . . . . . . . . 88
10/2007 - elektor 87
DESIGN
SUITE
TIME FOR A CHANGE ?
E-mail: info@labcenter.com Tel: +44 (0) 1756 753440 Fax: +44 (0) 1756 752857
Registered Address: 53-55 Main Street, Grassington, North Yorks, UK, BD23 5AA
88
88 elektor - - 10/2007
elektor electronics 6/2007