Mint-Sized Success Meter (quit smoking!) with Arduino

There comes a time in life to put childish things behind and give up nasty habits. Some, like smoking, can be damn hard without constant encouragement. It was time for me to combine my favorite hobby with my driving goal and make this: The Quit Success Meter! For my other Arduino contraptions, take a look at thoughtfix.com

Step 1: Parts, Tools, and Component Preparation

The links all go to the components I used in this project.

Additional components:
Solid core hookup wire. – Radio Shack
Standoffs and screws (to mount the board in the tin. I used a kit for PC motherboards)
4 pin female header (for the ChronoDot) and 8 pin female header (for the LCD – I cut two pins off a 6 pin) – Adafruit
Two micro switches (one for system power, one for LCD power) – Radio Shack

Arduino quit smoking meter
Tools:
Solder and soldering iron – For this, having a digital station helped a lot. – Radio Shack
Flush/diagonal cutter
Wire stripper
Multimeter – Radio Shack
Dremel rotary tool or other cutting tool. I used a Dremel 4000
Panavise Junior, Helping Hands, or other tool to help soldering. – Radio Shack
FTDI Friend or FTDI Cable (to program the Arduino) – Adafruit
Arduino software.

Build everything on a prototyping board before you even touch the the Perma-Proto board. Worry about the power switches later.

First, assemble the ChronoDot, Arduino Pro Mini, and LiPoly charger according to their own instructions. Use the headers on the top of the LCD (the ones labeled 1-8, not the ones with the text labels) and use a right-angle pin line on the Arduino programming headers so they don’t stick up. There is no need to attach headers to the ChronoDot’s BAT/32K/SQW/RST pins.

Attach the LiPoly charger board’s SYS OUT + pin to the proto boards voltage line and – to the ground line. Connect the Arduino’s VCC and GND lines to the positive/negative rails on the proto board.

Step 2: Wiring

The LCD is wired just like Adafruit example code:
Proto board + rail – LCD VCC
Proto board – rail – LCD GND
Arduino pin 3 – LCD reset (RST)
Arduino pin 4 – LCD chip select (CS)
Arduino pin 5 – Data/Command select (D/C)
Arduino pin 6 – Serial data out (DIN)
Arduino pin 7 – Serial clock out (SCLK)
Proto board + rail (optional: adding a switch to this line) – LCD LED

The ChronoDot uses the I2C lines: A4 and A5. On the Arduino Pro Mini, those are not attached to the standard pin lines but are broken out into adjacent pins. The photo shows the location of the lines from the under side.

Arduino A4: ChronoDot SDL
Arduino A5: ChronoDot SCL
Power line: ChronoDot VCC
Ground line: ChronoDot GND

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]Main Components:
Arduino Pro Mini 3.3v (8MHz for low power use) – Sparkfun
Nokia 5110 LCD – Adafruit or SparkFun
LiPoly battery and USB charger kit – Sparkfun
ChronoDot RTC – Adafruit
Perma-Proto mint tin board and matching tin – Adafruit[/box]

For more detail: Mint-Sized Success Meter (quit smoking!) with Arduino


About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter
Scroll to Top