If you go to the Seeed Studio site, you will find “current detection sensors” - here’s a link:
http://www.seeedstudio.com/depot/noninvasive-ac-current-sensor-30a-max-p-519.html?cPath=61_70
These clamp around an electrical line, and based on current flow, induce a voltage in the sensor (proportional to the amount of current flowing in the line - so you can monitor electricity usage if you wanted to). They are real similar to the “clamp on” style multimeters you see sold here and there for AC current usage (just a smaller diameter). They are meant (I believe) to be used in a system to monitor current flow through the different distribution “legs” of an AC distribution circuit; you could, in theory (something I have thought about) put onel of these on each of the “hot” lines in your circuit breaker box at your house, and run them to an Arduino to monitor individual current consumption of each circuit in the house.
This voltage, however, is an AC voltage - you would need to run that through a rectification circuit to convert it to DC, and then (maybe, it is difficult to tell from the spec on the site - you might contact them about it) if the voltage is above 5V DC, use a voltage divider to keep it in range of the Arduino’s analog inputs.
What you should get, though, is a voltage output that varies between 0V (no power) and some voltage (1V? 5V?), indicating maximum current (?) - once again, some of this is “up in the air” for me because of Seeed Studio’s poor specs.
You could possibly try to homebrew your own current sensor by taking a piece of PVC pipe that is larger than the plug and cord on the appliance/light, and wrapping several turns (experiment - it will depend on the size of your wire and other factors) of wire around it and securing the resulting coil (keep the turns neat and layered neatly for best results); essentially constructing a large diameter open coil.
Run the plug and wire from the appliance/light through it, and plug it in. Hook the two wires from the coil up to a multimeter set to AC voltage (try a high range first, then switch it down gradually); with the appliance/lamp off, it should read zero (or close to it); turning the light on should cause a level of voltage to appear in the coil. Add or subtract windings on the coil until the voltage level you want appears. On your meter set to AC voltage reading, this voltage level shouldn’t be too big, 5-12 volts is sufficient.
All you have to do then is build the same rectification and voltage divider (if needed) to bring it in range for the Arduino’s analog inputs.
Whatever you do DON’T EVEN THINK ABOUT WRAPPING THE WIRE DIRECTLY AROUND THE CORD. This would be inherently unsafe; if you need your coil closer to the cord, then you will have to devise a means of clamping a smaller coil around the cord, or disassembling the cord and running it through the smaller diameter coil.
Hope this helps, and BE CAREFUL.
