Archive | October, 2011

I am an antenna

18 Oct

I looked at the spectrum of the EMF detector. (ours has an 8 M resistor rather than a 3 M but otherwise is the same as the original) There is a big AC component (probably 60 Hz) that shows up when I touch the wire. The Arduino can read the serial port fast enough to sample this and higher frequency components. My datalogger shield is in use, so I just logged it using a cable to my Mac. The Arduino serial terminal could also work. (The cable probably is affecting the signal in some way that won’t be happening in a portable system, so a datalogger shield will be coming back soon!)
Here’s the signal from touching the antenna five times:

Look at what happens right when I start to touch the antenna (it’s a zoom at the center spike in the image above) The touches are made of the positive side of a high frequency wave. By touching it, I am making the antenna much larger and picking up some 60 Hz from the room.

From MATLAB here’s a frequency analysis on the “touch” and “non-touch” parts of the signal, blue spikes are the spectrum when it’s touched. Green spikes are from when it’s not touched. Note that the amplitude of the blue spikes, shown on the left side, is much higher than that of the green.

Could we use this to detect not only a person touching the antenna (there are other, better touch sensors out there) but also, whether there are transformers or light switches near the person, and whether those are on or off?

Here’s the code on the Arduino, it’s just a simple loop at the highest serial speed I tried (115200)

int inPin = 5;                                  //analog 5
float val;                                         //where to store info from analog 5

void setup() {



void loop() {

val = analogRead(inPin);

To log this on the Mac, open a X11 window and type
screen -L /dev/tty.usbmodemXXXXX 115200
(your usb modem name will vary). Start the sketch on the Arduino whenever ready. This will write a file called screenlog.0 in the working directory. Caution, it appends new data to the existing screenlog–so you should probably rename your log file and erase screenlog.0 when done.

I found this to log at about 1414 samples/sec, by guessing the first peak in the spectrum being 60 Hz. This sampling frequency is consistent with the approximate amount of time I ran the sketch and the number of samples I got. A timestamp would be much nicer, and that is another bonus of going to the datalogger shield.

Metawatch platform: warranty voided

4 Oct

I looked inside an analog MetaWatch. The MetaWatch connects to an Android phone and brings small important bits of information to your attention. This could be a good wrist-based sensor platform. (Wrists are near things your fingers are doing, for example switching lights on/off) It’s a good place to put a short-range sensor for electromagnetic fields (EMF)

Can we tap into the MetaWatch’s MSP430 processor? There are lots of TPs (Test Points) here.

I took off the back with the 4 tiny screws. The battery is a coin cell one, I thought maybe there would be a LiPo. The white thing is the buzzer.Take out the red thing after removing 4 more tiny screws, shift it clear from the small metal clips at the sides. Behind the red thing, a circuit board. Press on the lever with a toothpick in order to pull out the knob that’s used to set the analog clock. The black thing is the MSP430 chip that does everything.

Now the watch pops out easily. I wanted to see what was on the other side of the circuit board. Did I have to take the hands off the watch? No, but I did (it turned out OK but wasted some time). Instead, I could have just undone the super tiny screws near the toothpick in the picture above, in addition to two philips (+) screws that held it to Red Thing 2.

Analog Metawatch remove red thing 2

Finally, Red Thing 2 comes off. You can see the watch motor stuck to Red Thing 2 and the rest is a circuit board.

OLED side of MetaWatch circuit board

Here are the two OLED screens, flipped up.

Finally, the watch is safely back together and working 🙂 for now

Point cloud visualization of electric field around RFID reader

3 Oct

If you have not seen this from 2009, check it out. This is a good example of sensor-based visualization of electric fields around appliances:

Field around a RFID reader visualized using sensor and LEDs by Berg design firm


Other work at the Berg design firm’s site deals with wi-fi visualizations.

Sensors Everywhere Meeting Monday Sept 26

3 Oct

HI all, for the Sensors Everywhere energy-monitoring project we had on Monday at 6pm:

-An Arduino with data logging shield and electromagnetic field (EMF)
–it’s a wire and a resistor, we plugged in an 8 Megohm resistor.

-Amplified EMF detector shield (Thank you Chris Isert for getting this

-The “Batphone,” an ipod that collects the acoustic signature of your
location–works ok, let’s see how it does at the space to keep track
of where the Arduino went.
Result: maybe it can keep track of location to within about ten feet.

-I got the Kill-A-Watt out of its horrible plastic clamshell and it is
ready to go measure things. Result: can tell if my computer’s plugged into the wall wart or not, can see its power consumption.

-We could easily get the EMF detector to light up near plugs, the microwave and a high voltage source

-We found we needed a tripod and a brighter LED to image how the Arduino EMF detector is picking up the electronic noise around appliances. The red LED on the EMF Arduino is too directional for good video analysis. A pingpong ball makes a good diffuser but the LED has to be brighter.

Aug 29 Meeting Summary

3 Oct

We had about 10 attendees and others working at LVL1 already Monday night!
There was lots of overlap with the Quantified Self group. If the above
goals don’t fit your exact interests but you want to join up and work
on sensors in general, that is great.

I made a wiki for the project on LVL1’s site

For anyone wanting to participate in the energy monitoring project,
we’re looking for a few specific results:
–A visualization of stray electric fields (like those measured by a
Home Depot live-wire detector) overlaid on a photo of the space.
–Automatically generate a “timeline” of an individual’s energy-using
activities within the space, for instance: Turned on light and fan,
ran laser cutter for x minutes, used y watts, turned off light and
went away
(Do the timeline using the simplest set of mobile sensors/mobile
phones possible.)
–Generate a ton of real-world data for U of L students/faculty (and
anyone else) to apply visualization and machine learning algorithms.

Things that would be helpful along the way are
–Borrow a good EMF detector and spectrum analyzer to figure out what
to look for in the e-field when a user flips a switch
–More spatial data collection, build a datalogger shield for your
Arduino and carry around some sensors (temperature, lighting and
electric fields, and whatever else would help infer what you are
–Someone with an iPhone to try out the “Batphone” app to locate a
user within the space
–User interface expert: we could use a minimally annoying mobile-
phone based survey to ask what the user is doing when the sensors
detect something new
–More Kill-A-Watt power monitors, or even build some Tweet-A-Watts
and code to gather true energy consumption data for judging the
accuracy of the timeline.
–A 3D model of the LVL1 space –for instance the Counterstrike game
level exported into some common format!
–Make sensors small and glove-wearable

Meeting at LVL1, August 29th 2011

3 Oct

Equipment for starting off the project includes

-An Adafruit datalogger shield with light and temp sensor, real time
clock and SD card

Adafruit Light and Temperature Logger Pack

Some assembly required. There is room for an electric field sensor to
detect whether switches are flipped or wall warts are plugged in.
-A Kill-A-Watt to measure the energy consumed by those appliances

Kill-A-Watt single power meter from P3 International

Sensors Everywhere

3 Oct

Let’s use the mobile sensors in phones, plus additional small wearable sensors to discover how we are using energy in homes and offices. This project is being developed at the University of Louisville and at the  LVL1 hackerspace in downtown Louisville.