Good Day....
Just finished a 3 week project and thought I would share....
The original concept and what functionality I wanted it to have:
Start and pause.
Cycle count.
Shut down after completing x number of cycles.
Cycle count adjustment during program run.
Independent on and off time settings.
On and off time is to be adjustable during program run.
Save and load program. (this was never implement, at least not yet)
A 3D printer was used to fabricate the case.
You can find the model here: https://grabcad.com/library/timer-relay-assembly-1
Communication with the LCD was done with the adafruit I2C backpack.
This was my first experience using the I2C and it was truly simple to do.
I started off coding a few buttons and working out the LCD display.
The relay itself came from Sparkfun:
After modeling the relay assembly and making a simple breadboard circuit I drew up a full schematic.
This is the function keypad assembled and soldered.
Keypad assembled and soldered.
I bought some really cheap Chinese protoboards from eBay.
They have very small mounting holes. Not sure I would purchase them again
Link To eBay Protoboards
MakerBot or Make Her Not....
The first 3D print was a bust.
The part did not stick to the bed properly and eventually crashed the print head.
I resurfaced the 3D printer bed with blue painters tape and eventually got a "good enough" print.
Though I printed holes for self tapping screws nothing lined up very well due to some 3D print warping, but the LCD display fit like a glove. Hot melt glue is really a great thing.
The bottom half assembled.
I found that the surface mount red board Arduino made it easy to solder wires directly to the pin pads.
The finished product.
Doing things differently I would add a small lip around the buttons. It is easy to unintentionally bump them. Though the way the code is written nothing will happen unless two buttons are pushed simultaneously.
The Code:
Please forgive the attached ino file.
Little to no documentation and I am not a professional coder.... But it works.
Moving on to other projects.
Best Regards
For larger full resolution pictures visit:
http://www.gertweb.com/files/projects/
Timer_Relay_Adder_1_0.ino (21.1 KB)