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

0 Members and 1 Guest are viewing this topic.

Ashbad

  • Guest
Re: CalCup : a coffee maker link to your calc ...
« Reply #15 on: April 18, 2011, 07:04:58 pm »
I think it would be better done in assembly, IMHO ;) unless if you include Port Input/output opcodes into your code.  Because Axe is very limited in the way it can send data through ports.  It DOES have decent control over the link port, but not pitch perfect for all circumstances -- so my advice is to make the actual sending snippets in assembly, assemble, disassemble to hex, and copy the snippets in order ;)

If you do it like that it is very helpful to put something like 5 NOPs in between snippets for you to tell them apart.

Good luck!

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 #16 on: April 19, 2011, 07:38:12 am »
When I had time, in a school hour  :devil:, I made a list of commands between arduino and calc.
Correct me if I'm wrong, but :
• the calc can send a byte
• the byte goes into Arduino's port's buffer in a wait file
• Arduino read the byte
• Arduino may send a byte
• calc's Get( funtion returns Arduino's byte ...
No ?

Command list :
Spoiler For commands:
205 - is there sugar ?
208 - yes
200 - no
145 - is there milk ?
148 - yes
140 - no
035 - is there water ?
038 - yes
030 - no
065 - is there coffe ?
068 - yes
060 - no
122 - send 100mL of water !
125 - send ...
1•• - ... ••mL ...
126 - ... of water !

123 - done
222 - send 50mL of milk !
225 - send ...
2•• - ... ••mL ...
226 - ... of milk !

223 - done
207 - send a sugar !
203 - done
075 - make hot for ...
0•• - ... 20*•• ...
076 - seconds !

073 - done
*** - GENERIC - ***
008 - yes
000 - no
003 - done
001 - error

009 - repeat
Calc's questions
Calc's orders
Arduino's answers
Arduino's orders
____________

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #17 on: April 19, 2011, 07:51:25 am »
Not a bad protocol there.  You are using the I/O port, right?

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 #18 on: April 19, 2011, 07:55:55 am »
yes ...
the Get( and Send( axe command receives or sens a bytes , doesn't it ?
The arduino function 'Serial.begin(int fast);' set the number of bits/second, but how many bit/second can support my TI 83+ ?
____________

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 #19 on: April 20, 2011, 03:59:08 am »
UP !

Now I've no arduino card, and I'll never buy one if I don't know what and how to made with !
I had a second crazy project, with the RC system of my old nikko rc car :
A prgm to pilot the car with car, and maybe a bw camera ...
« Last Edit: April 20, 2011, 03:59:38 am by zero44 »
____________

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 #20 on: April 22, 2011, 07:30:55 am »
Hey !

I've put all commands I said higher in the program, but if nobody goes on this topic I'll kill you maybe let this project die. With all others ...
I think I'll need help to program on arduino (I'll take arduino mini pro, make I a big error ?), cause I don't want to burn the card when I'll have it ...
____________

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: CalCup : a coffee maker link to your calc ...
« Reply #21 on: April 22, 2011, 07:37:09 am »
I would just get an arduino uno (Considering you can't program a mini, IIRC, unless you have an FTDI cable).  You have to realize, though, although this would be cool, many people wouldn't use it everyday.  Of course, that's not to say you shouldn't continue it, but for your own reasons, not necessarily for other users. Plus, this seems to be very coffee pot-specific, too.  I would say, continue it as a project for yourself, but not necessarily for everyone else.

Also, The Send( and Get( commands won't work, unless you have the arduino acknowledge them like another calc.  You'll have to talk to quigibo about the exact specs of that.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: CalCup : a coffee maker link to your calc ...
« Reply #22 on: April 22, 2011, 09:12:24 pm »
What graphmastur said. I'm sure a few might find this useful, but I mean it's not gonna be as popular as Mario or Zelda, for example. I don't know about France, but in North America not a lot of students drink coffee at all. Also there's the fact it would require a specific kind of coffee pot.

It can be a nice project to experiment with stuff, though, and if you manage to do it, you should make a video and post it in this topic or in the hardware/technology board.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)