Circuit Cellar #296 2015 03
Circuit Cellar #296 2015 03
Circuit Cellar #296 2015 03
MARCH 2015
circuitcellar.com ISSUE 296
CIRCUIT CELLAR | ISSUE 296 | MARCH 2015
INTERNET OF THINGS
INNOVATION
Build a Microcontroller-Based
Monitoring System
MONTHLY
ENGINEERING CHALLENGE
Each month, you’re challenged to find an error in a
schematic or in code that’s presented on the challenge
webpage. Locate the error for a chance to win prizes and
recognition in Circuit Cellar magazine!
Participate: circuitcellar.com/engineering-challenge-netburner
Launch: 1st of each month
Deadline: 20th of each month
No purchase necessary to enter or win. Void where prohibited by law. Registration required. Prizes subject to change based on
availability. Review these terms before submitting each Entry. More info: circuitcellar.com/engineering-challenge-netburner-terms
2 CIRCUIT CELLAR • MARCH 2015 #296
DISCLAIMER
OUR NETWORK
SUPPORTING COMPANIES
Accutrace 7 Measurement Computing Corp. 25
MaxBotix, Inc. 79
ROBOTICS
CC COMMUNITY
06 : QUESTIONS & ANSWERS
Advances in Haptics Research
An Interview with Katherine J. Kuchenbecker
Details on the design and control of haptic interfaces
for applications such as robot-assisted surgery
14 : PRODUCT NEWS
15 : CLIENT PROFILE
Freescale Semiconductor (Costa Mesa, CA)
FEATURES
16 : Electronics Testing Platform (Part 2)
DDS Sweep Generator
By Gerard Fonte
How to construct a plug-in sweep generator board
26 : Infrared Learning
How to Mimic IR Control Signals
By Tommy Tyler
A small, inexpensive module for learning and
reproducing infrared signals
STAFF PICKS: INNOVATIVE ROBOTICS PROJECTS A LOOK BACK A THE MINI ROVER 7 ROBOT
circuitcellar.com 5
CONTENTS
CIRCUIT CELLAR: When did you first become interested in photography) to proclaim an ambitious goal for haptics
haptics and why did you decide to pursue it? research: we should be able to capture and reproduce how
surfaces feel with the same acuity that we can capture and
KATHERINE: I chose to become an engineer because I wanted reproduce how surfaces look.
to create technology that helps people. Several topics piqued When I entered the field of haptics in 2002, a lot of great
my interest when I was pursuing my undergraduate degree in research had been done on methods for letting a user feel a
mechanical engineering at Stanford, including mechatronics, virtual three-dimensional shape through a stylus or thimble.
robotics, automotive engineering, product design, human- Essentially, the user holds on to a handle attached to the end
computer interaction, and medical devices. I was particularly of a lightweight, back-drivable robot arm; the 3D Systems
excited about areas that involve human interaction with Touch device is the most recent haptic interface of this type.
technology. Haptics is the perfect combination of these A computer measures the motion that the person makes and
interests because it centers on human interaction with real, constantly outputs a three-dimensional force vector to give the
remote, or virtual objects, as well as robotic interaction with user the illusion that they are touching the object shown on
physical objects. the screen. I was impressed with the haptic demonstrations
My first exposure to this field was a “haptic paddle” lab in a I tried back in 2002, but I was also deeply disappointed with
Stanford course on system dynamics, but that alone wouldn’t how the virtual surfaces felt. Everything was soft, squishy, and
have been enough to make me fall in love with this field. Instead, indistinct compared to how real objects feel. That’s one of the
it was conversations with Günter Niemeyer, the professor who benefits of being new to a field; you’re not afraid to question
advised me in my PhD at Stanford. I knew I wanted a doctorate the state of the art.
so that I could become a faculty member myself, and I was I started working to improve this situation as a doctoral
inspired by the work he had done as an engineer at Intuitive student, helping invent a way to make hard virtual surfaces
Surgical, Inc., the maker of the da Vinci system for robotic like wood and metal feel really hard and realistic. The key was
surgery. Through my early research with Günter, I realized that understanding that the human haptic perceptual system keys
it is incredibly satisfying to create computer-controlled electro- in on transients instead of steady-state forces when judging
mechanical systems that enable the user to touch virtual hardness. I had to write a research statement to apply for
objects or control a robot at a distance. I love demonstrating faculty positions at the end of 2005, so I wrote all about
haptic systems because people make such great faces when haptography. Rather than trying to hand-program how various
they feel how the system responds to their movements. surfaces should feel, I wanted to make it all data driven. The
Another great benefit of studying haptics is that I get to idea is to use motion and force sensors to record everything
work on a wide variety of applications that could potentially a person feels when using a tool to touch a real surface. We
impact people in the near future: robotic surgery, medical then analyze the recorded data to make a model of how the
training, stroke rehabilitation, personal robotics, and personal surface responds when the tool moves in various ways. As
computing, to name a few. with hardness, high-frequency vibration transients are also
really important to human perception of texture, which is a big
CIRCUIT CELLAR: What is haptography? What are its benefits? part of what makes different surfaces feel distinct. Standard
haptic interfaces weren’t designed to output high-frequency
KATHERINE: I coined the term “haptography” (haptic vibrations, so we typically attach a voice-coil actuator (much
If you do, than we
will match the price
AND give you $100
towards your
next order!
Our Capabilities:
From same day quick turn prototype to production in under 10 days
Full CAD and CAM review plus design rule check on ALL �erber �les
Materials: Fr4, Rigid, Flex, Metal Core (Aluminum), Polymide, Rogers, Isola, etc.
HDI Capabilities: Blind/Buried Mocrovias, 10+N+10, Via-in-Pad Technology,
Sequential Lamination, Any Layer, etc.
Our HDI Advantage: Direct Laser Drilling, Plasma De-Smear Technology, Laser
Microvia, Conductive Plate Shut.
Take the Accutrace Challenge and see WHY OUR PRICING CANNOT BE BEATEN
www.PCB4u.com sales@PCB4u.com
8 CIRCUIT CELLAR • MARCH 2015 #296
like an audio speaker) to the handle, CIRCUIT CELLAR: How has the
near the user’s fingertips. When Haptics Group grown or evolved
the user is touching a virtual over the past few years? How
surface, we output data-driven many students, researchers, and
tapping transients, friction forces, professors are currently involved
and texture vibrations to try to with the group?
fool them into thinking they are
touching the real surface from KATHERINE: My group has both
which the model was constructed. grown and diversified over the last
After many years of research by my eight years. I started out with just
PhD students Heather Culbertson one PhD student, plus a bunch of
and Joe Romano, we’ve been able students who took my graduate-
to create the most realistic haptic level class on haptic interfaces.
surfaces in the world. Back in those days, I was delighted
My work in haptography is and a little surprised to find that
motivated by a belief that there students wanted to learn more about
are myriad applications for highly what I study. I like to incorporate
realistic haptic virtual surfaces. each student’s interests and ideas
One exciting use is in recording into the research we do together,
what doctors and other clinical which tends to lead us in lots of
COMMUNITY
was feeling during interactions with second half of the palpation project,
objects. My PhD student Rebecca my PhD student Jennifer Hui has been
Pierce recently led the development of writing algorithms to automatically
a wearable device that accomplishes determine whether a given sample
exactly this goal. It uses a direct- of tissue contains a tumor. Aided by
drive geared DC motor with an an undergraduate researcher, she
optical encoder to actuate and sense mounted the BioTac on a CNC mill and
a revolute joint that is aligned with recorded data while it methodically
the base joint of the operator’s index pressed into a large sample of
finger. Opening and closing your hand simulated tissue. Now she is using
opens and closes the robot’s parallel- machine learning principles to write
jaw gripper, and the motor resists the software that can process what the
motion of your hand if the robot grabs BioTac feels in a given location and
onto something. We supplement decide whether it feels like a tumor,
this kinesthetic haptic feedback with the edge of a tumor, or healthy tissue.
tactile feedback delivered to the pads In the long run, we’d like to combine
of the user’s index finger and thumb. these two approaches so that a
A voice coil actuator mounted in surgeon could control the tactile
each location moves a platform into A high-bandwidth MEMS-based accelerometer records the sensor, feel what it is feeling, and
and out of contact with the finger to sensations a dentist feels as she probes an extracted human receive an automatic second opinion
COMMUNITY
match what the robot’s tactile sensors tooth. Feeling these recordings lets dental trainees practice on whether that tissue contains a
diagnosing dental decay before they treat live patients.
detect. Each voice coil presses with tumor.
a force proportional to what the
corresponding robot finger is feeling, and the voice coils also CIRCUIT CELLAR: In your TEDYouth talk, you describe a
transmit the high-frequency vibrations (typically caused by project in which a dental tool is fitted with an accelerometer
collisions) that are sensed by the MEMS-based accelerometer to record what a dentist feels and then replay it back for a
embedded in the robot’s hand. We track the movement of this dental student. Can you tell us a bit about the project? How
wearable device using a Vicon optical motion tracking system, it started and how it works?
and Graspy follows the movements of the operator in real
time. The operator sees a video of the interaction taking place. KATHERINE: This project spun out of my haptography
We’re in the process of having human participants test this research, which I described above. While we were learning
teleoperation setup right now, and I’m really excited to learn to record and model haptic data from interactions between
how the haptic feedback affects the operator’s ability to control tools and objects, we realized that the original recordings had
the robot. value on their own, even before we distilled them into a virtual
Palpation for Robotic Surgery: My PhD student Will McMahan model of what the person was touching. One day I gave a lab
and I previously invented a new way to add haptic feedback to tour to two faculty members from the Penn School of Dental
robotic surgery systems like the Intuitive da Vinci; we use tiny Medicine who were interested in new technologies. I hit it off
accelerometers to measure the high-frequency vibrations of with Dr. Margrit Maggio, who had great experience in teaching
the robotic instruments, and we use voice-coil actuators to play general dentistry skills to dental students. She explained that
those vibrations for the surgeon to feel in real time. While we’re some dental students really struggled to master some of the
still trying to convince a company to incorporate our invention tactile judgments needed to practice dentistry, particularly
into their robotic surgery system, we’ve continued to work on in discerning whether or not a tooth surface is decayed (in
new ways of adding haptic feedback to robotic surgery. One popular parlance, whether it has a cavity). A few students and
big drawback to minimally invasive surgery is that the surgeon I went over to her lab to test whether our accelerometer-based
can’t tactilely examine soft tissue for anomalies such as tumors. technology could capture the subtle details of how decayed
We have been addressing this problem in two distinct research vs. healthy tooth tissue feels. While the recordings are a
thrusts, both of which use a SynTouch BioTac biomimetic tactile little creepy to feel, they are super accurate. We refined our
sensor to measure rich haptic data during interactions with approach and conducted several studies on the potential of this
simulated samples of soft tissue. In the first project, Claudio technology to be used in training dental students. The results
Pacchierotti (an Italian PhD student visiting my lab) worked were really encouraging, once again showing the potential that
with other students to attach the BioTac to the end of a da haptic technology holds for improving clinical training.
Vinci instrument, so we could use it to palpate silicone rubber
tissue samples that contained simulated tumors. We then CIRCUIT CELLAR: You were a TA in the Stanford Product
created a custom tactile feedback device that used three small Realization Lab (PRL). What sort of work did you do there?
RC servo motors and an ALPS ForceReactor vibration actuator
to move a platform below the user’s fingertip. We mounted KATHERINE: When I was an undergrad, I thought the
this tactile device on the hand controller that the surgeon uses PRL was the coolest place on Stanford campus; it’s a giant
to control the instrument to which the BioTac was attached. machine shop, rapid-prototyping lab, CAD loft, model shop,
We then wrote an algorithm that continually processes the welding room, and foundry. The PRL is staffed by ubercool
finger deformations and vibrations that BioTac feels and drives Shop TAs—engineering grad students tasked with teaching
the tactile device to output an approximation of these haptic other students how to use all that fancy equipment without
signals for the operator to feel. It works really well! In the injuring themselves, each other, or the machines. Given my
10 CIRCUIT CELLAR • MARCH 2015 #296
esteem for their profession, I applied While it went very quickly, this year of
to become a Shop TA as soon as I got postdoctoral research was a lovely oasis
into grad school, and I feel incredibly between the stress of finishing grad
lucky that they hired me. Being a Shop school and the strain of starting my lab
TA was an amazing learning experience. at Penn. My favorite takeaways from
I worked five four-hour shifts each Johns Hopkins were the friendships
week, sometimes teaching structured I made there, and I am especially
labs and other times running open shop grateful for Allison’s mentorship. She’s
sessions where I would be hounded by now a professor at Stanford, and two of
dozens of students who needed help my former students are working in her
getting their projects done. I got to lab—what fun!
teach manual milling, manual turning,
CNC milling, oxy-acetylene welding, and CIRCUIT CELLAR: Your work is
sand casting; for this last one, I learned becoming increasingly publicized.
to run the furnace to melt and then pour You have the TEDYouth talk, and the
molten bronze! My favorite time to be in Haptics Group continues to grow.
the shop was the Friday night session, Do you frequently get requests to
which ran from 7 pm to 11 pm. Working design solutions to problems? Are you
on so many different projects gave me frequently pitched product ideas or
great practice at mechanical design and business opportunities? For instance,
COMMUNITY
problem solving, and it showed me that are medical teams, virtual reality
I absolutely love teaching and working startups, and other groups contacting
This NeoDriver prototype lets the user change the angle
with students. Being around such a of the suture needle in the jaws of the tool simply by
you for prototyping and consulting
creative and dedicated group of people adjusting the angle of a knob; stainless steel wires run work?
was inspiring, as was having such good from the knob along the left and right sides to rotate a
resources for manufacturing. During tiny disk embedded in the jaws. KATHERINE: I couldn’t believe the
my time as a Shop TA, I designed and amount of attention I got after my
an organically shaped pendant lamp and CNC milled it out TEDYouth talk about haptics went live on TED.com. I initially
of aluminum and clear acrylic. I also worked with two other tried to send a personal response to every email, but that
students and a urologic surgeon to create the NeoDriver, a quickly got to be too much. I am grateful that people do still
surgical needle driver that allows the surgeon to re-angle the contact me about interesting projects after finding my TED
suture needle in the jaws of the tool with just the touch of a talk. For example, my students and I have recently been doing
finger, without needing his or her other hand. a project with researchers from a large European company;
if I told you about this project, I’d have to kill you (as my Dad
CIRCUIT CELLAR: Tell us about your postdoctoral research at would say), but I can say that working on a totally new area has
Johns Hopkins. been intellectually invigorating. Most inquiries from startups
don’t go very far, but I recently agreed to work with Steven
KATHERINE: After I finished my PhD, I spent one year doing Domenikos, an experienced entrepreneur from Boston, to try
research with Professor Allison Okamura at the Johns Hopkins to create a prototype for a new commercial device related to
University. She is a worldwide expert on haptics, and I loved haptics. Again, I can’t give any details, but it is fun to try to
seeing the fascinating range of projects she and her lab were create something that would really touch the masses.
tackling—everything from human motor control to steerable I do encourage people to contact me with any ideas
needles. and questions they have about haptics. My email address
The main focus of my work that year was related to the is kuchenbe@seas.upenn.edu I’ll try to send you a personal
Revolutionizing Prosthetics program funded by DARPA. Many response, but please don’t be offended if that takes a few
people in haptics agreed that next-generation upper-limb weeks!
prostheses should provide the wearer with haptic feedback
such as grip force or the making and breaking of contact. CIRCUIT CELLAR: What is the “next big thing” in the field of
Thinking farther ahead, we were curious about whether haptics? Is there a specific area or technology that you think
prosthetic devices should give the wearer an artificial sense will be a game changer?
of proprioception, which is how you can feel the position and
orientation of your limbs when you close your eyes. KATHERINE: Of course this depends on where you’re looking.
Proprioception is known to be important in human motor While cell phones and game controllers have had vibration
control, but no one had studied whether it might help humans alerts for a long time, I think we’re just starting to see high-
control artificial limbs. Because we wanted to compare perfect quality haptic feedback emerge in consumer products. Haptics
proprioception with no proprioception, I created an apparatus can definitely improve the user experience, which will give
that simulated this scenario by giving a user with an intact haptic products a market advantage, but their cost and
limb control over a virtual prosthetic device. We found that implementation complexity need to be low enough to keep the
proprioceptive feedback did indeed seem to help users! In product competitive. On the research side, I’m seeing a big
addition to this main project, I supervised three students in move toward tactile feedback and wearable devices. Luckily
creating a tactile fingertip device that was an early pre-cursor there are enough interesting open research questions to keep
to the tactile teleoperation projects that I discussed above. my students and me busy for 30 more years, if not longer!
A new wave
of thinking
WaveSurfer 3000
with MAUI
teledynelecroy.com/newwave
12 CIRCUIT CELLAR • MARCH 2015 #296
EDITORS' PICKS
Robotics
INERTIAL ROLLING ROBOT
Jeff Bingham & Lee Magnusson
Circuit Cellar 200, 2007
This H8/3664-based rolling robot is capable of inertial movement.
A DC electric motor is attached to a pendulum and suspended inside
an inflated ball, which provides the driving force. As the engineers
explain, “The robot employs a single driven pendulum inside of a
sphere. With 2 degrees of freedom, it drives and tilts the ball. With
this geometry, the robot can reach high speeds, steer, and jump.
In addition, it doesn’t get stuck when it flips over. “
COMMUNITY
These articles and others on topics relating to Robotics are available in the
CC Webshop. Go to www.cc-webshop.com.
The embedded Ethernet board, speed control, and servos for controlling steering, camera pan,
and tilt are wired to a Microchip Technology DM300027 16-bit, 28-pin development board. A
WIZnet board is connected to the DM300027 development board by wire wrapping the header
connector pins directly. The two boards communicate via the SPI bus.
EDITORS' PICKS
ROBOT NAV & CONTROL SUBSYSTEM
Guido Ottaviani
Circuit Cellar 224, 2009
You can build navigation control subsystem for an
autonomous differential steering explorer robot. The
system’s software manages wheel speed, closed-loop
control with a PID algorithm, dead-reckoning by odometry
(in both theoretical and practical forms), field mapping,
navigation, motor control, and more. The subsystem
includes Guido’s dsPIC-based navigation control Board (the
“dsNavCon”) and an STMicroelectronics L298-based dual
H-bridge board for controlling the geared 12-V motors.
Rotary encoder 1
LEDs
NiMh Battery pack
12 × AA cells
2,700 mAh
Motion feedback
14.4 V
The entire navigation control subsystem
QEI/IC
5V PWM
14.4 V Motion controller 1 H-Bridge 1 Motor 1
ADC
VREF Current sensing
OSC 0 INT 0 RB3 INT 1 RX TX
Preregulator 3.3 V
9V
Serial 2 (RX2/TX2)
COMMUNITY
RF
CS 1 TX EN 1 Modem
9V
5V
5V
OSC Clock
7.37 MHz 1 ms Supervisor TX 1 RX 1
LEDs
On-board I2C
power VREF
supply CS 2 TX EN 2
Main board
3.3 V
OSC 0 INT 0 RB3 INT 1 RX TX 14.4 V
5V
PWM
Navigation control system
Motion controller 2 H-Bridge 2 Motor 2
VREF
ADC Current sensing
QEI/IC
Motion feedback
LEDs
The motors, encoders, and H-bridges. The metal box at the top
contains a battery pack, 9-V preregulators, and PI filters. It also
Rotary encoder 2
PRODUCT NEWS
user interface (GUI) and easily configurable general-purpose IO 2.85 to 6 V. With an adjustable output voltage between 0.8 and 5 V, you
ports that even allow for host MCU/processor-free usage. The can use one device to build a single 6-A or dual output 3-A power supply.
MGC3030’s on-chip 32-bit digital signal processor executes real- Features and specifications: dual 3-A or single 6-A switching power
time gesture processing, which eliminates the need for external supply; high efficiency, up to 95°; wide input voltage range: 2.85 to 6 V;
cameras or controllers for host processing and allows for faster adjustable output range: 0.8 to 5 V; internal digital soft-start: 1.5 ms;
and more natural user interaction with devices.. external synchronization up to 4 MHz; and overcurrent protection.
The MGC3030 featuring GestIC technology is available in a 28- The ISL8203M power module costs $5.97 in 1,000-piece quantities.
pin SSOP package. Each unit costs under $2 each in high volumes. The ISL8203MEVAL2Z evaluation costs $67.
CLIENT PROFILE
Freescale Semicondcutor
2100 East Elliot Road, Tempe, AZ 85284
www.freescale.com/Sensors
CONTACT: Freescale.com/Support SPECIAL OFFER: Take your sensor design to the next level!
Receive 50% off on the Freescale Development Platform for
FEATURED PRODUCTS: Freescale is a global semiconductor 9-Axis Sensor Solution. Visit freescale.com and search for kit
company enabling the Internet of Tomorrow. As a leader number FRDM-STBC-AGM01. Select “Buy Direct” and enter
in processing and sensing solutions, we are driving a more code FSLND425 once the kit is in your shopping basket. One
innovative and connected world for the future. Freescale kit per person. Discount coupon valid only for purchases by
sensors, smart digital networks and microcontrollers provide persons 18 years of age or older made online at Freescale
complete solutions for a secure Internet of Tomorrow. Buy Direct at freescale.com on or before December 31, 2015.
Expanding on its more than 35-year heritage of sensor
innovation, Freescale is the only company supplying Internet
of Tomorrow solutions from sensors (edge) to network to
cloud.
Today
JOIN THE
EVOLUTION. 1905
1945
2005
Learn more
Electronics Testing
Platform (Part 2)
FEATURES
DDS Sweep
Generator
50 PPM. A software marker/cursor is provided fully integrated system for audio and other
that identifies a precise frequency sweep- relatively low-frequency work (less than
point on your oscilloscope is extremely useful. 1 MHz). This meant driving an 8-Ω speaker
Up to eight setups can be stored on EEPROM. directly, small frequency steps (0.3 Hz), and
software level controls.
AMPLIFIER DESIGN APPROACH The second goal was to provide the
FEATURES
The AD5930 does not provide much output maximum frequency range available for
drive capability. The peak-to-peak (PP) output RF applications (25 MHz/Nyquist). I wanted
voltage is only about 0.5 V and it can only a high-level output (±10 V unloaded) and
drive with about 3 mA. Obviously this is capable of driving the standard 50-Ω loads. It
not sufficient for most applications and an also had to be stable driving any type of load.
amplifier must be added. Since I don’t like choosing which is best,
There were conflicting goals in this I provided both amplifiers (see Figure 1).
amplifier design. The first was to provide a The low-frequency amplifier uses a simple
FIGURE 1
This is the sweep generator board with low-frequency and high-frequency amplifiers.
18 CIRCUIT CELLAR • MARCH 2015 #296
PHOTO 1
Jumpers can be used instead of a
DPDT switch for single amplifier
operation.
FEATURES
5-V, 0.25-W stereo audio amplifier (LM4880) steps are about 0.3 Hz (using a 5-MHz clock).
to drive both channels. It operates up to 1 The high-frequency amplifier uses a
MHz, but not very well. I used a Microchip National Semiconductor LM6181 current
Technology MCP42151 digital potentiometer as feedback op-amp. (The typical op-amps
a volume control. Initially, I wanted to use this found in most hobbyist designs are voltage
for amplitude modulation (AM). However, this feedback op-amps.) Current feedback (CF)
turned out to be impractical. The frequency op-amps have the very nice feature that the
PHOTO 2
J1 is mounted on the bottom of the
PCB and consists of five pieces of SIP
socket strip.
circuitcellar.com 19
FEATURES
of over 1 GHz. While a few such devices were
found none could drive 50 ohms.) A positive
and negative 14-V supply is also required for
this amplifier. Heatsinks are shown and listed
in the parts list for the regulators but are not
really required. They run cool.
There are a couple of important points
to note about this CF circuit. The feedback
resistor (R23 or R29) is specified and fixed
at 820 Ω by the manufacturer. To change the
gain, resistor R22 or R28 can be changed as
required. The resistor-capacitor (RC) network
(R26 + C21 or R27+C22) is used to stabilize
the op-amp by reducing the high-frequency
gain. The 51-Ω output resistor (R21 or R25)
does double duty. The first is to isolate the
op-amp from capacitive loads which could PHOTO 3
lead to instability. The second is to limit the The TSSOP footprint for U1 is expanded for an adapter.
output current in case of a short circuit.
CF op-amps tend to run hot, so a
heatsink (with silicone grease) is an absolute
requirement. Running into an open circuit (no
load), the amp outputs 22 V PP and warms up to
http://www.emacinc.com/products/system_on_module/SoM-A5D36
Since 1985
OVER
30
YEARS OF
about 110°F (with the heatsink). With a 51- Ω the setting of one can affect the level of the
load, the output is 10 V PP and the temperature other. For that reason a switch was added. If
rises to a reasonable 141°F. Running into you choose to incorporate only one amplifier,
10 Ω provides 3 V PP and a temp of 162°F. A the switch can be eliminated and jumpers can
short on the output pushes the temperature be used instead (see Photo 1).
up to 170°F. (All of these measures had an Note that the clock oscillators are
FEATURES
ambient temperature around 70°F.) It is not independent of the amplifier. You can choose
recommended to use a load of less than 50 to use either the 5- or 50-MHz clock with either
Ω. Note that a socket is required; otherwise, amplifier (via software). Or, you can choose
it may not be possible to slide the heat-sink to use only one oscillator and not install the
under the amplifiers. other. Also, the datasheet, schematic, and
Since digital pots do not work well at high PCB show C6 and C7. These filter out clock
frequencies (above 1 MHz), manual pots are noise from the AD5930. However, they also
needed to set the output level. And since attenuate high-frequency signals (greater
these pots are in parallel with the digital pots, than10 MHz). Since the low-frequency option
doesn’t work at those frequencies, they can
be omitted. And since the high-frequency
amplifier has its own filter, they again can
be omitted. Positions are left for them on the
PCB just in case of some future need.
CONSTRUCTION
First, you need to decide which options you
want. If you don’t want the high-frequency
option, you can eliminate the parts in the box
in Figure 1 and use two jumpers for SW1.
If you don’t want the low-frequency option,
you can eliminate U3, U4, and the associated
parts. Again, you can use two jumpers for
SW1. You can choose to operate with only
one clock oscillator, either 5 or 50 MHz. The
5-MHz clock provides 0.3-Hz steps and has a
Nyquist limit of 2.5 MHz (usable to about 1 to
1.5 MHz). The 50-MHz clock has 3-Hz steps
and a Nyquist limit of 25 MHz (usable to about
10 to 15 MHz).
RXXX is used if only one oscillator is
present. This lets the software know which
clock is available. It should be 332K to enable
PHOTO 4
the 50 MHz clock and 182K to enable the 5
Shielded wire and good connectors attach the PCB to the outside world.
MHz clock. If it’s absent, both oscillators are
assumed to be available and are software
selectable.
Most of the construction is pretty
straightforward but there are several
important points to note. The first is that the
inline socket-strips that connect to the base-
unit are mounted on the bottom of the board
(see Photo 2). Note that J1 is actually made up
of five separate socket strips. The reason for
this is space. Using a full row of pins on the
inside makes routing difficult and the unused
pads take up a surprising amount of space.
The second point is that U1 and U5 are
only available as surface-mount parts (SMT).
SMT part U5 is the stereo amplifier and is
an eight-pin SOIC. It has leads on 0.050″
centers which is half the spacing as standard
DIP through-hole parts. Most designers
won’t have too much trouble soldering that.
PHOTO 5
However, U1 the sweep-generator chip, has
A digital sweep looks a lot like an analog sweep.
a 20-pin, TSSOP footprint with the leads on
circuitcellar.com 21
FEATURES
Some SMT (Surface Mount Technology) parts are you can make one like I did.) The soldering tip at the left
simply impossible for the typical hobbyist to work with. in Photo 2 is the standard “fine” tip that is actually about
For example, soldering leadless chip carriers and ball-grid 0.055” (1.4 mm). The tip to the right of that is one that I
devices can only be accomplished with some sort of solder- filed down to a true needle point (measures about 0.015” or
reflow oven. Clearly this not practical for the vast majority 0.4 mm). This is about the same as the 1/64” tips that are
of readers. However, manufacturers generally provide at now available for some irons.
least one version of their product in a leaded package. And The second necessity is to use ultra-thin solder. The
it is certainly possible for hobbyists to incorporate these solder on the far right is 0.062” (1.6 mm) from the good
modern devices without too much expense. old days when vacuum tubes ruled. The middle solder is
0.28” (0.7 mm) and is the current standard for general
SMT FORMATS work. The solder at the left is 0.015” (0.4 mm) in diameter.
There are many different types of SMT packages. Photo It is possible to find this solder in “hobby packs” for a
1 shows several as well as a standard Dual In-line Package few dollars rather than one-pound spools for $40. (Radio
(DIP) IC. There are lots more. Shack has 0.015” solder “with silver” for about $6. The
Small Outline Integrated Circuit (SOIC) parts have a lead part number is 64-035.) A small amount will solder a lot
pitch of 0.050” (one pin per 0.050”). This is half the spacing of TSSOP devices. Note: I haven’t tried the more common
as a standard DIP. This can be soldered with a regular fine- 0.020” (0.5 mm) solder.
point soldering iron and common 0.030” diameter solder if
care is taken. However, it is basically impossible to solder MAKING IT WORK
any part with a smaller lead pitch this way. So, don’t waste The two key concepts are: you want to be able to heat
your time, parts and energy trying. one pin and only one pin at a time and apply solder to only
Obviously, the important aspect for us is how close the that pin. That’s why you have to have a needle point and
pins are to each other (lead pitch). The actual number of extra-thin solder.
pins and whether the IC has leads on two or four sides The first step is to melt some solder onto a corner pin
isn’t that significant. Generally, “fine pitch” parts space the (Photo 3a). Obviously take care not to make any solder
leads from 0.0256” (0.65 mm) to 0.0197” (0.50 mm). bridges to the adjacent pad. You will find that a lower heat
Note that TSSOP (Thin Shrink Small Outline Package) setting works well.
does NOT define the lead spacing. The 20 pin TSSOP The next step is probably the hardest part of the whole
in Photo 1 has a lead pitch of 0.65mm while the 48 pin procedure. You have to re-heat only the solder and carefully
TSSOP’s is 0.50 mm. The Shrink Small Outline Package align the chip to the rest of the pads (Photo 3b). For a small
(SSOP) is usually 0.0250” (0.635 mm), which is one quarter PCB, like the one shown, I find is useful to use some double-
the spacing as the standard DIP. While these differences sided tape to hold the PCB onto something. I use card-stock.
aren’t really important for soldering, they are absolutely But you can tape it to your desk or a piece of cardboard or
critical when laying out a PCB. whatever suits you. Trying to adjust the part with a moving
PCB is simply making a difficult task harder. The alignment
REQUIRED EQUIPMENT can be very slightly off if there is enough flexibility in the
A soldering iron with adjustable heat is useful but not one fixed pin to allow alignment with the rest of the pins.
absolutely required. However, if you are a serious hobbyist But, obviously, it’s better to be as perfect as possible in this
step. It will make all later steps that much easier. Note: it is
important to view the registration (alignment) of the IC to
the pads from above. If you look at it from an angle it may
appear not to be registered properly (see Photo 3c).
Now you can solder the pin that is diagonal to the
PHOTO 1: PHOTO2:
A common assortment of package types A comparison of soldering iron tips and solder
22 CIRCUIT CELLAR • MARCH 2015 #296
previously soldered pin (shown in Photo 3c). You can use However, here is another little trick. Don’t solder the
whatever method you prefer to do this. However, approach pins in sequence. This is because the pin you just soldered
the pad from the open side so there will be less chance of is still hot. This heat and the proximity of the iron can be
making solder bridges. Note that Photo 3c is seen from hot enough to melt the solder and make a solder bridge. So,
a different angle than in Photo 3b. This angle makes it skip around a bit. I solder every other pin and then go back
FEATURES
appear that the chip is not registered properly. But as seen to solder the remaining pins. However, if the iron is too hot
from above in Photo 3b, the IC has good alignment with or if you heat the pin too much you may need to skip two
the pads. pins or allow the joint to cool before continuing. You’ll know
Here’s the trick to soldering the remaining pins. Place things are too hot if you get solder bridges.
the soldering iron tip vertically onto the small horizontal
part of the lead as shown in Photo 3d. This requires a DROPPING THE BRIDGE
different method of holding the iron and brings the hot There will be times when you get solder bridges. It
metal close your wrist. So be careful. happens. First eliminate as much solder as possible with
While keeping the iron vertical and resting on the pad a copper-braid product (like Solder Wick) from the pads.
(the weight of the iron is enough), add a little solder (see Often this will take care of the problem. What’s more you
Photo 3e and Photo 3f). Bring the solder to the pad near probably don’t need to re-solder these leads. Look closely,
the lead. You don’t have to touch the lead. The solder will most likely you will see a film of solder remaining. If you
melt on the pad and wick to the lead. Once this happens can’t lift the pin with a gentle pry with a razor-knife (like
remove the solder and soldering iron. You don’t need, or an X-Acto knife) then the solder joint is fine. The amount
want, much solder. You can then move on to the next pin of solder shown in the photographs is many times what is
to solder. really needed.
If the bridge remains,
a) b) then heat one pin as
before and draw the
knife between the pins.
You don’t need to press
down hard and score the
PCB. All you want to do is
to separate the solder’s
surface tension. Once
this happens, you will see
a space open up. Allow
d)
this pin to cool and then
c)
heat the other pin. This
should draw some of the
remaining solder to that
pin and open up the space
even more. Also, the knife
blade should be cold. If
it’s hot, the solder will just
wick around it and not
remove the bridge.
f) PRACTICE HELPS
It doesn’t take much
e) to work with fine-pitch
devices. You could spend
a couple of hundred
dollars for a special
soldering system. Or you
could spend about $12
and upgrade your existing
soldering iron with a new
tip and some very thin
solder. It does require
good close-in work and a
steady hand. But a little
PHOTO 3
practice goes a long way.
First add some solder to a corner pin (a). Attach the chip (b). Solder the diagonal pin (c). Place the iron tip vertically on the IC
lead (d). Add just a little solder to the pad (e). Twenty TSSOP pins with 0.0256” (0.65 mm) lead pitch soldered in less then 10
minutes (f).
circuitcellar.com 23
FEATURES
To make things easier, I expanded the
20-pin TSSOP footprint to a 20-pin, wide DIP
footprint. This allows the use of a small SMT
adapter board with SIP socket strips (see
Photo 3). For prototyping it was necessary to
be able to remove the chip as required. But
many find it easier to solder to a smaller and
inexpensive PCB than a larger and costlier
one. Whatever you choose, always mount
the SMT parts on the PCB first. Their small
footprints make soldering it hard. Don’t make
impossible by putting obstacles in the way.
The rule of thumb that says to mount the parts
from low to high (height-wise) is a good rule
here. The base unit socket strip connectors
are considered “low” because only the ends
of the pins stick up on the component side of
the PCB.
PHOTO 6
You have lots of options for wiring to the
In burst mode, the signal is only on for part of the step.
side panel. I choose to use two, quad RCA panel
mount jacks for simplicity and low cost (see
Photo 4). You can use whatever connectors
that suit you best. Shielded wiring is not Manual, which is posted on the Circuit Cellar
absolutely necessary, but the performance FTP site. But a general overview is useful.
is a little better at the high frequencies. I Instead of specifying a start and end
chopped up a couple of spare audio cables. point (like an analog sweep generator), the
It was considerably cheaper than buying a start frequency, step size, and number of
lot of shielded wire. Flexibility of the wire is steps define the sweep range. Since the start
probably the most important consideration. frequency and step size are 24 bits, they
You can use SIP socket-strips to mate require two registers each. So, these five
with the connectors. They are cheap and easy registers precisely define the sweep range.
to use. However, they are not very rugged. Note that the sweep is in discrete frequency
Plugging them in and removing them a few steps rather than a continuous sweep. If the
times caused problems. There’s nothing worse steps are close together, there isn’t much
than an intermittent connector. I chose to go practical difference between an analog sweep
with quality socket-pins and shells. The cost and a digital sweep (see Photo 5). Of course,
wasn’t very much but it did take considerable
time to properly assemble them (see Photo 4).
OPERATION
The operation of a DDS sweep generator
is different from an analog one. An analog
sweeper is basically a voltage-controlled
oscillator (VCO) governed by a ramp generator.
The start and end voltages of the ramp are
adjustable and define the frequency range
of the sweep. The speed of the ramp is also
adjustable and controls the sweep rate. As
you can see, it’s pretty straightforward.
The DDS sweep generator is essentially
a small computer in itself. It’s completely
controlled with digital words. In order to
create what you want, you have to load eight,
12-bit registers. The details of the registers
PHOTO 7
are available in the Analog Devices AD5930 As a fixed-frequency generator, it’s pretty accurate. This 2-PPM accuracy is much better than the specified
datasheet, as well as from the Operator’s 50 PPM.
24 CIRCUIT CELLAR • MARCH 2015 #296
M E A S U R E M E N T C O M P U T I N G
Great 16-Bit
it became an operating system consisting of
about 9,000 lines of code and comments. If
you choose to print it out, you’ll need over 200
sheets of paper in your printer. It’s available
for free (non-commercial use) at the Circuit
Cellar FTP site. The side-panel layout/graphics DAQ Solutions
FEATURES
and comprehensive operator’s manual are
available, too. Easy to Use • Easy to Integrate • Easy to Support
There is one special aspect to the software.
It creates a marker/cursor for an oscilloscope.
NEW
This is extremely useful for determining the
precise frequency at a particular point in the
sweep (see Photo 8). In this case you can
quickly plot the impedance curve of a 2.5″
speaker and identify the minimum impedance
frequency.
Ethernet, Multifunction High-Speed, Multifunction
Since the marker is software controlled
it is completely independent of the sweep E-1608 USB-1608GX-2AO
generator. Therefore, there are some Only $499 Only $799
limitations. First, it can’t be set for the first • 8 SE/4 DIFF analog inputs • 16 SE/8 DIFF analog inputs
two or last two frequency steps. Second, there • 250 kS/s sample rate • 500 kS/s sample rate
is a software latency of about 3 µs. This means • 2 analog outputs • 2 analog outputs
that for proper accuracy, your step length • 8 digital I/O, 1 counter • 8 digital I/O, 2 counters
should be longer than this (150 clock cycles
at 50 MHz or 15 clock cycles at 5 MHz). Lastly,
there is a re-sync period between sweeps of
about 15 µs. This is seen as an inactive period
from the end of one sweep to the start of the
next sweep. Generally, these limitations are
not too significant.
Simultaneous Sampling Low-Cost, Multifunction
POWERFUL TESTING SOLUTION
This DDS sweep generator is a very flexible USB-1608FS-Plus USB-231
and powerful test instrument that is very Only $399 Only $249
useful for any type of frequency work. It can do • 8 simultaneous analog inputs • 8 SE/4 DIFF analog inputs
things an analog sweeper can’t. For example, • 400 kS/s overall sample rate • 50 kS/s sample rate
Photo 9 shows a “sweep” where each step • 100 kS/s max for any channel • 2 analog outputs
is only a fraction of the period. Ten different • 8 digital I/O, 1 counter
• 8 digital I/O, 1 counter
frequency steps form one cycle. Note the angle
change at the end of the cycle/sweep. And the
DDS provides digital precision in frequency
accuracy as well as low distortion. Once you
use a sweeper, you’ll wonder how you ever got
along without one.
Coming soon: a micro-ohmmeter/micro-
voltmeter plug-in board for the base unit.
High-Channel Count Simultaneous Sampling
USB-2533 USB-1602HS
ABOUT THE AUTHOR Only $1,149 Only $1,999
Gerard Fonte is the principal engineer at The • 64 SE/32 DIFF analog inputs • 2 SE analog inputs
PAK Engineers and has nearly 30 years of • 1 MS/s sample rate • 2 MS/s sample rate
hands-on experience that includes missile • 2 timer outputs • 3 quadrature detectors
guidance systems, electronic warfare, gravity • 24 digital I/O, 4 counters • 4 counters
navigation, and projects that “don’t exist.” He
has well over 100 publications. Gerard was mccdaq.com
awarded the Engineers’ Council Outstanding
Engineering Merit Award in 2006 for his work Contact us
on Egyptian pyramid construction. He holds
1.800.234.4232
a BA degree in Psychology and a MS degree
in Natural Science. ©2015 Measurement Computing Corporation, 10 Commerce Way, Nor ton, MA 0276 6 • info@mccdaq.com
26 CIRCUIT CELLAR • MARCH 2015 #296
Infrared Learning
How to Mimic IR
Control Signals
FEATURES
PHOTO 2
L102 learning remote circuit board
FEATURES
in a Chunghop Electronics Model L102 Learning
Remote Control (see Photo 1). This remarkable
little remote can learn and accurately mimic
up to 11 different IR signals of almost any
protocol at carrier frequencies from 20 to
80 kHz or more. Learned signals are saved
in nonvolatile memory so that nothing is lost
when power is off. In this article, I’ll explain
enough about the Chunghop remote to add
reliable and comprehensive IR learning and
signaling to your project. You can accomplish
this on a low budget without knowing anything
about IR remote controls. Another perk is that
you’ll use less than half a cubic inch of space
in your gadget.
Unfortunately, the chip with Chunghop’s
proprietary OTP firmware installed is not sold
separately. But you’ll easily find a “Chunghop
L102” remote on the Internet for less than
$8 including shipping. The price is a bargain,
considering that the remote contains nearly
everything you need to solve this problem.
FEATURES
will need to be changed in future. If
the chances of a change are negligible,
you can enjoy the ultimate in simplicity D2
service or replacement.
A final comment on Chunghop. When
searching for the Model L102, you may run
across a Model RM-L7, which is a smaller, egg-
shaped learning remote with seven buttons
instead of 11. It sells for slightly less than the
FEATURES
FIGURE 4
Example of learned Sony12 infrared signal with 40-kHz carrier
FIGURE 5
Example of learned RCA infrared signal with 57-kHz carrier
MIXED SIGNAL
OSCILLOSCOPES
4 ANALOG + 16 DIGITAL CHANNELS
RAPIDLY DEBUG COMPLEX MIXED SIGNAL DESIGNS
• USB 3.0
• ULTRA DEEP MEMORY
• SEGMENTED MEMORY
RAPID
• RA
R PID TRIGGERS
3204D MSO 3205D MSO 3206D MSO 3404D MSO 3405D MSO 3406D MSO
Channels 2 analog, 16 digital 4 analog, 16 digital
Bandwidth 60 MHz 100 MHz 200 MHz 60 MHz 100 MHz 200 MHz
Buffer memory 128 MS 256 MS 512 MS 128 MS 256 MS 512 MS
Max. sampling rate 1 GS/s
Signal generator Function generator + Arbitrary waveform generator
Digital inputs 100 MHz max. frequency, 500 MS/s max. sampling rate
www.picotech.com/pco538
32 CIRCUIT CELLAR • MARCH 2015 #296
The Sentry
Project
FEATURES
PHOTO 1
The Sentry system uses commercial IR motion sensors (lower left)
together with a customer vibration sensor (lower right) to determine
where an individual is within a building. The base unit (top) integrates
reports from these sensors to generate alerts to a caregiver.
FEATURES
These sensors are placed at key locations in
a resident’s home to monitor movement from Vibration/microwave/sonic…
sensors/transmitters
room to room or within rooms. The vibration 89LPC936
Microprocessor Ethernet
sensors are placed in favorite chairs/couches connection
or in the bed to determine if the furniture
is occupied and if there is normal activity.
All of these sensors are battery powered RF
and report over an RF link. The RF reports Rx WIZ550io
from these devices are received by a base Internet
interface
unit which then compares the resident’s Bunker Hill
wireless
location and activity to a set of rules that alert system
FIGURE 2
The microprocessor accomplishes all
of its tasks while using only a few of
the available port pins.
FEATURES
FEATURES
constantly rewrite these values in EEPROM
since it has a limited number of write cycles
available. I also wanted these pointers to be
maintained during power outages so the RAM
in the clock chip was the perfect solution. I
also use this RAM to store the user’s selection
of Daylight Saving Time tracking just because
it logically belongs with the clock data. I
have also used this RAM for a few other key The codes sent are unique to the address of
variables but these could have gone equally the different units available. This uniqueness
as well to the EEPROM. of codes allows the Sentry to identify which
I selected the Microchip Technology sensor is reporting and associate the sensor
24LC1025 EEPROM for bulk data storage. The to a room. Setting up the sensor address table
24LC1025 I 2C serial EEPROM device provides is automatic. Each time a new sensor is seen,
1 Mb (128 KB) of storage arranged as 8-bit it is recorded and available for naming and
words in 128-byte pages. I logically divided associating to a room.
this chip into two sections of 64 KB each. The on-off keyed sequence of these
The lower section stores all the configuration transmissions is not a very robust data stream
information for my project, while the upper and is subject to significant noise. Fortunately,
64 KB is used for a circular buffer of time the coding of the transmission sequence
tagged history data. This chip provides 1 allows for noise to be discriminated from the
million write cycles with a 3-ms page write signal by the patterns employed. Only select
time. When evaluating the number of write sequences of 1s and 0s are valid, and the
cycles possible, you need to keep in mind that entire sequence must be followed by a 16-ms
any write to a page forces the entire page quiet period. The flipside to this is that a valid
to be rewritten, so don’t just write a few signal may be missed by noise interfering with
bytes consecutively to the chip and expect to it. To minimize this, the codes are sent a total
achieve the 1 million cycles. One other feature of 16 times and a full sequence requires about
that needs attention is that all writes occur 1.5 s to complete. The base unit processor is ABOUT THE AUTHOR
on the 128-byte boundaries. Any attempt to designed to ignore repeated transmissions Dave Penrose (david.
write a block of data across the 128-byte while assembling a valid sequence. penrose@comcast.net)
boundary will just wrap around the 128-byte The IR motion sensors can report a i s re t i re d f ro m t h e
boundary. Individual consecutive writes of resident’s location as long as there is aerospace industry. He
single words can avoid this problem but this significant motion and the resident is in view began his career pro-
is slower and the number of write cycles prior of the sensor. If the person is sitting down or gramming test soft-
to wear-out is decreased. I allocated my use in bed, then the motion sensors will not be able ware for space vehicles
of the EEPROM so all sections fall on a 128- to discern small movements. To augment the and has maintained a
byte boundary and avoided the problem of detection capability of the system, vibration life-long passion for de-
wrap-around. monitors have been added which transmit a veloping microprocessor
Completing the base unit is the receiver data stream similar to the IR motion sensors. projects. He holds an
subassembly. This 433-MHz receiver is a These sensors are designed to pick up small Expert Class Amateur
commodity product available from a number motions of a healthy individual sitting in a Radio License (K1DHP),
of suppliers. I elected to remove mine from chair or lying in bed. These monitors use a an MS in Computer Sci-
the IR motion sensor system receiver. The Fast Vibration Sensor (Adafruit 1766) and an ence from the Universi-
device was a good candidate for the receiver 89LPC922 microprocessor transmitting with ty of Santa Clara, and
in this base unit since it is a self-contained a WRL-10534 RF transmitter from Sparkfun a BA in Mathematics
small daughter board in the Harbor Freight Electronics. from the University of
units. If you elect not to do this harvesting, California at Berkeley.
these devices are available from a variety of SOFTWARE Much credit for putting
suppliers on the Internet. The aforementioned hardware is simple, up with strange devices
inexpensive, and readily available. The magic appearing through the
THE SENTRY SENSORS of the project is in its software. The 89LPC936 house but also for edit-
The main sensors for the Sentry system processor in the base unit provides for 16 KB ing rough thoughts into
are IR motion sensors. These sensors respond of code memory in flash memory. The project finished articles goes to
to a warm body moving in their field of view was developed in assembly language and uses Dave’s wife, Melinda.
by sending a coded transmission on 433 MHz. a significant amount of this memory. HTML
36 CIRCUIT CELLAR • MARCH 2015 #296
FEATURES
and reporting. With this assistance available,
the base unit only needs to implement a host
to talk to a client such as Firefox or a client
to talk to a remote host such as Exosite. Both
of these host and client interfaces operate
simultaneously in this project and use only a
small percentage of the WIZ550io’s features.
The host logic in the base unit
communicates with a web browser to
configure the system. To act as a server, it
establishes a Listen configuration and waits
for a client browser to establish a connection.
The browser will then pass an HTML message
requesting a specific page to be displayed or
it will pass data to the process from a user
form (see Figure 4).
The Client processing generates the Exosite
remote display and any alert messages to be FIGURE 5
sent to the caregiver (see Figure 5). This Current alert information as well as detailed information on the resident and caregiver is presented on the
process is serviced once per minute and remote Exosite display.
when called establishes a Talk relationship to
Exosite. After each interchange of data, this
process disconnects from Exosite.
RULE PROCESSING
All rule processing is keyed to rooms in
the resident’s house. A room can have one
or more sensors in it, but all of these sensor
reports are combined to determine what
room the resident is in and when the last
activity in the room took place. There are four
simple rules that the caretaker establishes
for each room (see Figure 6). These rules
were based on the logic a person might use
to determine if an individual is behaving
normally. They can check if a person visits
FIGURE 6
the kitchen or bathroom on a regular basis, Four simple rules allow the Sentry system to be tailored to any resident’s needs.
if they are in bed prior to a normal time, if
they remain in bed past a normal time, if they
are too quiet in a room, and other checks fixed IP address for the WX550io needs to be
that can be made based on time of day and fetched from a DHCP server to obtain a local
duration in a room. Each rule can be enabled IP address. The first new function I might add
or inhibited depending on what makes sense would be an audio signal together with an
for a particular room and how the resident is indicator light and push button switch on the
expected to behave. base unit. The audio and light would indicate
A violation of a rule generates an alert that an alert had been issued. The resident
to the caregiver. This is either an SMS text could press the button to acknowledge the
message or an e-mail saying, for example, alert and let the caregiver know everything
“John Doe may need your attention.” is okay. This would be useful in suppressing
false alarms but would still record a history
NEXT STEPS of alerts issued.
The project is complete and working. Prior This project is just one example of how the
to commercial use, a feature would be required Internet of Things (IoT) might serve our
to use a Domain Name Server (DNS) to retrieve senior population. Hopefully, it will stir up
the IP address for Exosite. This is currently additional ideas from the talented readers of
hard coded into the program. Secondly, the Circuit Cellar.
38 CIRCUIT CELLAR • MARCH 2015 #296
Sensorless Maximum
Power Point Tracking
FEATURES
Maximum power point trackers (MPPTs) are used to ensure that maximum power is
transferred to a device from renewable energy input applications. This article details an
impedance-matching method for a closed-loop digital control system, which provides
MPPT for input applications that have an approximately fixed internal resistance.
RFS RFS
FEATURES
CSMOOTH CSUPER CSMOOTH CSUPER
RSHUNT RSHUNT
Current
sensor
Ground reference
problem
FIGURE 1
conditions. So this circuit, as it stands, will not variable and simply measure the input and
A comparison between a traditional
function correctly using a photovoltaic panel output voltages, using these to perform the
MPPT circuit (left) and our circuit
as the input source. However, thermoelectric maximum power tracking. (right)
generators and inductive power transfer
systems are becoming more widely used. 2L ( VO − VI )
D= [1]
For example, if you were to look at one R INT TVO
application in particular that would benefit
R INT T ( VO − VI )
with the addition of this MPPT, it is the new L= [2]
2VO
thermoelectric generator being developed by
BMW in conjunction with NASA. It improves This gives us an output of the converter’s
fuel efficiency and reduces carbon dioxide duty cycle, expressed as a function of the
emissions by up to 5%. In addition, it could input and output voltage, as well as the
eventually replace the need for an alternator, component values.
as it aims to produce enough electric power to As you can see in Figure 2, the circuit is a
run all the electrical components of the car. The very standard generic boost converter. Being
energy and environmental implications of this a discontinuous converter, it runs in three
will be huge. If successful, it could be applied modes.
to all vehicles (cars, lorries, etc.) around the In the first mode, the switch is closed
world, which is a massive reduction in oil and current flows from the source of power,
consumption and a big improvement in energy through the inductor, and back to ground.
efficiency as it reuses the heat escaping from Energy is stored in the inductor during this
the exhaust to power a vehicle. Consider that cycle, and the load is being powered from the
around 60% of the energy generated by a energy already present in the capacitor.
typical internal combustion engine is lost: half In the second mode, the switch is opened.
by heat absorbed by the engine cooling system This suddenly decreases the current flow (or
and the other half lost via exhaust heat. Thus, would if it wasn’t for the energy stored in the
by reusing this exhaust heat, the efficiency of inductor previously). The energy now flows out
the engine can be significantly improved. of the inductor and into the capacitor, which FIGURE 2
Our prototype circuit features a ChipKIT stores energy and smoothes the voltage. The MPPT schematic
Max32 development board. It performs the
closed-loop digital control that yielded positive
results from both simulation and experimental
verification for input applications that have an
approximately fixed internal resistance, such
as thermoelectric generators and inductive
power transfer systems.
CIRCUIT OVERVIEW
We decided to use a boost converter
operating in the discontinuous conduction
mode in order to reduce switching losses.
After overcoming the obstacle of creating
equations for the duty cycle in terms of
voltages only (see Equation 1) and the design
equation for inductance (see Equation 2),
resulting in the maximum power transfer, we
can therefore eliminate current as a required
40 CIRCUIT CELLAR • MARCH 2015 #296
TESTING
In order to test the board, we needed to
FEATURES
FEATURES
with a microcontroller used to perform maximum power
point tracking control of renewable energy devices with an
approximately fixed internal resistance, which has been
fully analyzed and experimentally verified.
As the source voltage (VS) is varied, the output
voltage (VO) changes as a result of the system performing
maximum power point tracking. The input voltage (VI) to
the converter also changes as it follows half the value of the
source voltage (VS) due to impedance matching (maximum
power point tracking). The change in the duty ratio is not
static as it is in fact dynamic, which means that the duty
ratio is constantly changing until the circuit reaches steady-
state, after which point it is restored to its original value.
The steady-state value of the duty ratio only changes if the
load resistance changes or if the source voltage changes
while the output voltage is “clamped” (for instance, if the
output was connected to a battery).
Furthermore, this was all made possible thanks to the b)
implementation of digital control, without which specific
experiments could not have been carried out. For example,
Photo 6a could not have been produced without the
automatic updating of the duty ratio from the closed loop
digital control system. If you look again at Photo 6a, you
can verify that the equation discovered for the duty ratio
(Equation 1) and the design equation for the maximum
value of inductance (Equation 2) which ensured that the
boost converter remained in discontinuous conduction
mode indeed holds true. This is done due to the fact that
the input voltage is always approximately half of the source
voltage when varied over a period of a time. This proves
that maximum power transfer has been transferred.
FURTHER WORK
The circuit that has been produced here in order to
test this new method of maximum power point tracking
can be vastly improved for efficiency and to broaden its PHOTO 6
applicability. Component selection has only been carried This shows circuit maintaining maximum power point tracking as the input voltage is
varied (a). The blue trace shows the input voltage and the yellow trace shows the input
out with a view to circuit prototyping, and therefore large
voltage after the simulated internal resistance. The circuit working with a 12-V input and
and easily reworkable components have been selected.
a 81-Ω load (b). The blue trace shows the input voltage and the yellow trace shows the
The performance of the circuit can be easily improved with input voltage after the simulated internal resistance.
more modern components. For example, you could replace
the Schottky diode with a switched field effect transistor,
reducing voltage losses. sensor combined with the input voltage, the internal
Also, the potential dividers used to scale the input and impedance can be approximated when the necessary work
output voltages to the range suitable for the ChipKIT are has been carried out to characterize a particular panel’s
extremely crude and don’t use the full dynamic range of the behavior. This is likely to have poorer performance than a
ADCs. Accuracy, and therefore efficiency, can be improved true closed-loop system using a current sensor. But in many
with a more sophisticated method to scale these voltages applications, the cost/performance trade-off may be
(e.g., using differential amplifier circuits instead). attractive as the temperature and irradiance sensors will be
With further modification to our design, we could apply cheaper than current sensors for many applications. The
the circuit to a wider range of renewable input sources variable input and output voltages also favor the use of
which have variable internal impedance, particularly if the supercapacitors, which can be used in place of the output
internal impedance is proportional to other factors. The capacitor in order to store more energy and charge/
obvious use is with photovoltaic panels, where the internal discharge faster, in order for the load to be supplied even
impedance can frequently be approximated using additional during times when the input source is unable to provide
measurements. By utilizing an irradiance or temperature enough power.
46 CIRCUIT CELLAR • MARCH 2015 #296
GREEN COMPUTING
Cooling Awareness in
HPC Job Allocation
COLUMNS
H igh-performance computing
clusters serve large supercomputing
(HPC)
THERMAL DYNAMICS
Figure 1 shows the layout of a typical 0)#$"/( )*+
#&($(
$%&'
computing cluster. In this arrangement, rack !"#"
#&($ ()*1
inlets where the cool air is supplied are facing $%&' )
the outer aisles forming cold aisles at the !"#" $%&'
sides. Rack outlets, where the hot air exits,
are facing each other forming a hot aisle in
, !
COLUMNS
words, the hot air outcome of the servers
is not fully absorbed by the computer room
air conditioners (CRACs). Because of this
recirculation and the inherent asymmetries of
the layout (e.g., CRAC units residing in certain cooling cost? One straightforward approach FIGURE 1
specific locations of the cluster), even when would be to prioritize more “thermally- Layout of a two-row cluster with hot
the servers are all of the same kind, one can efficient” nodes while selecting the nodes for aisle/cold design. Some of the heat
speak of a thermal heterogeneity across the a job that is waiting to be allocated. This is exhaust is recirculated back into
the system, which creates thermal
servers. a complex problem as the solution space is
heterogeneity among the compute
Figure 2 shows the cross-interference large and also each job allocation decision
nodes.
coefficient matrix for an example 40-node affects the later decisions. One way to solve
cluster (where each node may include this problem is to set up a formal optimization
multiple servers) in a 3-D map. This matrix framework with goals and constraints.[3]
represents the recirculation phenomena by In my research lab, my students and
quantifying the fraction of output heat from I noticed that while methods to optimize
each node that is recirculated to the inlet of the cooling energy and the performance
the other nodes. It is an n × n matrix for a (communication) cost separately exist in the
cluster with n nodes. This recirculation matrix literature, jointly targeting these goals has not FIGURE 2
can be obtained for a given cluster through An example cross-interference matrix
been addressed. If we accomplish to address
for a 40-node cluster. The 3-D map
detailed computational fluid dynamics (CFD) both goals, this joint optimization can bring
demonstrates how much each node
simulators or through measurements. energy efficiency benefits. These two goals
impacts other nodes in terms of
What does such a matrix tell us? Simply, of reducing cooling and reducing the hop- the recirculated heat. A higher bar
nodes are not equal in their thermal distance of each job may conflict depending implies a higher amount of heat being
efficiency. For example, some of the compute on the specific case. Thus, we decided to set recirculated from a node’s output into
nodes may be more prone to getting extra up an optimizer that weighs both goals and another’s inlet.
heat input because of their relative location to
other nodes and to CRAC units in the cluster.
As a result of the recirculation and, also,
considering there are often idle nodes even in
busiest computing clusters, which nodes we
select for allocating a job makes a difference
in the overall temperature of the cluster.
The recirculation matrix and the power
consumption of each node determine
the temperature for each server. Server
temperatures and the CRAC unit properties
then determine how much cooling power
is needed to cool down a given cluster. So,
job allocation has an impact on the cooling
power consumed in a cluster. (Temperature
and cooling power dynamics of clusters can
be estimated via detailed CFD tools or simpler
mathematical models. Some examples of
estimation mechanisms are given in recent
work.[2,3]).
COLUMNS
Figure 4b compares the average cooling
power for the three policies across the same
job queues as Figure 4a. The joint optimization
policy results in an average cooling power the HPC applications.
close to the power consumption achieved by Other open problems include combining
the solely cooling-aware policy. In comparison job allocation with power budgeting. (I talked
to the solely performance-aware policy, joint about power budgeting in my Circuit Cellar
allocation saves 18% cooling power on average. 292 article, “Budgeting Power in Data
An interesting observation is that for some Centers.”) In my lab, we are also investigating
cases, the joint policy achieves lower average how to combine job allocation with task
cooling power than the cooling-aware policy mapping, which is deciding where to allocate
such as in queues 4 and 6. This is because each specific task of a given job. Task
with the cooling-aware allocation, some jobs mapping can bring additional performance
may take a longer time to run in comparison and efficiency benefits especially for jobs
to the joint policy (as the allocation is not with largely diverse tasks.
performance-optimized). When a large job is
running for an extended period of time, it keeps
the nodes active for a longer time. This results
in higher total computing power and cooling
energy in comparison to the joint policy.
Get PUBLISHED.
Another significant aspect of building job Get NOTICED. Get PAID.
allocation optimization policies is the access
Circuit Cellar feature articles are contributed by professional
to simulators that can evaluate realistic
scenarios. This is especially critical as many engineers, academics, and students from around the globe.
researchers do not have privileges to test Each month, the editorial staff reviews dozens of article
job allocation policies on real-life clusters. proposals and submissions. Only the best make it into the
My students and I were initially using our in-
house simulators, but we are now expanding
pages of this internationally respected magazine.
the open-source SST simulator (http://sst.
sandia.gov/) with power and cooling models. Do you have what it takes?
The SST simulator is able to run real-life job
Contact C. J. Abate, Editor-in-Chief, today to
traces collected from various machines under
a set of different job allocators/network discuss the embedded design projects and
topologies. programming applications you’ve been working
on and your article could be featured in
FUTURE TOPICS an upcoming issue or online at
Many open problems remain to be solved
in the area of efficient HPC job allocation. circuitcellar.com.
Even though future data centers are likely to
be more cooling efficient (via the use of in- Email: editor@circuitcellar.com
row coolers, more substantial use of liquid
cooling, etc.), which means less recirculation
effects, the servers in cluster are still going to
be thermally heterogeneous. This is because
a cluster often includes a variety of hardware,
and also, asymmetries in cooling still exist
in many recently built clusters. Thus, taking
thermal efficiency into account during job
allocation can help push the performance of
50 CIRCUIT CELLAR • MARCH 2015 #296
Essential Electromagnetic
Compliance (Part 4)
COLUMNS
PHOTO 1
A metal cabinet is an excellent shield
COLUMNS
generating noise. Ground, not necessarily internal metallic coat for shielding.
synonymous with “Earth,” is a sink for
interference currents to be directed back to EXTERNAL INTERFACES
their source. PCB ground layers, separate for Before we delve into the details of
analog and digital circuits, are very effective. protection circuits, let’s consider external
If only a single or two-layer PCB is used, interfaces, from power to loads to input
ground bars are an effective solution with devices, such as sensors. These are not always
the added benefit of acting as stiffeners and under the equipment designer’s control, but
perhaps a heat sink. knowing their characteristics is crucial for
A metal enclosure is an effective EMI shield effective EMC. With the exception of power-
(see Photo 1). Such an enclosure, milled out carrying conductors, all signal lines should
of a solid piece of aluminum, is not always be shielded. Double-braided twisted pairs, if
affordable. Sheet metal or fiberglass with affordable, are the best. Twists create small
an embedded mesh are commonly used for adjacent loops with opposite magnetic flux,
industrial equipment. Consumer equipment is which is very effective for canceling out the
often in plastic cabinets, sometimes with an effects of the M-field.
FIGURE 1
Shielding effectiveness of a single and
a double braided cable
52 CIRCUIT CELLAR • MARCH 2015 #296
PHOTO 3
Controller PCB with dirty and clean
cavities
COLUMNS
supplies and loads chokes are used instead to mode signals can be effectively suppressed by
minimize the DC voltage drop. The TVS diodes transformers. And when you are dealing with
act like fast, high dissipation Zener diodes. E-fields of thousands of volts per meter, you
They are unidirectional as well as bidirectional can always employ fiber optics.
for balanced or AC signals. To conclude, don’t forget that the EMC
Due to the finite speed of gaps and TVSs, testing is static. In a real life, dynamic
there is always a remnant, narrow, high- environment there is always a chance that a
voltage spike, also caused by an electrostatic combination of several conditions can result
discharge (ESD). Capacitor C1 together with in a failure. That’s when the fun begins.
the following low pass filter suppress it. The
feed-through filters leading into the clean
cavity with the electronics are seen at the
extreme right of the EMI plate.
The filters are usually “pi” filters with a
–60 dB/decade theoretical slope. They’re
manufactured with critical frequency from
about 10kHz to a few megahertz.
Connectors with filter and TVS pins are
sometimes sufficient to achieve EMC, but
they do have limitations. They can withstand
relatively low voltage spikes only, dissipate a
limited power and be quite costly.
Startup
Transients
COLUMNS
By Ed Nisley (US)
P erhaps you’ve proceeded all the way through a system’s design, collected
and assembled the parts, and written the bring-up code, only to discover
the real challenge: making it work the way you expected at the beginning. The
problems you encounter seem obvious only after they occur!
In this column, I’ll discuss several parts of my sewing machine controller
retrofit project that required more tweaking than I expected. Although your
projects should never have any of these problems (because they’re obvious!),
perhaps my experiences can serve as a debugging guide when you’re faced
with a new and somewhat cantankerous collection of parts that should work
perfectly together.
PHOTO 1
This image, taken through a visible-blocking infrared filter,
emphasizes the IR LED on the proximity sensor board.
Surprisingly, the black drive belt appears transparent in IR.
PHOTO 2
The setscrew on the motor pulley produces a glitch as it passes over the phototransistor. Rather than
attempting to smooth out the screw, I fixed the glitch in software.
circuitcellar.com 55
voltage output. The infrared image of the at the midpoint of those values for the best
motor RPM sensor in Photo 1 highlights the average noise immunity.
IR LED on the right, with the phototransistor The interrupt handler should run once per
behind the barrier just to its left. motor revolution, triggered by the falling edge
I blackened the motor pulley with Brownell’s of the signal, when it records the elapsed time
Oxpho-Blue Gun Bluing solution, which, despite since the previous interrupt. The first version
the name, produces a dense black finish on of my handler sometimes reported that the
steel that’s a perfect “dark side.” Stainless motor ran twice as fast as shown on the
steel HVAC tape, burnished with a plastic rod, display of my trusty laser tachometer, which
boosts reflectivity and increases the contrast meant the interrupt happened twice on each
of the other half. The sensitivity trimpot has revolution.
enough range to turn the output off over the Unsurprisingly, at least in retrospect, the
tape and on over the blued steel, so I set it setscrew locking the pulley to the motor shaft
COLUMNS
struct pulse_t {
byte Counter;
unsigned long LastIRQ;
unsigned long Period;
unsigned int RPM;
byte State;
};
//------------------
// Motor RPM interrupt handler
void ISR_Motor(void) {
digitalWrite(PIN_SYNC,HIGH);
Now = micros();
digitalWrite(PIN_SYNC,LOW);
return;
}
//------------------
// In setup() function
pinMode(PIN_MOTOR_REV,INPUT_PULLUP);
pinMode(PIN_SHAFT_POSITION,INPUT_PULLUP);
attachInterrupt((PIN_MOTOR_REV - 2),ISR_Motor,FALLING); // one IRQ / motor rev
attachInterrupt((PIN_SHAFT_POSITION - 2),ISR_Shaft,CHANGE); // two IRQs / shaft rev
LISTING 1
Each falling edge from the motor RPM sensor triggers this interrupt handler, which should run once per motor revolution. However, the setscrew holding the pulley to the shaft
can produce spurious interrupts, which the the if() statement detects and ignores. The machine shaft sensor interrupt handler uses similar logic, so it’s not shown here, but the
last two lines configure it to run on both edges of the sensor signal.
56 CIRCUIT CELLAR • MARCH 2015 #296
one in software.
The interrupt handler in Listing 1 marks
its execution by turning on an output bit while
it runs. That bit appears in the lower trace of
Photo 2, where it shows the Arduino hardware
and interrupt header code requires about 7
µs to save the CPU registers before passing
control to the handler; the first cursor should
mark the falling edge of the glitch, not the
rising edge.
The handler’s if() statement accepts only
those interrupts that occur more than 5 µs
after the previous one, with a low voltage at
the sensor pin. That logic works well over the
normal range of motor speeds, although I
can still trigger a spurious interrupt by hand-
turning the motor very slowly.
With that sensor working, I moved on to the
shaft position sensor, shown in Photo 3 with
the shaft turned to set the sewing machine
needle at top dead center. The shaft rotates
produces a glitch on the rising edge of the counterclockwise and the counterweight
sensor’s digital output, as shown in the upper occupies half of the circumference, producing
FIGURE 1
Plotting the setpoint current, open-
loop actual current, and shaft speed
against motor speed shows the
variation that the firmware must
process. The difference between the
setpoint and actual current depends
strongly on transistor temperature.
circuitcellar.com 57
COLUMNS
that configures the handler to run on both the
rising and falling edges of the signal, when
it records the state of the sensor after each
edge. That bit indicates the needle position at
the time of the interrupt: low = needle down,
high = needle up.
The two sensors and their interrupt handlers
produce accurate speed measurements, but PHOTO 4
they don’t directly indicate that the motor has The upper trace shows the motor current limited to 650 mA. The firmware samples the current just before
stopped turning. A few lines in the main loop the falling edge of the first nine pulses in the lower trace, then sorts the values during the last pulse.
detect that the motor speed handler hasn’t run
in the previous 100 ms: the absence of that the stall detection code. The plot includes
interrupt means the motor isn’t turning. several consecutive runs with increasing and
Plotting the shaft speed against the motor decreasing speeds that produced a maximum
speed produces the blue points in Figure 1. spread of 6%, sufficiently accurate for a
The vertical scattering below 500 RPM shows machine controlled by a foot pedal. An eyeball-
where the motor stalls at low speeds, without fit line has a slope of 0.089, so the drive belts
#define NUM_I_SAMPLES 9
FIGURE 2
A simple SPICE model of the motor and ET227 transistor just after the relay contacts close. All values represent estimates based on measurements, but the overall accuracy won’t
be very good.
reduce the motor speed by 1/0.089 = 11.3. The measurements aren’t synchronized with
other points scattered around that plot require the power line, their results include data
a bit more explanation, though. representing the entire waveform.
Because the leading edge of the flat tops
CURRENT SAMPLING in the current-limited waveform generally have
As you saw in the January 2015 column, a small overshoot, as shown in Photo 4, the
the motor controller uses a big ET227 NPN code in Listing 2 sorts the array in descending
transistor as a current limiter, with a bridge order and returns the average of the second
rectifier converting the AC supply voltage and third measurements. That work well for
into unfiltered DC. Even though the universal most cases, but will slightly underestimate the
wound motor runs perfectly well from the maximum of a waveform without flat tops.
half-sine voltage, the oddly shaped current Although it’s not complex DSP, it gets the job
waveform in Photo 4 shows the effect of the done with enough accuracy for my purposes.
current limiter. As the current limit increases, The calibration routine steps the motor
the flat tops shrink as the waveform becomes a current limit from 400 to 900 mA in 50 mA
distorted sinusoid, with the motor inductance steps, records the ADC value returned by the
holding the current above zero between the code in Listing 2, then dumps those values
pulses. to the Arduino’s serial port. I also manually
I had originally planned to synchronize record the “true” motor current, as measured
the current sampling routine with a zero- by my calibrated Tektronix Hall effect current
crossing voltage detector, but the current probe, at each current step. Plotting the true
waveform peak doesn’t occur at a consistent current against the ADC count produced a line
delay from the voltage minimum. The lower so straight there’s no point in showing the
trace in Photo 4 shows a different approach: graph:
collect nine measurements spanning one
cycle of the rectified waveform (one half of a
Current ( mA ) = 2.97 × ADC + 152.6
complete power-line cycle) into an array, then
apply digital signal processing to determine
the maximum current. Even through the That equation applies for ADC values from
DESIGN YOUR SOLUTION TODAY
CALL 480-837-5200
Pricing starts at
$129 $168
Pricing Starts At Qty 100 Qty 1
$99
Qty 100
$134
Qty 1
L
D
NA
N
LI
E
GG
PE
GI
RI
RU
LO
COLUMNS
Even without a SPICE simulator, the affect the rise time, because the stray
schematic suggests that the peak collector capacitance causing this problem completely
voltage won’t be much more than 1/12 of bypasses it. The ET227 datasheet doesn’t
the input voltage: the three capacitors form mention the effect of extremely short pulses,
a series-parallel voltage divider across the but the absolute maximum pulse current
input. Assuming a 180 V peak on the input, limit is 200 A at 50 µs.
the collector terminal might reach 15 V, which Tinkering with the model showed that a
certainly isn’t enough to cause any problems small series resistor dramatically reduced
by itself. the peak current, so I inserted four 2.5 Ω
However, the collector-base capacitance NTC power thermistors between the relay
could supply a base current that, amplified and the bridge rectifier. These thermistors,
by the transistor’s gain, would produce also known as inrush limiters, generally
a damaging collector current. I thought appear in power supplies, reducing the
that the motor’s stray capacitance could initial charging current of large electrolytic
apply a sufficiently fast voltage transient at capacitors. Their resistance has a negative
the collector to drive current through the temperature coefficient, so the resistance
collector-base capacitance, and that, even falls as they warm up, reaching a steady
with a low collector voltage and the internal state that depends on the power supply load.
13 Ω base shunt resistor, the transistor’s gain The sewing machine motor will run
would produce enough collector current to intermittently, allowing the thermistors to
force the operating point beyond the 100 A cool and increase their resistance. However,
DC and 200 A pulse limits at the of the safe even after a few minutes at the motor’s full-
operating area plot. throttle current of 1 A, each thermistor adds
A simple differential equation relates 1 Ω to the circuit and the quartet limits the
capacitor current to the voltage change at its simulated peak current to 33 A, well within
terminals: the safe operating area.
As it turned out, the third ET227 has
dV survived several weeks of relay clicks
IC = C
dt applied through the thermistors, so I’ll say
that problem has been fixed. I can’t defend
Although mercury-wetted relay contacts the simulation’s exact results, although it
can have a rise time on the order of a few does seem to reveal a failure mode that I’d
picoseconds, I couldn’t find any data on the completely overlooked.
dry contacts used in power relays. For lack of
better data, I slowed the rise time by a factor CONTACT RELEASE
of 1000 and Figure 3 shows the results of the After the November 2015 column
source voltage rising from 0 V to 180 V in 1 ns: appeared, reader Steve Troy sent me a
a nearly rectangular 150 A pulse of collector lengthy note describing a super-slow-motion
current. The collector voltage remains under AC motor drive he designed for a radar
3 V during the entire pulse and the current antenna mount. His technique should
does its damage at essentially zero bias. overcome the terrible low-speed torque of
Assuming a faster rise time of 100 ps the sewing machine motor, without requiring
would increase the current to 1.5 kA, while a complex control circuitry. I’ll adapt his AC
slower 10-ns ramp drives only 15 A through drive to the pulsed-DC circuitry you’ve seen
the collector. The actual rise time and peak here and report back: a simple matter of
current will depend on the relay contact rise software should make the sewing machine
time, as well as the stray series inductance work even better than I planned. Which is
that’s not included in the model. Remember why I appreciate hearing from you: I learn
that the motor winding inductance doesn’t something new every time!
62 CIRCUIT CELLAR • MARCH 2015 #296
to turn on at any point in its cycle, while phase- in its secondary. A 12-V
dependant control limits when a TRIAC can source is applied to the
turn on (only at zero crossings). Syncing control transformer’s center
to zero crossings enables one to consistently tap and alternately
turn on a TRIAC at the same point every cycle. driven FETs ground the
Without this sync, you have On/Off control but winding (see Figure 1).
no way of varying this over each cycle. The FET’s PWM source
Providing “per-cycle” control over our 60- will then control over
Hz world is easy because we know what the the period of time
frequency of each cycle will be and we can during each half cycle
monitor the voltage to get “in-sync” with it. that the FET is turned
We know each cycle will be 1/60 of a second, on. This moves the
or 16.6 ms. To operate a TRIAC at the 50% phase control from each
COLUMNS
level, the TRIAC ON signal must delayed by TRIAC to this oscillator.
4.1 ms after each zero crossing. Most of these The transformer’s
high-voltage circuits run at a soft frequency secondary can now
PHOTO 1
and you can’t depend on them to remain produce a voltage from 0 to 120 V. By syncing I kept the high-voltage circuitry at one
constant. It becomes very difficult to monitor this with a channel’s on time, we can produce end of this prototype. There was plenty
the frequency and dynamically adjust delays a brightening and dimming effect for each of room left over to add the circuitry
based on their varying zero-crossing times. channel. for an on-board DC-to-AC converter to
Readers who are familiar with Star Trek, last month’s project.
and specifically “The Wrath of Khan,” may be PWM
familiar with Captain Kirk’s solution to the There are couple of ways to get PWM
Kobayashi Maru. He defeated the so-called outputs that will alternate on separate pins.
no-win situation by hacking the problem and The first might be to use the top pair of a
providing a “back-door” if you will. To start off full-bridge output. This approach requires
this month, I am going to eliminate a variable changing direction every cycle to alternate
and thus allow a solution to present itself. direction (outputs). A second approach might
Based on inverter topologies, an addition to be to use the top and bottom of a half-bridge
the present circuit includes a microcontrolled configuration. Again you must change direction
oscillator with complementary outputs driving every cycle to alternate between the outputs.
a transformer’s primary (in this case, the step I chose to use a third approach using a single
down transformer is reversed) to produce 120 V PWM output. This approach makes use of an
FIGURE 1
The right side of this schematic
shows the circuitry I added to last
month’s project. The microcontroller’s
hardware PWM output is “steered”
to drive each FET alternately. The
frequency on the primary is therefore
2× the PWM rate. A 100% duty cycle
is maximum RMS secondary voltage. A
0% duty cycle is zero RMS secondary
voltage. So, the duty cycle controls the
RMS secondary voltage.
64 CIRCUIT CELLAR • MARCH 2015 #296
VDD LX CS
EN Device enable Last month, I used a simple “Eat at Joe’s”
100 k senario, where the circuit sequenced through
RSW-OSC PWM Switch commands for the first three channels of EL
oscillator control. The commands instructed the first
0 to 88%
channel turn on then off (Eat), followed by
VA
+ VSENSE the second channel (At), and finally the third
C
− channel (Joe’s) remaining on for 3 s.
VREG 1.26 V Output
VREF drivers VCS
60 pF
C1 O5 X5 X5 X5 X10 X10 X10 X10 X10 <CR>
2 × EL
C2 X5 X5 O5 X5 X10 X10 X10 X10 X10 <CR>
VREF Frequency VB C3 X5 X5 X5 X5 O10 O10 O10 X10 X10 <CR>
Frequency
GND Brighten and Dim commands here to get a
fade effect instead of blink of each EL segment.
FIGURE 2 enhanced function called Steering mode. A C1 B5 D5 X5 X5 X10 X10 X10 X10 X10 <CR>
This block diagram shows the internal single PWM output can be routed to any (or C2 X5 X5 B5 D5 X10 X10 X10 X10 X10 <CR>
reference voltage that is fed into the C3 X5 X5 X5 X5 B10 O10 D10 X10 X10 <CR>
all) of four output pins via bits in the steering
VREG input to control the inductor/
register. An interrupt available at the end of
diode tied to LX to pump up the diode/
capacitor on CS to a regulated output
each PWM timer overflow is used to trigger an DURATION TO PULSE WIDTH
voltage of 110 V. The output drivers interrupt to swap output pins. Now that there is a way to alter the PWM
then use the voltage on CS to produce Two timers are used in this example. Timer that drives the step-up transformer and you
±110 V to an EL lamp connected 4 provides a tick every 100 ms for the Brighten can adjust the secondary’s AC output voltage,
between VA and VB. and Dim commands. This is the command’s you need to be able to vary the pulse width
minimum time period. Every 100 ms, all during each duration period. As I explained
durations are decremented. Should a duration earlier, the CCPR1L register controls the on
reach zero, the next command for that channel time of each PWM period. We will need to plug
is queued up. Timer 6 sets the PWM frequency values in here that range from 0 (0%) to PR6
with the PR6 register. The PR6 register is (100%). I use the duration value for this.
used to reload Timer 6 each time it reaches The duration value decrements once each
zero, providing the base frequency for the 100 ms to zero. Let’s begin with the Dim
PWM output. The CCPR1L register will hold the command because it directly relates to this
PWM’s on time pulse count. It is some fraction decreasing value. In the above example , the
of the PR6 register. If you place a value of half D5 command calls for a Dim to occur over five
PR6 in this register, the PWM output will be on 100-ms periods. So, you use the following
for half the PWM period and then turn off for formula to calculate a value for the pulse-
the second half. width register CCP1RL: PR6 × PresentDuration/
While both outputs are never really on at CommandDuration. This calculation is used
the same time, the FETs these outputs drive every 100 ms. For this command, you have
could potentially be on at the same time if they the following five calculations.
turn on faster than they turn off. In a bridge
208 × 4 166
circuit, if both FETs are on at the same time, it = 166; = 80%
creates a high current path across the power 5 208
supply. This is not exactly the case here, but 208 × 3 124
= 124; = 60%
it would cause unwanted harmonics here. To 5 208
eliminate this possibility, you can add a delay 208 × 2 83
= 83; = 40%
to the on time in each cycle. The lower seven 5 208
ABOUT THE AUTHOR
bits of the PWM1CON register indicates how 208 × 1 41
J e f f B a c h i o c h i ( p ro - many ticks the PWM ON should be delayed. = 41; = 20%
5 208
nounced BAH-key-AH- Since the outputs alternate, the actual output
208 × 0 0
key) has been writing frequency will be half the PWM frequency. While = 0; = 0%
the resistance of the transformer will limit the 5 208
for Circuit Cellar since
1988. His background DC current through the transformer and FET, it
includes product design is a good idea to completely remove any drive to Every 100 ms, the duty cycle will be
and manufacturing. either FET when the oscillator is stopped. Under changed affecting the AC output voltage and
You can reach him at program control, you can do this by disabling the EL intensity. The Brighten command uses
jeff.bachiochi@imagine the drive outputs. However, you should use the same formula; however, instead of using
thatnow.com or at www. caution when running an in-circuit debugger, as the decreasing duration count, we subtract
imaginethatnow.com. you may inadvertently break the program while it from the Command Duration (in this case
the oscillator is on, which would create a static = 5) to get an increasing value and in turn a
condition. increasing AC output voltage.
circuitcellar.com 65
FIGURE 3
Here is the schematic of one channel
of the eight EL drivers attached to
EL LAMP DRIVER PORTC of the PIC16F1829.
“And now for something completely
different.” When Monty Python used this
phrase, it usually meant more of the same
British humor. While the project’s objective
remains the same, I want to offer a different
approach. So far, the DC to AC conversion has
gone from a purchased module to an on-board
converter. Both approaches are similar and
use step-up transformers. I’d like to turn your
attention to a family of parts manufactured
by Supertex (now Microchip Technolgy). The
HV8xx parts are EL lamp drivers. In particular, in increments of 1% would require resolutions
COLUMNS
the HV860 part is a dimmable EL driver in of 500 ns. Even with this microcontroller’s
a QFN-12 package. While the part uses an PLL running at its maximum speed (Microchip
inductor, it is considerably smaller than using Technology PIC16F1829) of 32 MHz, that’s an
a transformer. And, since it has its own DC- execution cycle of125 ns (i.e., 1/32,000,000 ×
AC converter, a connected EL device does not 4). There would only be four instruction cycles
share the supply with other channels. In other per bit of resolution required. This won’t fly. By
words, all channels can be on at the same time. limiting the PWM resolution to 10%, the number
Figure 2 depicts the HV860. Two internal of instructions would skyrocket to 40. Even this
oscillators use external resistors to set their seemed doubtful, but let’s give it a go.
frequency. The first oscillator drives an First of all, we need to set up a timer to
internal FET that allows the external inductor give 5-µs interrupts. Refer to the flowchart in
to charge and release its charge through a Figure 4 to see what must be accomplished
diode into an external capacitor on CS. The during Timer 2’s 5-µs interrupt. Note that this
capacitor’s voltage on CS is monitored by
VSENSE and a portion compared to a 1.26-V
voltage reference. The comparator’s output
is feedback (duty cycle control) to the first Timer 2 interrupt
oscillator regulating the voltage on CS.
The second oscillator converts the DC
voltage on CS to an AC voltage on outputs Decrement PWM_Tick
VA and VB by driving four FETs in a full-
bridge configuration. The converter’s EN input
N
can be used to turn on and off the internal PWM_Tick > 0?
circuitry. However, since the internal reference
voltage is connected to the voltage regulation Y PWM_Tick = 10
comparator through an external resistor, you
can modulate this via an external signal to
PWM_Mask = 0
reduce the voltage to the comparator. A lower
reference voltage will in turn lower the DC
voltage produced at CS. This effectively gives
N
control over the AC voltage and thus the EL PWM_Tick >
Channel0?
device’s illumination level.
There are a couple of limits for this device. PWM_Mask.0 = 1
First, it is designed to drive up to 5 square Y
no effect on the 1.26 V VREF, and so it remains transfer pad. The internal FETs can raise the
fully applied to the VREG input of the HV860. operating temperature a bit. While the PWM
When a PWM value of 0xD0 (100% of PR2) is signals I was creating are slightly below
written to the duty cycle count, Channelx, the the minimum specs, the circuit seemed to
channel is always on. PWM values of anything operate well. However, if I wanted to be within
in between 0x00–0xD0 will vary the average specs, I was not going to get there with this
voltage on VREF. If the duty cycle is increased microcontroller. There are other alternatives in
from 0% to 100%, the 1.26 V VREF will begin the PIC18 family that offer a few advantages
shorted out and then will be applied to VREG over the PIC16 device. These can execute at a
for longer periods as the duty cycle increases, faster speed (48 MHz vs. 32 MHz) and also offer
until this modulation is at 100%, at which time two level interrupts. When you are counting
VREG will equal VREF. cycles, every last one is important and you
waste an amazing amount of support cycles
LIMITATIONS & ADVANTAGES
COLUMNS
just branching through the interrupt structure.
The HV860 is a tiny SMT QFN-12 part that’s When you have multi-level interrupts, you can
difficut to work with (see Photo 2). I used a assign an important task to the top level and
toaster oven to mount these eight parts on the therefore get right to it. Ten cycles might be
PCB before adding any other components. It’s the difference between attaining your goal, or
tough to get just the right amount of solder not.
paste applied to each one, so they required Each HV860 is able to drive 5 square inches
a bit of touch up afterwards to remove a few of EL material. Check out the other parts
bridges. My smallest iron tip, 0.4 mm, was just available in this family. With each channel
about right for the part’s 0.5-mm lead spacing. responsible for its own AC source, the
But I’ll have to wear magnification and use a animation program is free of restrictions. Now
steady hand if I want to successfully rework each channel can independently flash, brighten,
anything. The rest of the external SMT parts are and dim independent of the others. I’ll bet a
huge by comparison once you’ve done the ICs. single channel programmable circuit could be
The HV860 has a square pad, centered pretty small if a tiny SMT microcontroller was
between the leads, that serves as a heat used. I think I see the light!
cc-webshop.com
Order yours today
68 CIRCUIT CELLAR • MARCH 2015 #296
Mini Rover 7
Electronic Compassing
for Mobile Robotics
Electronic compassing is one of the most
intelligent ways to provide absolute heading
information for a mobile robot. In this article,
Joseph explains why the PNI V2Xe compass
turned out to be the best fit for his Mini Rover 7
robot, which he modeled after the NASA/JPL Rocky
7 Mars rover.
Compassing is one of the only methods that drive wheels or limbs. Furthermore, the terrain
can provide absolute heading information may be uneven, inconsistent, obstacle-ridden,
without external references for calibration. or even move, as is the case for aquatic vehicles.
Today’s electronic compasses easily interface A robot could simply correct its steering to stay
with microcontrollers and come with a host of on course (or on bearing), but that little off-
other features like low-power consumption and course excursion could add a small position
circuitcellar.com 69
FIGURE 1
Magnetic
North As you study the Earth’s geodynamo
Pole
magnet field pattern, note how the
error. The magnitude of the position error is the field lines are not horizontal to the
integral of time, distance, and off-course angle surface except along the equator. The
traveled while the robot is off course. What is rotating dynamo and coil in the center
really required is a new bearing calculation represent the Earth’s magnetic field
to increase the robot’s chances to reach the being generated by its ever-flowing
desired target. iron outer core.
HEADING DETERMINATION
For centuries, we have been taking
advantage of the Earth’s magnetic field to
orient ourselves with respect to its magnetic
poles. Both the mechanical needle compass and Earth’s geodynamo
COLUMNS
information. It is hard to beat the compass for
this purpose. With the exception of GPS, other
systems that exist require an external heading
reference as calibration. approach. There are many ways to determine
Gyroscopes use mechanical angular heading, each of which has its own strengths
momentum changes to measure angular and weaknesses. None of them are infallible.
and linear movements. Traditional flywheel For this reason, some systems use two or more
gyroscopes are fast-spinning gimbaled flywheels methods cooperatively to increase system
with encoders. The encoders are situated about accuracy and reliability. The deciding factors are
the pivotal axes of the gyroscope’s gimbals cost, accuracy, efficiency, features, availability,
and register angular movement of the spatially ease of use, speed, and size.
stable flywheels to its base, which is fastened Kalman filters are typically used to integrate
to a host vessel. Modern gyroscopes use micro the data from multiple sensors to produce a
electromechanical systems (MEMS) and optical more reliable and accurate heading. Kalman
technologies in place of the bulky flywheels. filtering is a statistical method that combines
Gyroscopes have fast response times and the dynamic model of the system with the
are insensitive to magnetic anomalies. They statistical behavior of system errors. It enables
are also relative angular position sensors, navigation systems to handle periodic GPS signal
which require an external reference heading to interruption, odometer slippage, magnetic
initially set. A special kind of gyroscope called anomalies, and other sensor irregularities with
the gyrocompass can align itself with the Earth’s minimal degradation of accuracy. Kalman filters
rotational axis, but it tends to be a large and also can be extremely complicated. You must
costly instrument. fully understand the dynamic behavior of your
Differential wheel encoding is another systems and the statistical and systemic errors
technique used to determine heading. Relative of your sensors in order to make proper use
heading changes can be computed by taking of Kalman filters. It might be easier and more
the difference of distance traveled by two feasible in less demanding projects to use other
opposing wheels. This technique has the same software-based analytical tools like averaging,
traction and terrain issues associated with the weighted averaging, limiting, and majority
aforementioned wheel encoder odometry. voting to improve heading data reliability. FIGURE 2
A single-antenna GPS can provide heading I plotted the magnetometer sensor
information, but it is not instantaneous. It MAGNETIC COMPASSING output versus the angle. You can also
inherently lags the movement of the robot or The Earth’s magnetic field is created deep see the x-y plot of the magnetometer
vehicle because the derived heading requires in its iron core by a regenerative magnetic field sensor output.
previous position data. A GPS could not tell you
where you are heading if you were to stop and
change directions. Like compasses, GPS receivers
do not require external reference heading
calibration. Once moving, the GPS heading
update rate is a maximum of approximately
1 Hz, although some receivers add damping,
which increases this time constant even more.
A dual-antenna GPS receiver can provide
CC REBOOT
FIGURE 4
Here you can see the effects of
soft iron distortions in the Earth’s
If a second sensor is added, and if it is magnetic field.
positioned at a right angle to the first sensor,
its output, Y, will have the same function as X,
but will be 90° out of phase. The y sensor will
be in the east position, and the x sensor will
be in the north position. The two sensors are
said to be in quadrature with one another. The
North
equation for output Y is the following: Pole
Soft
Y = β sin(θ) [2] iron
You now have enough data to compute
heading from the output values of the x and y
sensors. Use the trigonometric identity:
sin(θ)
tan(θ) =
cos(θ) [3]
Combining Equations 1–3 yields:
$199 $165
Qty 1 Qty 1
512 MB RAM 1x USB Device 2x microSD Card Sockets for Redundant Storage
8 KLut FPGA, 1x 10/100 Ethernet, 2x USB Host
8 or 17 KLut FPGA 6x Serial Ports
55x 3.3V DIO, 6x TTL UARTs, 1x I2C, 1x 12S, 1x CAN
2x SD Card Socket 75x DIO, 1x CAN
On board temperature sensor and watchdog timer
2x 10/100 Ethernet 1x PC/104 Connector
-40 ºC to 85 ºC Industrial Temperature Range
Runs Linux 2.6.34 or 3.14 with Debian Wheezy
Benefits:
Hardware flexibility with on-board FPGA Computer-on-Modules
Several control I/O interfaces State of the Art Embedded Design
Launches your application in half a second TS-4600: 450 MHz low cost w/ 2 Ethernets
Easy development w/ Debian and Linux 3.14 TS-4710: Up to 1 GHz PXA168 w/ video
TS-4720: Like TS-4710 + 2 GB eMMC Flash & 2 Ethernets
High data reliability with 2 GB SLC eMMC flash
TS-4200: Atmel ARM9 w/ super low power
-40 ºC to 85 ºC industrial temperature range TS-4800: 800 MHz FreeScale iMX515 w/ video
L
D
NA
N
LI
E
GG
PE
GI
RI
RU
LO
EFFECTS OF TILT
Tilting an electronic compass can create
heading errors. When tilted, the sensors no longer
receive the magnetic field in the proportions
measured during calibration. Equations 1 and
2 characterize the sensor output value with
respect to the magnetic field’s angle to the
sensor’s orientation in the horizontal plane.
Tilting the sensor would expose the sensor to
portions of the Earth’s vertical field component
and reduce its exposure to the horizontal field
component, which could either be an increase
or decrease in field density depending on local
inclination angles and direction of tilt.
Equation 6 gives the relationship of heading
error versus tilt angle when a compass is tilted
in the north-south rotational axis (also known
as pitch):
θERR = Arctan ( sinα tanϕ )
[6]
where qERR is the heading error caused by
FIGURE 6 tilt, a is the pitch angle compass, and j is the
Because I like to make my robots as expandable and serviceable as possible, most subsystems are
inclination angle of the Earth’s magnetic field.
modularized and plug into the main board using connectors.
To use an example, if your compass were
located in San Francisco, which has a magnetic
field inclination angle of 61°, you could expect a
Wellesley, MA, 1998. heading error of up to 1.8° for every degree of
pitch for the first 10° of tilt. Tilt in the east-west
PNI Corp., “Multipoint Calibration Primer,”
direction (roll) or any compound angle of the
1001766 R01, 2003.
two tilt axes creates similar errors, although the
U.S. Geological Service (USGS), worst-case errors could still be characterized by
geomag.usgs.gov. Equation 6 by simply substituting the pitch angle,
a, with a tilt angle in any direction. Another
circuitcellar.com/ccmaterials SOURCES accuracy-degrading factor would be the lack of
CStamp Module hard iron and soft iron distortion correction in
REFERENCES Ken Gott | cstamp51@earthlink.net the pitch and roll axes. The two most common
[1] Garmin Ltd., www. ways to make a compass insensitive to tilt is to
Maxstream Wireless modems
garmin.com/aboutGPS/. mount a two-axis compass on a gimbal and to
Maxstream | www.maxstream.net
use a three-axis, tilt-compensated compass.
RESOURCES MAXI Dual H-Bridge two-motor driver kit
H.R. Everett, Sensors for Mo- Mondo-tronics, Inc. | www.robotstore.com COMPASS FEATURES
bile Robotics: Theory and Ap- A good compass should have high dynamic
plications, A.K. Peters, Welles- V2Xe Compass module range sensors. The need to compensate
ley, MA, 1995. PNI Corp. | www.pnicorp.com large hard iron offsets is not uncommon, and
R.B. Langley, “The Magnet- C8051F330 Microcontroller can account for 75% to 90% of the sensor’s
ic Compass and GPS,” GPS Silicon Laboratories | www.silabs.com operating range. A good compass will have an
World, September 1, 2003.
operating range that is at least four times the
Earth’s magnetic field density.
CC REBOOT
The end result is illustrated by the red trace in Figure 5, which with this data along with compass heading and magnitude
shows that the robot’s magnetic signature has only a small hard information in a weighted averaging algorithm to increase
iron offset. The compass can easily compensate for this simple heading accuracies.
offset mathematically after a calibration is performed.
To explore the compass’s performance in various Editor’s Note: This article first appeared in Circuit Cellar 165,
environments, I wrote a simple program to perform basic moves April 2004.
76 CIRCUIT CELLAR • MARCH 2015 #296
CC SHOP
ADVANCED CONTROL
1 CC VAULT
ROBOTICS
Untibus et audae eos sequost aspella
ndipsaperios et inis vollab invelitatqui
berum, omnis ullenihicid quas maxi-
min res con everfer ibusae omnitat
Item #: CCVAULT
1 PARALLAX PROPELLER
4
2 CC 2014 CD
2014 was an exciting year for
electronics engineers! The continued 4 ADVANCED CONTROL
success of open-source solutions, ROBOTICS—NEW!
Internet of Things (IoT) revolutions,
and green-energy consciousness has When it comes to robotics, the
changed the face of embedded design future is now! This book simplifies the
indefinitely. In Circuit Cellar’s 2014 theory and best practices of advanced
archive CD, you can find all of these hot robot technologies by providing insight
topics and gain insight into how experts, to communication technologies, control
as well as your peers, are putting the robotics, embedded technology,
newest technologies to the test. You’ll programming, and more. Complete
have access to all articles, schematics, with code samples, schematics, and
and source code published from January design tips. Great reading for beginners
to December 2014. and experts alike.
2
Item #: CD-018-CC2014 Author: Hanno Sander
Item#BK-ELNL-978-0-963013-33-0
TEST YOUR EQ
category/test-your-eq/. You can contact the quizmasters at
eq@circuitcellar.com.
PROBLEM 1—Back in the days of stand-alone UART chips PROBLEM 3—Modern UARTs usually include internal
that required separate baud rate generators, one way to baud rate generators that can divide the input clock by
generate the 3.6864 MHz clock for the baud rate generator an arbitrary integer N. Given an input clock of 16.000
was to take the 16.000 MHz system clock and feed it to a MHz, and assuming that the output of the baud rate
synchronous 4-bit counter that was configured to divide by generator needs to be 16× the actual baud rate, what is
13 by forcing it to load the value 3 when it got to 15, giving the highest standard baud rate for which the frequency
the following waveforms: error is no greater than that generated by the scheme
above?
circuitcellar.com
78 CIRCUIT CELLAR • MARCH 2015 #296
3 4
6 7
9 10
11
12
13
14
15 16
TESTS & CHALLENGES
17
18
19
20
EclipseCrossword.com
ACROSS DOWN
2. Field of 60- or 120-Hz magnetic or electrostatic energy 1. QC (two words)
5. Scan of a range of frequencies 3. A field of radiated energy
6. WW 4. Magnetizable substance based on iron
13. Pot 7. Bending of energy waves as they move around or through
14. Prefix that divides a unit by a billion an obstacle
15. Exhibiting the same physical properties in all directions 8. Any connection between two electrical conductors
17. One millionth of a meter 9. Slicing off of signal peaks
18. To change in value by a discrete step 10. Conductor shared by various circuits
19. RFI, EMI 11. Slower than the speed of sound
20. Test instrument that can make several different measurements 12. Convert a digital signal back into an analog signal
16. Measured in fractions of a farad
IDEA BOX
circuitcellar.com 79
the directory of
PRODUCTS & SERVICES
For current rates, deadlines, and more information contact Peter Wostrel at 978.281.7708 or circuitcellar@smmarketing.us.
Programming
Debugging
$89 Need sensors for your
application?
For PIC® MCUs!
► ICD & ICSP functionality with
CCS IDE Compilers
► Powers & Connects via USB
► FREE CCS Load Software
► Data Streaming with Real-time Call Carlson today for
Diagnostic Data & more...
application specific sensors
View our full line of Dev Tools:
www.ccsinfo.com/CC315 Phone: 218-454-0766
sales@ccsinfo.com
Email: info@maxbotix.com
262-522-6500 x 35 www.maxbotix.com
®
PIC MCU is a registered trademark of Microchip Technology Inc.
Join The
2 layer,4x4inch, FR4(RoHS),0.063”,1oz,
2LPI,Green,1SK,Lead free HASL
www.myropcb.com
OR CALL:
1-888-PCB-MYRO
TRi microEngineering Labs, Inc.
Programmable Logic Controllers
www.melabs.com 888-316-1753
Powerful & Easy Ladder
+BASIC Programming
Ethernet integrated
Programmers for Microchip PIC® Microcontrollers
MODBUS TCP/IP PC-Tethered USB Model (shown):
DI/Os & AI/Os integrated •Standalone software
•Command-line operation
•Hide GUI for automated use
OEM Prices as low as $119 •Override configuration with drop-downs
for full-feature Nano-10 PLC
Stand-Alone Field Programmer:
•Power from target device or adapter
tel : 1 877 TRI-PLCS •Program file stored on SD-CARD
web : www.triplc.com/cci.htm •Programming options stored in file
•Single-button operation
TRIANGLE Starting at $79.95
RESEARCH Program in-circuit or use adapters for unmounted chips.
INTERNATIONAL Zero-Insertion-Force Adapters available for DIP, SOIC, SSOP, TQFP, and more.
PIC is a registered trademark of Microchip Technology Inc. in the USA and other countries.
80 CIRCUIT CELLAR • MARCH 2015 #296
printed circuits with more than nects for these types of devices than a flex circuit? nics these days. Training collars have been around
30 years of experience in the Here are just a few of the current and emerging for a while, but now thanks to shrinking electro-
flexible PCB industry. wearable products that contain flexible circuitry. nics there are collars that contain GPS and mobile
Wrist-Worn Activity and Body Function Monitors: phone capabilities. Today a lost pet can use the GPS
Electronic watches were some of the first wearable to figure out where he is and call his owner for a
If an electronic device is going to be worn on the body comfortably, it has to be flexible. So what
better way to provide interconnects for these types of devices than a flex circuit?
electronics, so it was just a natural progression to ride home! Not really, but if your pet is wearing one
include more advanced functionality than just time of these devices he is never truly lost. The mobile
keeping. Wrist-worn activity monitors are light phone module is used to transmit the GPS coordi-
weight and use multiple axis accelerometers and nates to tracking service, where the owner can log
other sensors to detect motion and body functions. on and track the pet’s location to within a few feet.
They can capture and record daily activity levels as Clothing Worn Electronics: This is an area that
well as sleep cycles. This data is stored in on-board is just starting to emerge, and new technology
memory in the device until it can be downloaded to is being developed to support these applications.
the user’s mobile phone. Since the human hand is Standard flex circuitry is constructed from a com-
larger than the wrist, these monitoring bands need bination of polyimide film, thermo-setting film ad-
to be able to expand when the user is putting it on hesive, and copper foil. Unfortunately, flex circuits
or taking it off. Flexible circuits allow the band to fabricated with these materials will not survive
flex while maintaining connectivity across flexing the crumpling that they would be exposed to in a
sections. washing machine. I have seen several applications
Foot-Worn Sensors: I have seen a lot of applica- where flex has been incorporated into clothing that
tions recently for electronics that are worn on the does not need to be machine washed (e.g., flexible
foot or inside the shoe. Foot-worn electronics mo- heaters in winter gloves). The key to making this
nitor everything from steps taken when running or type of wearable application machine washable is
walking to stride irregularities that can contribute to make the flex circuit not only flexible, but also
to back problems. These sensors need to be very stretchable. This means that both conductors and
thin in order to be comfortable and also very robust dielectrics must be developed that will allow the
to survive in what I would consider a pretty hostile finished product to stretch and still maintain elec-
environment. Flexible circuitry is thin enough to lay trical continuity. This technology is not mainstream
on the sole of a shoe and be almost undetectable yet, but it is on its way.
to the wearer. These examples are just a small sampling of the
Wearable Baby Monitors: Baby monitors are applications that are currently on the market, and
one of the newer products in the wearable elec- there are many others in development. As more
tronics market. New parents no longer have to rely and more of these applications emerge, flexible cir-
on a simple walkie talkie system to keep tabs on cuitry will continue to be the interconnect method
their little ones while they sleep. These monitors of choice.
CC Vault
Unlock the power of embedded design.
This pocket-sized vault comes fully loaded with every issue of Circuit Cellar
magazine and serves as an unparalleled resource for embedded hardware
and software design tips, schematics, and source code.
ENCLOSURES
Imagineering
Winner
Family Entrepreneurship
Award 2014
www.PCBnet.com
847-806-0003 sales@PCBnet.com
Certified Woman-Owned Small Business