Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Custom Clock (with android syncing)


  • Please log in to reply
6 replies to this topic

#1 rgoode214

rgoode214

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Antonio, TX

Posted 15 January 2013 - 02:27 AM

Working on a custom clock that interfaces with the internet for weather, date/time, etc as well as syncing to an android phone via wifi to show missed calls, texts, and battery alerts. Android has some cool features that i can use to mesh the 2 together to set alarms, display callers/texts, and interact with the apps on the ND+2.

 

Despite being rather rusty at coding the app has alot of code but the memory footprint is rather small (10KB) due to the way its coded to load/unload "apps" to do displaying rather than run everything as one line method. Im using a modified SPI bitbang driver that was posted on this forums (recoded it for use with the 24x16 instead of the 32x8) and the adafruit RTC module.

 

The housing is just a "rough draft" of what i want it to look like in the end but this will do for now. All it is is lexan that i got from a hardware store and cut using a glass/lexan cutter.

 

Youtube video:

 



#2 Gutworks

Gutworks

    Advanced Member

  • Members
  • PipPipPip
  • 363 posts
  • LocationOttawa, Ontario

Posted 15 January 2013 - 02:41 AM

That rocks rgoode214! I haven't looked at writing Android apps in too much detail but really should. This looks like a great project. Perhaps some day soon you can also showcase the code as well as your hardware and help usher in a mobile Netduino revolution in the Netduino Project Showcase :)

 

 

P.S. It was nice to see temperatures in Celcius. ;)

 

Cheers,

Steve



#3 rgoode214

rgoode214

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Antonio, TX

Posted 15 January 2013 - 02:48 AM

Thanks!

 

I do plan to post the code when i finish it so that others can pick it apart and learn (or teach me better ways to do whats already in there). As for the Celcius...i think it makes more since than Fahrenheit but convincing the rest of the US is a bigger undertaking than im ready for lol.

 

Ryan



#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 January 2013 - 09:01 AM

Hi Ryan, I have one of the coveted "Google ADK 2012" alarm clocks, which I thought was cool. But this is much cooler! What language did you write the Android app in? C# (using Mono) or Java/C? I love the "bouncing line" animation. That brought me back to the 80s and some of the first animation apps I typed into my Amiga. Chris

#5 rgoode214

rgoode214

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Antonio, TX

Posted 16 January 2013 - 08:06 AM

hmm i had never heard of/seen the ADK 2k12 before until now. The android app is wrriten in Java using eclipse for the IDE. Its very similar to C# so some of my code from the android app has helped me in making the netduino app. Ive even fixed a few things in the android app having used/rewritten some of its code as the base.

 

The bouncing line animation is actually not my creation, it was in the toolbox/demo SPI driver for the 32x8 display that was posted on these forums that i scavenged. As it doesnt really do anything specific to the display, it was a drop in piece of code that i thought would be interesting to use while the main thread was off doing its background work.

 

So far its been an interesting project (and a headache or two having to re-familiarize myself with coding) but these forums and a few others were a big help in picking up speed.

 

Ryan



#6 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 16 January 2013 - 01:28 PM

Really, cool!

 

Did you write your own code for the LED matrices (there seem to be 3 or 4 of them) too?

 

I love the "bouncing line" animation. That brought me back to the 80s and some of the first animation apps I typed into my Amiga. Chris

Ah, so you're an Amiga man then Chris, that explains everything :-)

Some of my friends belonged to one of the major demo groups back then. The Amgia was a magical machine, if I remember correctly it had an 8Mhz Motorola M68k but quite a few slave chips (copper, blitter, etc). Lots of scrolls, sinus colorbars and stuff like that :-)



#7 rgoode214

rgoode214

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationSan Antonio, TX

Posted 17 January 2013 - 06:41 AM

No, i didnt write this code but i did modify it to work properly with the memory addresses of the 2416 displays (the code i downloaded from these forums seemed to be for the 32x8 display). In my video its 2 of the 2416 displays mounted side by side and cabled together with a ribbon cable;

 

Ryan






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.