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.
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
Solder and soldering iron – For this, having a digital station helped a lot. – Radio Shack
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
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
For more detail: Mint-Sized Success Meter (quit smoking!) with Arduino
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic – Simulation – PCB Layout – Gerber Viewer
JLCPCB Prototype: Only $2 for 10pcs 10×10cm, 24 hours Quick Turn, DHL Delivery in 3 days