Friday, May 6, 2016

Smart Coffee Pot Build and Presentation

This is post is about designing and building a 'smart' coffee pot.

Assembled Smart Coffee Pot


This project was made to solve the problem of coffee after work or school. Often when one leaves work or school a cup of coffee is quite enjoyable. Instead of stopping at a coffee shop and spending $2 - $3 on a single cup, there could be a fresh pot of coffee waiting for you at home. A pot of coffee can cost 50 cents. This will save you a good deal of money and time after a few weeks of use. All that is required is to pre-load the coffee grounds and water into the pot as normal. Then turn of the power switch and walk away.

Here is how the Smart Coffee Pot was built and designed:

The first issue was the design. Our team met after the project was assigned and decided on a prototype design. The prototype would involve a relay, power cord, a standard wall outlet, and a coffee pot. We wanted the final design to be neat, simple, and user friendly. The coffee pot was the first component needed. We were not too picky at this point, we thought that another coffee pot would be used for the final model. The coffee pot was purchased used from Good Will for $5. The same one can be had from Amazon for $30 or $19 with Prime.

Once the coffee pot was purchased, the circuit could be designed. It had to supply power to the coffee pot. This was accomplished by using a power outlet. The power could be switched off or on by a relay or a manual switch. A relay is simply an electronically activated switch. It uses a electric coil to pull a piece of metal towards to close the circuit.


Photo Source: http://www.12voltplanet.co.uk/

A relay was included with the SparkFun inventor's kit that was purchased earlier in the semester. This relay is a SPDT relay while the diagram above shows a SPST relay. The major difference is that a SPDT relay has another terminal. This terminal is the default or 'preferred' one, the switch is resting on that terminal.

Wiring the relay was simple, a current needs to run through the bottom two leads. It needs at least 5v DC to activate. The data sheet for this particulate relay can be found here. This was done by soldering a pin cable to each terminal and then two gator clips were attached to a 9v battery. The AC power was wired to the top terminals. A multi meter was used to find the 'preferred' terminal and the AC power was wired to the other one. 

Here is a picture of the relay wired up:


Here is a video explaining the prototype circuit:



Once the prototype was finished, the final designing could commence. The components had to be chosen. The two parts that still had to be purchased were the WiFi module and the DC power supply. Both of these were bought off of Amazon. The power supply was $5 and the WiFi chip was $6. However, a second module was purchased because the first one did not work. The power supply was removed from the casing to reduce bulk. The 'power on' LED was re-soldered with longer leads and male headers. Female headers were soldered to the board. This reason will be apparent later. Here is the power supply:

Power supply board in the housing. Female headers on the left.

Once all of the components were in, a water resistant housing had to be designed. The housing would be mounted to the coffee pot and hold the arduino and other components. The housing was a crucial because the coffee pot would be in a kitchen. There was a chance that water could be splashed onto the circuit and cause a short cirucit. The design was started be placing the arduino board and the power supply board onto a piece of graph paper. The coffee pot was five inches wide, so the housing had to match that width. Conveniantly, the arduin and power supply board took up five inches with an ≈3/8 inch gap in between.

The coffee pot does have a slight curvature, so the bracket to hold the housing onto the coffee pot had to match that curve. This was accomplished by tracing the back of the coffee pot and measuring the distance between the center line and curve. As it turned out, this was fairly accurate. Once the dimensions were in hand, the housing could be designed in 3D. The software used to design the housing was Creo, which has been discussed on this blog before. 1/4 inch walls were used, which added 1/2 inch to the width . The final dimensions of the box are as follows:

  • Inside dimensions:
    • Width: 5" 
    • Depth: 2.75" 
    • Height: 1.5
  • Outside dimensions:
    • Add 1/2" to width and depth
    Printed box

The bracket was designed as a separate piece. The curve was plotted with points and then connected by lines. Then 1/4" was added to either side. The overall length was 5.5" while the depth was 1.375". This sketch was then extruded to be 5.5" tall. All of the outside corners have a 1/8' round. Here is he printed bracket:

Printed Bracket

The lid for the box was designed in Inkscape and cut in acrylic using the laser cutter. Five holes were cut into the lid, one for the switch, two for the LEDs, and two for the screws for it to be mounted. Several test pieces were cut with cardboard as the supply of acrylic was running low. Here is the final lid mounted onto the box:

Acrylic box lid. The mounting brackets can be seen.

The next challenge was connecting the parts. I decided to use screws so that it could be disassembled if needed. Three tabs were modeled onto the box with 1/8" holes. Three matching holes were made on the flat side of the bracket. There were two self tapping screws included with the Inventor's kit. The holes were sized for these. The parts were assembled in Creo with the assembly tool. This ensured proper alignment of the holes. The screws that were actually used are #4 x 1/2" sheet metal screws purchased from Lowe's. 

#4 x 1/2" sheet metal screws, x5


Here is the packaging:

#4 x 1/2" sheet metal screws. Five per pack
The screws were $1.30 for five, which was all I needed. The box was then screwed together.

Once the housing had been designed, the arduino had to be mounted. This was done by designing a board mount. An arduino is too pricey to simply glue down. Again, Inkscape was used to design the mount. The screw holes were laid out to match the mounting holes on the arduino board. Five larger holes were cut in an 'X' pattern for the glue to adhere to. The arduino was mounted to the board with the self-tapping screws included with the kit. The mount was then glued to the inside of the box.

Arduino mount mounted onto the bracket. Notice the mounting holes
Now that the housing was completed, the circuit had to be assembled. This was fairly simple and quite similar to the prototype. A relay was wired to a transistor and 5v DC. The circuit can be found in the SIK guide on page 71 or 69. The LED part was discarded in favor of the LED being it's own circuit. It was also were AC power had to be connected. A diode was also added to prevent a EMF back flow. Here is the circuit on a breadboard:

IMG_20160503_144919591_HDR.jpg
Circuit laid out. The LED is on the left.

IMG_20160504_140542340_HDR.jpg
Relay wired up.

Now that the circuit was design, it had to be assembled. A circuit board could have been used, but I prefer to simply wire everything together. I work better with linear ideas and wiring everything together is more linear. The power for the LED and relay were wired together. Pin leads were wired to the transistor and LED. A servo also had to be included as a moving part.


Thursday, April 7, 2016

Arduino Input-Output project

This page will cover how to program an input/output for Arduino. This is a partial continuation of the previous Ardunio project, however, it will have an input as well. Here is the design and programming process:

Firstly, the arduino itself needs to be discussed. The most important step is to buy an arduino board. The actual board being used is the SparkFun RedBoard. It is a comparable board to the Arduino Uno, which is brand name equivalent. The RedBoard has the same features as the Uno for a lower price. I have not dealt with the Uno at all, but the RedBoard seems to be a good choice. The RedBoard also came in a kit that was required for this class. If a someone was looking into circuit prototyping, I would highly recommend this kit.

Now that choosing which arduino board to purchase is done the next step are the specifications. According to the arduino website, an Arduino Uno has 14 digital input/output pins and 6 analog input pins. The RedBoard has the same specifications as the Uno in virtually every way. The code is from the SIK guide provided by SparkFun with the Inventor's Kit. This project can be found on page 57. Here is the circuit working:




It is fairly simple, the circuit uses and RGB LED and a potentiometer. The potentiometer has different output values and those are sent to the arduino board. Based on what value is received the arduino then outputs different levels of voltage to the LED. An RGB LED has four leads, also known as legs. Three legs control what the color is while the fourth is the ground. This diagram shows which legs do what:

Photo Source: http://howtomechatronics.com/

There are also four resistors, x3 330 ohm and x1 10k ohm. These help prevent backload and lower and regulate voltage down to appropriate levels. This schematic can be found in the SIK guide, as aforementioned. I did change the soft/flexible potentiometer for a standard one, a dial potentiometer. This allows for precise control of colors. If you are interested in exact details, either watch the video or read the online PDF. The link to the code can be found in the SIK Guide PDF on page 9.

This was a simple and straight forward project. There is little, if any, to change or improve. This style of project could be applied to various projects, like with a stepper motor or servo. It would you to precisely control the position of an arm or how far the motor rotates. The applications are truly endless. Another fun and simple project.

Thursday, March 24, 2016

EGR 150-06 Team Consensus

Here is the Team Consensus for my EGR 150-06 team. This is a basic concept of I think the final project should be.

These are the questions that Dr. Harris posed:

  1. What questions do you ask? (Think of IDEO)
  2. Where do you get the answers you seek?
    • internet
    • books
    • interview
  3. What are the engineering skills you have to be successful?
  4. What are the engineering skills you lack to be successful?
  5. What is the solution trying to accomplish?
  6. What are the criteria that will be judged? (think safety in the IDEO video)
  7. What other questions are there?

Dr. Harris references a company called IDEO, they are a design company that tries to innovate while creating unique designs and solutions. There are some intriguing videos about IDEO that are worth watching.

Here is my consensus:

EGR 150-06 Final Team Consensus
Project: “Tweetable Coffee Pot”
  • What is the main goal?
    • To create a Twitter activated coffee pot
  • What questions will your team ask? 
    • How will we interface the arduino with the internet?
    • What electrical components will we need?
    • What will the layout be?
    • How will the 3D printer, laser cutter, and vinyl cutter be incorporated into this project?
  • Where will your team get the answers it seeks?
    • The main source of information will be the internet. We will use websites like Instructables and use citations when needed.
    • This article will provide much of the needed information 
    • Magazines may also be used.
    • We will also talk to the TAs in the FabLab for advice.
  • What engineering skills does your team have to be successful?
    • Basic circuit layout and building
    • Basic 3D design and layout
    • Creativity
    • Time mangement
  • What engineering skills does your team lack to be successful?
    • Programing skills with Python and C++
    • Fabrication
  • What are the criteria that will be judged?
    • How was the 3D printed part, vinyl cut part, and laser cut part incorporated?
    • What was the moving part?
    • Team work
    • Presentation of the project
    • Performance of the final product
    • Incorporation of the Arduino board
  • What other questions are there?
    • How much money will be spent?
    • Where will the resources come from?