Build It
Take an accelerometer, add a microcontroller and display, and watch the dollars fly out of your carburetor

Gas Guzzler Meter:  Dave Prochnow

TIME: 8 HOURS
COST: $58.59
DIFFICULTY: MODERATE

PARTS

  • Rock bottom Freeduino kit plus (Wulfden at Hawk’s Mountain #RBFK+; $12)
  • Parallax Memsic 2125 accelerometer (Mouser #619-28017; $29.00)
  • Kingbright LED green display (Mouser #604-BC5612GWA; $2.73)
  • PacTec plastic box (Mouser #616-69313-510-000; $2.19)
  • Hammond nylon belt clip (Mouser #546-1599-CLIP; $1.00)
  • Resistor 220-ohm (Mouser #660-CFS1/4CT52R221J; $0.03)
  • SPDT switch (SparkFun Electronics #COM-00102; $1.50)
  • 8-pin IC socket (Mouser #571-1-390261-2; $0.15)
  • (1) Hookup wire (RadioShack #278-1224; $5.99)
  • (1) 9-Volt battery snap (All Electronics #BST-3; $1.00)
  • 9V battery (local purchase; $3.00)
  • Custom Arduino Sketch code (free)

    STEPS

    1. Build the Rock Bottom Freeduino Kit plus. You will need an FTDI USB TTL-232RL cable for programming the Sketch code onto the Freeduino. Download our Sketch code and burn the .pde onto your Freeduino.
    2. Drill eight holes (matching the configuration of the 8-pin IC socket) in the plastic box’s lid. Solder three shorts lengths of wire to pins 5-7 of the socket. Route these wires through the holes in the lid and into the inside of the box. Mount the socket to the box’s lid. Solder a jumper between pins 4 and 5 of the socket on the inside of the box.
    3. Drill three holes (matching the alignment of the SPDT switch) in the plastic box’s lid. Mount the SPDT switch to the outside of the lid with its leads routed through these three holes.
    4. Cut two slots in the upper and lower sides of the plastic box’s front panel. These slots will receive the LED display’s pins/wires. Mount the LED display to the outside of this front panel with its pins centered in the two slots.
    5. Solder one lead of the 220-ohm resistor to pin 6 of the LED display. Solder one of the Freeduino GND pins to the other lead of the resistor. Use the wiring guide in the Sketch documentation to connect both the Parallax accelerometer and the LED display to the Freeduino pins.
    6. Wire the black lead of the 9-Volt battery snap to the G pad of the Freeduino’s voltage regulator. The red lead is soldered to one of the outside pins of the SPDT switch. Connect a short wire between the middle pin of the SPDT switch to the +V pad of the Freeduino’s voltage regulator.
    7. Gas Guzzler Meter Assembly:  Dave Prochnow

    8. Plug the Parallax accelerometer into the 8-pin IC socket on the box’s lid. Match the six pins of the accelerometer with pins 2-7 of the socket. Make sure that the arrow on the top of the accelerometer is pointing towards the back of the plastic box.
    9. Test your work by temporarily installing a 9V battery in the snap and turning the switch on. You should see the “PopSci” splash screen followed by a display of numbers (cents + dollars) as you tilt the box’s lid. If you don’t see this display, immediately turn off the switch, remove the battery, and check all of your wiring.
    10. Once you’ve tested your meter and you’re satisfied with its operation (also make all code modifications prior to this step), you must modify the Freeduino. Remove both the Pin 13 LED/resistor combination and the 6-pin right angle FTDI programming header. These components must be removed, otherwise the Freeduino will not fit inside the plastic box. Alternatively, you could use a larger project box.
    11. Carefully pack the Freeduino, 9V battery, and wiring inside the plastic box. The Freeduino should be installed on its side, resting against the front of the two screw posts. The 9V battery should be insulated with tape and placed behind the two screw posts. Everything will fit inside the box when the Freeduino is placed in front of the two screw posts.

    Now take your Gas Guzzler Meter for a test drive. Just clip it under one of your front windshield visors and turn it on. Ensure that the accelerometer is perfectly level and its arrow is pointing towards the front of your automobile. The display shows a calculated value for the amount of money being consumed by your engine. This value is displayed in U.S. dollars format (e.g., X.xx). Impress your friends, drive responsibly, and keep those dollars in your pocket.

single page
Page 2 of 2 « first‹ previous12
Want to read more articles like this, plus tips and tricks, home hacks, DIY projects, and more? Subscribe to Popular Science today, for less than $1 per issue!

5 Comments

Is threre anywhre where you can buy prebuilt ones

http://the.nerd.herd.group.googlepages.com/

Article is pretty interesting, but the link for the code doesn't work ( Can't find page....)

This was so cool I had to build it. Done!

Here's a page with pics:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1223765576/0#0

The code is a little clumsy though; it's a bit slow (maybe if it used a 20Mhz crystal it would be faster...?), and the readings are REALLY off...It's neat though, and to some extent pretty cool; I still think the code could use some revising though...

Nice information thank you

Extractor 1.4
-----------
www.emailextractor14.com/
www.emailextractor14.com/?page_id=98

I am at a lose I drive a 1995 Lincoln Mark VIII and it already has one of these that tells me continuously what my MPG is. Come on, its 16 years old!

Popular Tags

Regular Features



June 2013: American Energy Independence

Five amazing, clean technologies that will set us free, in this month's energy-focused issue. Also: how to build a better bomb detector, the robotic toys that are raising your children, a human catapult, the world's smallest arcade, and much more.


Online Content Director: Suzanne LaBarre | Email
Senior Editor: Paul Adams | Email
Associate Editor: Dan Nosowitz | Email
Assistant Editor: Colin Lecher | Email
Assistant Editor: Rose Pastore | Email

Contributing Writers:
Rebecca Boyle | Email
Kelsey D. Atherton | Email
Francie Diep | Email
Shaunacy Ferro | Email

circ-top-header.gif
circ-cover.gif