Author Topic: Custom calculator watch (with Brainf*ck interpreter)  (Read 18287 times)

0 Members and 1 Guest are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Custom calculator watch (with Brainf*ck interpreter)
« on: December 11, 2012, 10:02:22 am »
Edit: Video:


I made a promise in the casio calculator watch thread: to hack myself a calculator watch to prove I'm a true and dedicated hacker.
Guess what? It actually happened. 3 days after I made the promise I got my nokia lcd in the mail, so I thought I could as well just make it into a watch.


I haven't got all of the parts yet, but I'm making good progress on the firmware.

Specs so far:
Hardware
CPU: Atmega328 @16Mhz
POWER: 3x3v batteries
INPUT: 3 microswitches
OUTPUT: 84x48px blue backlit LCD. Holds up to 12x6 ascii characters.

Software
- Clock with date and year.
- String and code editor (syntax brainf**k)
- Brainf**k interpreter. (Stand alone or in "tray" when in clock mode)
- Timed backlight



Other stuffs
- Artificial leather strap. There is copper cable at the end.
- A little plastic tray from a toy. The LCD fits perfectly! (I will paint it!)

« Last Edit: January 08, 2013, 03:00:36 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #1 on: December 11, 2012, 10:12:03 am »
I saw this in the other thread, really awesome stuff! ^^

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #2 on: December 11, 2012, 10:17:23 am »
I added some clever code to the break option in the interpreter. Now, when you break out of an infinite loop it disables the execution of the program in the tray on the home screen. This is to make sure the thing does not freeze.
If you like my work: why not give me an internet?








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: Custom calculator watch (with Brainf*ck interpreter)
« Reply #3 on: December 18, 2012, 03:09:21 pm »
I love it so far :)

Is it any comfortable to wear, though? :P
« Last Edit: December 18, 2012, 03:09:45 pm by DJ_O »

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #4 on: December 18, 2012, 03:12:43 pm »
The brain**** interpreter is cool, but not actually useful ;) Maybe make some kind of limited BASIC that is tokenized, so you can just select it from a list?

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #5 on: December 18, 2012, 03:40:15 pm »
I love it so far :)

Is it any comfortable to wear, though? :P
It actually is quite comfortable to wear right now. This thing doesn't weigh a lot without the board and the batteries in it. The artificial leather strap is not too tight and feels soft to the skin.

The brain**** interpreter is cool, but not actually useful ;) Maybe make some kind of limited BASIC that is tokenized, so you can just select it from a list?
I got a limited amount of program space. I am using 12 out of 30k of max program size at the moment. This includes the clock, interpreter, menu, LCD routines and some other stuff.
A basic will require a lot of strings which increases the program size. I might add it eventually.
« Last Edit: December 18, 2012, 03:41:22 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #6 on: December 18, 2012, 03:43:15 pm »
I got a limited amount of program space. I am using 12 out of 30k of max program size at the moment. This includes the clock, interpreter, menu, LCD routines and some other stuff.
A basic will require a lot of strings which increases the program size.
What processor are you using? My PIC18F46K20 has 64 KB of program memory, and I wrote some complex programs that never even took up half of it. Maybe you should try a PIC18F?

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #7 on: December 18, 2012, 03:45:23 pm »
I will not use a PIC18F. Porting the source I already got is going to be a pain. I might make more watches in the future with different programming languages. Perhaps ones with a numeric keypad.
If you like my work: why not give me an internet?








Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #8 on: January 07, 2013, 10:44:14 am »
Started building! I got all of the parts and now it's all coming together.

Edit: Ok... the batteries drain completely in one minute...
« Last Edit: January 07, 2013, 02:31:24 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #9 on: January 07, 2013, 04:32:08 pm »

It does not have buttons yet and the batteries cannot supply enough current for the backlight, so that's a problem. I need another power source!
If you like my work: why not give me an internet?








Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #10 on: January 07, 2013, 04:39:22 pm »
Kickstarter!

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #11 on: January 07, 2013, 04:53:24 pm »
I should try to make one of these, with a PIC18F26K20. Maybe we could see whose is better once I start making mine ;)

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: Custom calculator watch (with Brainf*ck interpreter)
« Reply #12 on: January 07, 2013, 05:07:49 pm »
You should use a car battery for the watch since it will require a lot of power to do all the stuff it will do (even more than running Crysis)

Just kidding, glad it's still progressing :)

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #13 on: January 07, 2013, 05:11:41 pm »
Wow, this is awesome!

After reading about brainf**k, I think it's a great choice.  How much memory will be reserved for a brainf**k program on the watch?
« Last Edit: January 07, 2013, 05:14:49 pm by Hot_Dog »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Custom calculator watch (with Brainf*ck interpreter)
« Reply #14 on: January 07, 2013, 05:40:25 pm »
Arduino! :D
And nice that you have some progress :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!