■ Screenshot 6.
With a tap, I
noise. A second
tap ... silence.
■ Photo 5. I was musing about newborns and predicted they would be
issued iPhones and debit cards. I forgot to add a very important item to
the newborn's kit: the ubiquitous CR2032 coin cell.
bool toggle =
bool toggle =
That thought must have run through the Anaren folks’
minds, as well. If you turn the development kit over on its
back, you will find a coin cell holder. As you can see in
Photo 5, the coin cell holder is home to the popular
CR2032. To employ the services of the CR2032, we need
only to populate the coin cell holder, load our
Atmosphere-generated code, and throw slide switch S5
to the BATT position (which is shown in silkscreen in
Photo 5). You can locate S5 which is on the opposite side
of the board using Screenshot 1.
There is nothing significantly different here in the logic
area. Instead of brute force GPIO pin manipulation, the
GPIO elements are steered from an API (Application
Program Interface) call (AIR_GPIO_Write). The red and
green LED driver code is identical with the exception of
the target GPIO pin.
If you take a look at the selection of Atmosphere
Elements, the A20737A AIR module can very easily be
coaxed to communicate with components that speak SPI,
I2C, and RS-232. We can even communicate with devices
or components on a direct logical pin-to-pin level. In
addition to the ability to access sensors, other
microcontrollers, and utility ICs directly from the radio
module, we also have immediate access to the Bluetooth
RF channel on the other side.
Up to this point, we’ve been depending on the multi-sensor development kit’s USB connection for power and
intelligence. Your iPhone doesn’t run around with a cable
attached. The device your iPhone is destined to control
may not have the luxury of a nurturing cable either. So, it
seems that we may need a well-placed battery.
With the advent of Atmosphere and the A20737A AIR
module, it is now possible to visualize, build, load, and
test a smartphone-based Bluetooth control application
without spending thousands of dollars and investing
hundreds of man hours of development time. By the way,
you don’t need an iPhone to utilize Anaren’s Atmosphere
development tool environment. Atmosphere also works
with Android. NV
January 2015 73