Elektor 09.2009.pdf

(15869 KB) Pobierz
167200710 UNPDF
www.elektor.com September 2009 AUS$ 13.90 - NZ$ 16.90 - SAR 99.95 £ 4.65
electronics & microcontrollers
OLED ‘scope
OBD2 Analyser
Battery Power
electric vehicles come of age
Power Charger for ElektorWheelie
ATM18 Mini Chess Computer
GPS Datalogger
R39
on R32C experimenter’s board
with ARM Cortex-M3 controller
The Road to
167200710.045.png 167200710.046.png
The Most Popular 8-bit Microcontrollers!
The Best Customer Support.
The world’s most popular 8-bit microcontroller family has the best
customer support and the industry’s shortest leadtime – 3-4 weeks!
24/7 Support
t0OMZ Microchip ofers full
support 24/7
With over 400 diferent variants, there is an 8-bit PIC® microcontroller for every
design. Microchip’s 8-bit family now includes microcontrollers with the smallest
form-factor, industry-irst peripherals and up to 16 MIPS performance.
t*ODSFBTFE Field Application
Engineer support team
Pin- and code-compatibility ensure easy migration across the 8-bit family and up
to 16-bit designs and Microchip’s MPLAB® IDE is absolutely free, and supports ALL
of Microchip’s 8-, 16-, and 32-bit microcontrollers – from 6 to 100 pins!
With over 7 Billion PIC microcontrollers shipped worldwide and increased
investment in product development and customer support, you can count on
Microchip to be here for you - especially through the tough times.
t*ODSFBTFE Customer Application
Engineer support team
t*ODSFBTFE Customer Training
Support through Regional
Training Centers (RTCs)
Comprehensive support starts with the Microchip Advanced Part Selector (MAPS)
and extends throughout the design cycle with free or low-cost development
tools, online and regional training and 24/7 technical support.
t Smallest form-factor, lowest cost - PIC10 and PIC12 MCUs
t Advanced peripherals - PIC16 MCUs
YOU
t Highest-performance - PIC18 MCUs
Now & Tomorrow...
For the best product support and availability - think Microchip!
www.microchip.com/8bit
The Microchip name and logo, the Microchip logo, MPLAB and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other trademarks mentioned herein are
property of their respective companies. © 2009, Microchip Technology Incorporated. All Rights Reserved. ME223Eng/02.09
167200710.047.png 167200710.048.png 167200710.001.png 167200710.002.png 167200710.003.png 167200710.004.png 167200710.005.png 167200710.006.png 167200710.007.png 167200710.008.png 167200710.009.png 167200710.010.png 167200710.011.png 167200710.012.png 167200710.013.png 167200710.014.png 167200710.015.png 167200710.016.png 167200710.017.png 167200710.018.png
Discover the FUTURE with EasyPIC6
Everything you’ve always wanted from a development tool
Experience the ease of creating your own electronic devices!
Thanks to many new features, you can start creating your own devices
immediately. EasyPIC6 supports 8-, 14-, 18-, 20-, 28- and 40- pin PIC
microcontrollers. The mikroICD (Hardware In-circuit Debugger) enables
very efficient step by step debugging. Examples in C , BASIC and Pascal
are provided with the board.
Hardware In-Circuit Debugger
for step by step debugging at
hardware level
High-Performance
USB 2.0 On-Board
Programmer
Port Expander provides easy
I/O expansion (2 additional
ports) using serial interface
On-Board
2x16 Serial LCD
Display
Full-featured and user-friendly
development board for PIC
microcontrollers
Keypad enables
easy and fast data
entry
mikroElektronika
ON SALE NOW!
Find your distributor:
http://www.mikroe.com/en/distributors/
SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
w w w . m i k r o e . c o m
167200710.019.png 167200710.020.png 167200710.021.png 167200710.022.png 167200710.023.png 167200710.024.png 167200710.025.png 167200710.026.png 167200710.027.png 167200710.028.png 167200710.029.png 167200710.030.png 167200710.031.png 167200710.032.png 167200710.033.png 167200710.034.png 167200710.035.png 167200710.036.png
electronics & microcontrollers
Electromobile
This month’s focus is on automotive
and I believe the subject is covered
from a number of interesting angles.
The main project, for example, is
our new pocket-size OBD2 Analyser
with an extensive range of features.
Fully DIY to Elektor standards, the
instrument should be compatible
with all modern cars having OBD
connectivity. The built-in analyser will
faithfully read and display engine
data and any error codes you or
Edd the mechanic will want to clear
by matching repair work on the
vehicle. A graphic display ensures
a clear readout with plain-language
descriptions.
Those of you keen to use Google
Earth, a regular USB memory stick
and your PC to trace the actual route
you have followed by car, bike or on
foot will ind the GPS Datalogger on
page 30 an awesome project, if only
because it’s modular and the software
is ever so easy to adapt to personal
requirements. RU ready boots (or
wheels)… start logging!
The article on technological develop-
ments in electric cars concentrates on
energy sources available (and desir-
able) to power these vehicles. Which
sources are likely to be used by future
generations and what are all these
car and battery manufacturers doing
in their labs and on their test tracks?
Our ElektorWheelie self-balancing
electro scooter is covered in two
articles, one on the mechanical
assembly of the kit parts and your
careful irst attempts to ride the
vehicle, and another on a symmetri-
cal battery charger developed as a
premium alternative to the charger
normally supplied with the kit.
Of course, it’s not all vehicles and
batteries in this issue. With all
‘wheels’ safely parked or connected
to a charger, why not play a game
of chess against our ATM18 Mini
Chess Computer, or explore how an
R32C microcontroller drives an OLED
display.
Finally, I’m happy to announce a new
four-page section in Elektor called
E-Labs Inside . These pages are irmly
positioned in the centre of the maga-
zine, just like the real Elektor Lab is
at the centre of our publications and
many of our products. E-Labs Inside
reports on what our lab staff have
run into during the month — you can
expect to read about techie problems
and workarounds, equipment to drool
on, gizmos, burnt PCBs, techno-gos-
sip, tips and tools of the trade.
Happy reading!
16 TheRoadtoBatteryPower
Development of electric vehicles continues apace and
the enormous potential is clear. The key to the
success of electric vehicles lies, contrary
to early expectations, in lithium-ion
cells rather than in fuel cells.
This article has an overview
of current and future
technologies.
22 OBDAnalyserNG
The compact OBD2 Analyser in the June 2007 issue was an enormous success.
Now, it’s enhanced with a graphical display, Cortex M3 processor and an Open
Source user interface, the next
generation (NG) of Elektor’s
standalone analyser sets new
standards for a DIY OBD2
project.
Jan Buiting
Editor
167200710.037.png 167200710.038.png 167200710.039.png 167200710.040.png
CONTENTS
Volume 35
September 2009
no. 393
30 GPSDatalogger
projects
22 OBD Analyser NG
30 GPS Datalogger
36 R32C Application Board
This project allows you to log the path of a bike or car trip and load
the data into GoogleEarth™ using a common USB memory stick. The
hardware is based on the famous Parallax Basic Stamp and open for
further development.
48 Battery Monitor
54 ATM18
Mini Chess Computer
58 Getting Started with Em-
bedded C (part 3, inal)
64 ElektorWheelie
construction and driving
68 Power Charger
for ElektorWheelie
72 Design Tips: Quantum Die
technology
16 The Road to Battery Power
48 BatteryMonitor
e-labs inside
43 A dirt cheap mobile phone
44 Double-sided soldering
in relow oven!
46 “I’ll take it”
Yokogawa 2054 oscilloscope
This circuit can be used in any application where batteries are
charged and discharged. The circuit uses an LPC2103 microcontroller
connected to a 22-bit A/D converter to measure charge and discharge
currents, battery voltage, charge status (or available capacity) and the
instantaneous power being supplied to or drawn from the battery.
info & market
6 Colophon
8 Mailbox
10 News & New Products
74 Elektor PCB Service — FAQ
80 Elektor SHOP
84 Coming Attractions
infotainment
76 Hexadoku
77 Retronics:
Leak coaxial trough-line
VHF FM stereo tuner (1962)
167200710.041.png 167200710.042.png 167200710.043.png 167200710.044.png
Zgłoś jeśli naruszono regulamin