Author Topic: CalCup : a coffee maker link to your calc ...  (Read 7159 times)

0 Members and 1 Guest are viewing this topic.

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
CalCup : a coffee maker link to your calc ...
« on: April 18, 2011, 03:55:40 am »
I had a crazy idea :
make a coffee maker with milk and sugars, which is link to an arduino platform.
The com pins of arduino are link to calc ...

Now I've done just the program where you can choose what you want, in french or english, and save your prefs.
I've done too the commands list for communication ( Is there milk ? / Give a sugar / It's done ! )  :crazy:

I think it's a bit incredible ...

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: CalCup : a coffee maker link to your calc ...
« Reply #1 on: April 18, 2011, 04:03:44 am »
That would be doable. You just have to find such a coffee brewer. I like this lol.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: CalCup : a coffee maker link to your calc ...
« Reply #2 on: April 18, 2011, 05:25:46 am »
Haha lol. Seems indeed doable, but you have to change the coffee brewer, that might be hard.
I'm not a nerd but I pretend:

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: CalCup : a coffee maker link to your calc ...
« Reply #3 on: April 18, 2011, 07:26:52 am »
I must do :
- a pump for milk > arduino
- a recipient for milk
- same for water > arduino
- same for water
- motor to open/close coffee recipient > arduino
- coffee recipient
- one or two motors to block the second sugar while make fall the first >arduino
- something to command the hot by arduino > arduino
as captors :
- is there any sugar anymore ?
- " water " ?
- " milk " ?
- " coffee " ?

> ARDUINO
and maybe :
- LEDs for progress
« Last Edit: April 18, 2011, 07:32:15 am by zero44 »
____________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #4 on: April 18, 2011, 07:37:34 am »
I must do :
- a pump for milk > arduino
- a recipient for milk
- same for water > arduino
- same for water
- motor to open/close coffee recipient > arduino
- coffee recipient
- one or two motors to block the second sugar while make fall the first >arduino
- something to command the hot by arduino > arduino
as captors :
- is there any sugar anymore ?
- " water " ?
- " milk " ?
- " coffee " ?

> ARDUINO
and maybe :
- LEDs for progress

Concerning the LEDs, multiple LEDs, like the progress:
one turned on
2 turned on
3 turned on
4 turned on
5 turned on = FINISHED

Or is it like one led which brightness goes up and up?

Offline zero44

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 128
  • Rating: +21/-0
  • <!--//www.ustr.net/infrared/infrared1.shtml-->
    • View Profile
    • zero44
Re: CalCup : a coffee maker link to your calc ...
« Reply #5 on: April 18, 2011, 02:23:18 pm »
.
I don't really know for the moment ...
At first, I make the first Axe version of X-8lue ( but it'll be the 0.0.3 ^.^ )
But I think the progress will be displayed on calc's screen .

AxCoffee source code, if you're interested ...
(AxeLib's code is in X-8lue's topic, in my sig)
Spoiler For Spoiler:
:.COFFEE CalCup 1.0  TIcoffee
:prgmAXELIB
:sub(6M7
:identity(FF008092BEA4A292BEA48092B68080B8B6C680FDB6C580C57F460838081007E0)
:
:[F0A8E8A8E8000000F0A8F0A8A8000000→Pic1
:[7CC6828282C67C007CFEFAD6EEFE7C00
:[7C82AA92AA827C00
:Lbl 0
:0→Θ
:"<fonct>v</fonct>Coffee"→Str9
:!If GetCalc(Str9)→Z
:.ARC
:UnArchive Str9
:If GetCalc(Str9)→Z
:1→Θ
:Else
:.CREATE 32 BYTE
:GetCalc(Str9,32)→Z→Θ
:0→{Z}
:Return!If Z
:End
:End
:
:
:ClrDrawClrDraw<sup>r</sup>
:Fix 5
:
:Text(36,29,"TI-Coffee"
:StorePic ClrDraw
:Text(35,29,"TI-Coffee"
:DispGraph<sup>r</sup><sup>r</sup>
:Repeat getKey(54):DispGraph<sup>r</sup><sup>r</sup>
:End
:0→W
:If {Z}
:Goto CF
:End
:.INITIALISATION
:Lbl INI
:ClrDraw
:Text(20,19,"Setup language:"
:rref(18,18,56,9
:Line(18,18,18,39
:Line(73,18,73,39
:Line(19,40,72,40
:Pxl-Off(18,18:Pxl-Off(73,18
:Text(28,30,"<
:Text(58,30,">
:"English"→Str7
:[00]
:"French "
:[00]
:0→C
:DispGraph
:Pause 450
:Repeat getKey(54) or W
:getKey(15)→W
:If getKey(1) or getKey(2) or getKey(3) or getKey(4):Pause 360
:C+1^2→C:End
:Text(33,30,C*9+Str7
:DispGraph
:End
:C→{Z+1}
:0→{Z+3}
:
:1→{Z}
:Lbl CF
:If W:Goto END:End
:ClrDrawClrDraw<sup>r</sup>
:0→S→L+1→T+7→E:{Z+1}→C
:If {Z+3}
:0→E:{Z+4}→S:{Z+5}→L:{Z+6}→T
:
:End
:"Settings→Str0
:[00:"Reglages
:[00:"Sugars:
:[00:"Sucres:
:[00:"Milk:  
:[00:"Lait:  
:[00:"Cups:  
:[00:"Tasses:
:[00:"Coffee !
:[00:"Cafe !  
:[00:"No !
:[00:"Non!
:[00:"Yes!
:[00:"Oui!
:[00:"Save prefs
:[00:"Enregistrer
:[00:"Reset  
:[00:"Reinit.
:[00:"Cancel  
:[00:"Annuler
:[00:"Coffee:
:[00:"Cafe:  
:[00:"Water:  
:[00:"Eau:    
:
:
:Goto A
:Lbl DRW
:Pt-On(2,2,8*C+Pic1
:Line(8,2,8,6
:Text(10,1,C*10+Str0
:rref(0,0,96,9
:Line(0,0,0,62
:Line(95,0,95,62
:Line(1,63,94,63
:Pxl-Off(0,0
:Pxl-Off(95,0
:Text(10,55,C*12+111+Str0
:Pt-On(2,55,E+16+Pic1:
:sub(BUT<sup>r</sup>,64,39,30,7,C*9+73+Str0,1
:sub(BUT<sup>r</sup>,64,55,30,7,C*9+135+Str0,1
:sub(BUT<sup>r</sup>,64,47,30,7,C*9+153+Str0,1
:Text(3,12,C*9+19+Str0
:Text(32,12,S►Dec
:sub(BUT<sup>r</sup>,30,12,7,7,0,0
:Text(3,24,C*9+37+Str0
:sub(BUT<sup>r</sup>,30,24,17,7,5*C+(10*L)+91+Str0,1
:Text(31,36,T►Dec:Text(39,36,T+1►Dec:Text(35,36,"-"
:Text(3,36,C*9+55+Str0
:sub(BUT<sup>r</sup>,30,36,14,7,0,0
:Pt-Change(88,1,Pic1+32
:ClrDraw<sup>r</sup>StorePic
:Return
:
:Lbl 2
:Pt-On(X,Y,Pic0
:Pt-Change(X,Y,Pic0
:Pt-On(X,Y,Pic0+8
:Return
:
:Lbl BUT
:If r<sub>6</sub>:Text(r<sub>1</sub>+2,r<sub>2</sub>,r<sub>5</sub>:End
:rref(r<sub>1</sub>,r<sub>2</sub>,r<sub>3</sub>,r<sub>4</sub>
:Pxl-Off(r<sub>1</sub>,r<sub>2</sub>
:Pxl-Off(r<sub>1</sub>,r<sub>2</sub>+r<sub>4</sub>-1
:Pxl-Off(r<sub>1</sub>+r<sub>3</sub>-1,r<sub>2</sub>
:Pxl-Off(r<sub>1</sub>+r<sub>3</sub>-1,r<sub>2</sub>+r<sub>4</sub>-1
:Return
:
:Lbl MOS
:1:ReturnIf (X≥r<sub>1</sub>) and (Y≥r<sub>2</sub>) and (Y<(r<sub>2</sub>+r<sub>4</sub>)) and (X<(r<sub>1</sub>+r<sub>3</sub>))
:0:Return
:
:Lbl A
:48→X:32→Y→H
:sub(DRW
:DispGraph
:Pause 450
:Repeat W or (getKey(54) and sub(MOS,66,39,27,7))
:getKey(15)→W
:If sub(MOS,88,1,7,7) and getKey(54):1→W:End
:If sub(MOS,66,47,27,7) and getKey(54):1→W:End
:If sub(MOS,66,55,27,7) and getKey(54):DelVar Str9:Goto 0:End
:sub(2
:DispGraphClrDrawRecallPic
:If Y>0 and getKey(4):Y-1→Y:End
:If X>0 and getKey(2):X-1→X:End
:If X<95 and getKey(3):X+1→X:End
:If Y<63 and getKey(1):Y+1→Y:End
:If sub(MOS,30,24,20,7) and getKey(54):1→H
:L+1^2→L:End
:If sub(MOS,30,12,7,7) and getKey(54):1→H
:S+1^5→S:End
:If sub(MOS,2,55,47,7) and getKey(54):1→H
:E+8^16→E:End
:If sub(MOS,30,36,14,7) and getKey(54):1→H
:T+1^6→T:!If T:1→T:End:End
:
:If H
:Pause 120
:ClrDraw
:sub(DRW
:0→H:End
:End
:If W:Goto END:End
:Goto B
:.CLOSER
:Lbl END
:Fix 4
:If E
:1→{Z+3}
:S→{Z+4}
:L→{Z+5}
:T→{Z+6}
:End
:If Θ
:Archive Str9
:End:Return
:
:Lbl B
:
:Goto END
« Last Edit: April 18, 2011, 02:47:25 pm by zero44 »
____________

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #6 on: April 18, 2011, 04:19:22 pm »
hehe this reminds me of this one coffee maker that connects to the internet, but it can get haxed to make it turn on at will XD

Nice work anyhow! Quite a unique idea you've got there. Although I hope this wont require an expensive/country-limited coffee maker.. I myself am not a coffee drinker, but my dad is a coffee addict :P

edit: also at your first line of code.. that is one erranious name you got there xD
« Last Edit: April 18, 2011, 04:21:14 pm by Snake X »
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #7 on: April 18, 2011, 04:20:23 pm »
There's already a web standard for that:
HTCP
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: CalCup : a coffee maker link to your calc ...
« Reply #8 on: April 18, 2011, 05:13:58 pm »
Hmm would that even be possible? ??? If so, then I assume it would only work on a very limited set of coffee maker? :P

It would be funny if that was actually done, though.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #9 on: April 18, 2011, 06:37:38 pm »
The hardest part would be getting the coffee back to the server, because in theory you could program a robot with coffee-maker recognition technology to figure out what buttons to press.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: CalCup : a coffee maker link to your calc ...
« Reply #10 on: April 18, 2011, 06:40:27 pm »
Heh, I like this idea. Then you could make the coffeemaker programmable in BASIC, like the TI Robot thing.




Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #11 on: April 18, 2011, 06:42:01 pm »
Umm....conveyor belt? They're fairly reliable, providing you give them a soft start to avoid spills, and they can bring multiple coffees!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #12 on: April 18, 2011, 06:43:00 pm »
That sounds pretty cool!  I like the idea, but I'm not sure what advice to give, other than Good Luck!! ;D

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: CalCup : a coffee maker link to your calc ...
« Reply #13 on: April 18, 2011, 06:45:03 pm »
There's already a web standard for that:
HTCP
I think it's HTCPCP.
Just hope you don't run into error 418.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #14 on: April 18, 2011, 06:53:57 pm »
Yeah, cause short and stout entities tend to confuse coffee-maker recognizing robots.
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!