Let's Make Robots!

Mr. Tea

I pity the fool who don't like my tea!
AttachmentSize
tea_flowchart.gif46.18 KB
TeaMaker.txt5.34 KB

Alright, Mr. Tea is put on hold pending my graduation date, and the fact that pretty much everything fell apart RIGHT AFTER I finished my presentation. I got an A btw. My instructor is interested in further development I take with this machine, and will likely join us in the near future!

This machine even converted him to the picaxe chip. woot.

 

--------------------------------------------- 

 

So here I am again with anoter robot. I know I haven't finished Mortimer yet, but this one is due in a week and a half, and if I don't finish it, I don't graduate :P

What this machine does started out quite simple: To make the perfect cup of tea. The machine will heat the water using the heating element in a coffee machine, hold the water in the brewing basket to steep the tea, then pour into a cup, add sugar, stir, and monitor the temperature until it is safe to drink.

I've also added some safties to it as well. If the cup or basket is removed during operation, the element turns off and a light will blink letting you know there is an error. Also, if the user puts too much water into the reservoir, the element will not turn on and yes, another LED will blink.

 

Woohoo! Got the speaker hooked up and code working! Now instead of a boring "BEEP BEEP BEEP" when tea is done, it will play a little tune! Now I have to figure out what song I can play that's not too annoying. The tune code in the programming editor lets me use any RTTTL based monophonic tone.

11/14:

The cup sensor is in. I have a momentary pushbutton switch with a lever on it, and over that lever a thin piece of plastic that runs to the other end of the element. It's surprisingly responsive to the placement of the cup, which is what I was hoping for.

Working on assembling the arm and stirring motors now.

11;16:

Well, with some setbacks (see my blog), I wasn't able to get as much done tonight as I hoped, but everything is set up for assembly tomorrow!

Got my geared motor wired and a pulley disc I fashioned the stirring motor is just waiting to be put inside. And the temperature sensor is wired and ready to go!

As always, new pictures are below the old ones, so come along on the journey with me!

Some pictures of the journey:

Mr_tea__5_.jpg

The victim. An unassuming 4 cup coffee maker.

This machine had no clue what was coming to it.

 

Mr_tea__6_.jpg

The insides.

The water sensor wires will go down into the reservoir tank.

Another sensor will be set under the basket to make sure it is in place before the heating element is activated.

 

Mr_tea__8_.jpg

Measuring the maximum amount of water the brewing basket can hold.

I was surprised it could hold so much!

 

Mr_tea__9_.jpg

As long as there is no programmable interface (i.e. just an on and off button), coffee machines are quite simple on the inside.

 

Mr_tea__7_.jpg

The coffee machine had a stop and pour feature, which we will use to our advantage.

Basically when the tea is done steeping, an arm will come up and release the tea.

 

Mr_tea.jpg

This was the proof of concept.

Breadboards are quite useful. It's a lot easier to build on a prototyping board before having to solder everything together.

 

Mr_tea__1_.jpg

Testing the waters...

Since we are using the basket in the tea machine for steeping, we needed to make sure that people didn't overfill the water compartment, causing overflow in the basket. All it does is complete the circuit when both ends of the wire touch the water.

It's safe, I promise!

 

Mr_tea__2_.jpg

In action!

Well, not really. I have a video of this. Essentially it's testing that when a button is pressed, the microprocessor sends a signal to the display module (bottom half of the board) to increase the appropriate number display by one.

 

Mr_tea__3_.jpg

A sideways view of the mess of wires.

It's a jungle in there!

 

Mr_tea__4_.jpg

A closeup of the mess.

I swear, this mess of wires could raise a family of birds.

 

Mr_tea__10_.jpg

This is the bane of my existence.

It's great how everything looks perfect in code, until you actually hook things up and run it.

 

Mr_tea__16_.jpg

I am so freaking proud of this.

This is the bottom half of my breadboard condensed into a 3rd of the space.

You can't see it, but I used IC sockets for the 7 segment displays to raise them so that I can mount the whole thing inside a project box, and have the displays come out through pre-made holes.

 

Mr_tea__29_.jpg

Ain't it pretty?

This is the relayt I'm using to control the heating element. This baby can run up to 240V at 10A with no fans, or 25A with fans running. It has a built in heatsink, and all I need is 8A, but this was the same price. It's controlled by 3-15VDC.

 

Mr_tea__31_.jpg

All nestled in cozy-like. There's a small cavity in the back of the machine that I used to put the relay.

A safe way to keep it from the picaxe and other chips.

 

Mr_tea__38_.jpg

Shaping the project box to fit the round shaped back of the tea machine.

 

Mr_tea__40_.jpg

Drilling holes for buttons and LED display.

Note to self: Wear long sleeves when cutting plastic with a Dremel. I had bits of hot black lava all over my arms. It's kinda cool feeling until you get a large chunk of it on you.

 

Mr_tea__42_.jpg

Drilling out the back and fitting the speaker.

 

Mr_tea__43_.jpg

The insides.

I tried to make it as organized as possible. But with wires hanging all over, it was nice to hide it all in a project box.

The box in the lower left is an old 5V cellphone charger I scavenged.

 

Mr_tea__44_.jpg

Lights and buttons all fitted in.

 

Mr_tea__45_.jpg

...And the back.

I wanted something to protect the speaker, but didn't have any old ones to salvage covers from. While we were at Wally-world shopping, I picked up 4 inches of tuille folded about 4 layers and secured it between the box and the speaker.

Mr_tea__48_.jpg

I needed to make a switch that not only registered to different types of cups, but also didn't make the cup tip either way, so it wouldn't spill over.

I hot-glued the switch to the back and glued a strip of thin plastic to the lever over the momentary switch. It was just a matter of testing the right amount of tension to give the strip so that it easily tripped the cup switch.

 

Mr_tea__49_.jpg

We scraped off the "Coffee" part on the machine, intending to go to a scrapbooking store and buy some rub-on letters.

It looks sort of sad with it just being Mr.

 

Mr_tea__50_.jpgMr_tea__51_.jpg

This is the circuit for the basket sensor. Basically I just have a +5 lead and then a lead to my corresponding pin, the basket has a raised piece of metal on this tab that was a part of the basket.

I swear, this machine looks more and more like it was designed to be modded.

 

Mr_tea__54_.jpg

A closeup of the inner-wiring.

 

Mr_tea__56_.jpg

The stirring arm, unfortunately does not have any clearance room between the basket and the cup, so I'm improvising by boring a hole through the basket, and running the stirring arm through some leftover tubing from sealing the temperature probe.

 

mr_teal__61_.jpg

A super find! This is a multiple gear ratio motor I found at my local "candy store". Only one problem: Whenever the motor ran it lowered the total amount of voltage that the BCD counter triggered. I tried one resistor, but the load on just one was too much. I even tried a 1 watt resistor, but it wasn't as specific as I wanted. My fix?...

 

mr_tea__59_.jpg

Resistors in series!

I know it's a cheap fix, but each resistor can handle a quarter of the load, and I can make it more specific. The magical number? 16.6 ohms. It still gets the motor started, and as long as I don't let it get to full speed, the counter doesn't trigger.

BRILLIANT!

 

mr_teal__63_.jpg

The motor turns this modified pulley I fashioned out of two gears. between each gear is a wire that attaches to....

 

mr_teal__64_.jpg

The stirring motor!

The stirring motor just has one job, to stir. I had to play around a bit to get the right length. The stirring motor connects to...

 

mr_teal__66_.jpg

This! It was a lot larger, to be used as a fan, but I clipped the ends off and sealed the back of it with non-toxic water/heat proof seal.

 

mr_teal__67_.jpg

This is the temperature sensor. I sealed the wires in a heatproof tube. I needed some way to get it submerged into the tea, but able to pull the mug/cup out without haveing to tip it, so I glued a piece of tube to the underside of the basket holder and ran the wires through there. The probe swings easily, but always stops in a down position.

And here's my baby so far...

mr_teal__68_.jpg

Beaut ain't she?

 

100_0359.jpg

Whee!

Slide for the sugar to go into the cup without making a mess.

 

100_0361.jpg

Really not that much clearance for your standard coffee mug...

 

100_0360.jpg

I was pressed for time, and had already sunk enough money into the machine, so I had to ghetto-fy it a bit with some cardboard risers for the arm motor.

 

100_0373.jpg

Oh yes, you get more beautiful with every picture....

Almost there!!!!

 

That's all for now.

Stay tuned folks!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Glad it went well enough to get you through! Entertaining description of the presentation, and glad to hear you'll keep tweaking it some, should be more fun.
I can't leave the thought of a "fuzzy logic" tea machine alone...
Congratuations on the A. Still want to see a video, sugar spraying everywhere and all. (well you did say it was messy, messy makes a video more interesting)

Well, during my presentation, the gear that controls the sugar got stuck on the lid and spilled sugar EVERYWHERE. I wasn't able to get all of it off of the heating element, the sugar carmelized, and stuck to the bottom of the cup.

I now understand why machines don't have an automagic sugar dispenser.

 

Maybe I'll change to use cubed sugar. 

Either way it is a classic, reminds me of shows like "Flubber" with the automatic bacon and eggs machine.

Since then I've seen a much more practical (boring) setup. The guy just put bacon and eggs in a stainless steel container with a heatlamp set up on a timer. Hmm.. the basis of another robot perhaps? Call it Chef like Chef from Southpark.

It would need to say "Hello there children!" when you turned it on. I think I'm becoming obsessed with adding speech to everything...

Parallax is selling en "Emic text-to-speech" module :

http://www.parallax.com/Store/Sensors/CustomKits/tabid/134/txtSearch/speech/List/1/ProductID/108/Default.aspx?SortField=ProductName,ProductName

 that would never let your Mr Tea speechless ;)

(although you would have to rename it 'misses' Tea) 

I've ordered a sound/data recording IC with an i2c interface. It would be perfect for Mr. Tea. Once I've had a play with it I was going to add it to the component section.
Congratulations on the A and off course the Picaxe conversion. Can't wait to see your next project ;)
it is indeed a beauty. I can't Wait to see it in action.