For anything of significant use, I think you need something like the Beagle Board (beagleboard.org) or a Gumstix. Anyone know of any others?
For anything of significant use, I think you need something like the Beagle Board (beagleboard.org) or a Gumstix. Anyone know of any others?
If you want to build a white-LED-driven stroboscope to check your engine timing, or get fault codes out of your OBD-II, or sound an alarm when the air conditioner is on and the window is open, or control your five-axis robot, etc etc etc., something like this is ideal.
Atmel has a set of application notes for the chip at http://www.atmel.com/dyn/products/app_notes.asp?part_id=4097 that show some example things you can do with it.
Can you do that in reverse? i.e. make an oscillator who's frequency depends on the input (resistance presumably), then each time the oscillation goes above a certain voltage it would trigger a digital 'on' signal (edge trigger I guess). Count how many of those you get per time, and you have an ADC.
Would that work?
Alternately, there is an old technique that generates a PWM-like output that is added with the signal-under-test (the thing you want to measure :-) and the output of that addition is monitored by an input pin. Measure the on vs. off time (PWM) at the input pin and you have a fairly accurate ADC. Low resolution, but it works.
But honestly, with so many precise, accurate and cheap ADCs available these days, doing conversions like this in software is relegated to designs where pennies are significant and the manufacturing costs dwarf the development time.
http://www.analog.com/en/analog-to-digital-converters/voltag...
Also, sometimes all you care about is the value of a signal relative to a threshold, so you use a simple comparator to make a higher/lower signal.
http://www.designingwithsensors.com/applications/all_article...
I know very little about hardware hacking but I had an idea the other day: I wanted to rig a mini-stoplight up (green, amber, red LEDs) that I could plug into my computer's USB port and hit hot keys to change which LED was lit.
Then my wife could look over and see if I was super-focused or not. When I was thinking about code or trying to do science writing, I would toggle the thing to the red LED; when I was screwing around on HN, I would toggle it to green.
I looked around naively but couldn't find something small & easy. This product could maybe fit the bill nicely.
Whether my wife would appreciate such a thing is another matter. :)
At that point, you could probably sell the thing on thinkgeek.com and watch cubicles everywhere fill up with activity indicators. Of course, there would have to be manual override, so cube workers could set it to red all day when they don't feel like doing anything.
When a Terminal window is in the foreground and has an open ssh session --> amber
When Firefox in foreground, displaying news.ycombinator.com --> green.
Never automatic red, though: I would want to conserve its signaling value, so that it would always mean, "if you talk to me right now you are going to mess up a thought structure that was difficult to build".
[edit:
Hm, a little bluetooth-enabled one of these actually would be a pretty cool thinkgeek product.
]
-- In AppleScript while I wait for tea to steep...
if application "Terminal" is frontmost then
tell application "Terminal"
get name of first item of windows of it
if result contains "ssh" then
set red to false
set yellow to true
set green to false
end if
end tell
end if
-- or a one-liner...
if application "Terminal" is frontmost then tell application "Terminal" to ¬
if (name of first item of windows of it contains "ssh") then set stoplight to "yellow"Color and write text on it.
Turn so appropriate color is facing outward
Voilà.
Extra points for if it: a. has an ethernet port b. reads rss feeds or email
My wife did the boolean version of this, though, when I told her I wanted to spend $100 on a fancy board from National Instruments. She folded a piece of paper in two, wrote "DO NOT DISTURB" on one half, and propped it up next to me.
IDE/text edit open -> red light, web browser -> yellow, game -> green.
Once adafruit (http://adafruit.com/) gets the starter kit (http://is.gd/4sRs) back in stock, I'm going to order one for myself.
When I saw this I also started thinking of connecting it to a relay for lighting applications. It'd be fun at a party to connect this to a set of relays and lamps and drive it from the output of a beat detection algorithm. Or to have it automatically dim the lights in the living room when the PVR computer starts a movie.
This is a great way to test ideas on the cheap.