Besides those modes, there are also the 'hidden' words that can be activated on demand. I won't spoil them, but can say there are 6 things to find in there, for those interested in searching. Linking this up with the sounds makes for a very neat effect. You see the clock display its gimmick, and hear speaker somewhere else accompany it. If that isn't IoT Force power, then I don't know what it ;).
Alternatively, this could also be used in a more useful fashion. IFTTT for example allows you to connect a huge amount of online services to it. Making LEDs blink, playing sounds, showing messages, and things like that are all very easy to do thanks to services like this. Tagged in a photo on facebook, blink blue. Got an email on gmail, fade red. This could even act as a notification devices for people with disabilities. It's both a graphical and audio stimulant that can warn them of certain events.
The code itself is not too difficult to understand, and should be fairly self-explanatory. Should you encounter anything that's hard to understand, feel free to ask, and I'll try my best to elaborate!
In the future I'd like to expand the interaction possibilities with capacitive touch sensors. Those can be placed on the backside but can be triggered from the front. Not only does this look really neat and Star Wars-ish, but it also allows for local control, which despite the IoT era can still be nice every once in a while.
As mentioned before, services like IFTTT allow for very easy connections between online services. With Particle being one of said services, there's a lot of combinations to make, depending on your needs, wants, and or interests. Some like facebook notifications, other the current stockprice. Both are possible.
It also serves as a geeky communication device if you want it to. By using the matrix capabilities, it's possible to scroll text on the screen. Combining that with an active internet connection, and you've got a very simply and fun way to send messages to loved ones. Hook it up to IFTTT and you can even text it, or tweet it, or...
Display environmental data; those with a keen eye have probably noticed the extra sensor on the shield, that has been left unmentioned. That was in fact a DHT22 temperature and humidity sensor. Due to exams I have not been able to integrate this yet, but it's very doable, and shouldn't be too hard. That'll allow you to use the clock as an indoor thermostat. With the power of the internet you could also pull down weather data, and set it up as a local weather station, notifying you when it's going to rain and/or when it's going to be really hot.
I could go on like this for a while, but it should be obvious by now that there is no lack of possibilities.
Build your own
So, for people interested in building their own, I'll try and lay out the steps you might take to get this going. First of all, make sure you've got a bit of time to spend on this. Depending on what materials and equipment are available to you, not to mention your skills, this could take a weekend. Well spend, if I may say so myself.
Download the design files, and load them up in your favorite editor. Make sure everything still has the proper dimensions, since importing files can often mess with this. The design I've uploaded has been made to work with 3mm material for the entire casing. The front plate should be 5mm clear acrylic for the best effect, since it's the same thickness as a neopixel. Then, find a place where you can use a laser cutter if you haven't got one yourself. See what type of files they require for their cutter and make sure you convert them to the appropriate format before going there. There's nothing worse than getting there with all the materials only to find out your files won't work. Time is precious, and cutting the whole clock took around 1.5 hours on a 35W Epilog Zing laser cutter. Depending on what device you have access to, that time may vary.
Cutting the materials
Once you've made sure all your files are okay to go for the machine you'll be using it's time to gather materials (if you haven't yet some so). Personally, I started with a 4mm ply case, but switched to 3mm black acrylic since it doesn't require finishing. You peel off the protective plastic and it looks amazing, whereas you'd have to sand the wood, paint it, and then hope it turns out right (which it didn't for me). Again, make sure the thickness matches the design and visa versa! Then, for the front plate, get clear 5mm acryllic, at least 30 by 30 cm (the plate itself will be 29cm diameter). Once you've got all that, go to your favorite laser cutter, prime it according to the specifications, load the materials and hit 'go'. Then, continue to watch in awe as you're making a PEW PEW laser WoMD by using a PEW PEW laser. Neat, isn't it?
Right, as I've mentioned, it was a rather easy project in terms of electronics, since I had this neat little shield. I'd highly recommend you to get one as well, since it make the process a whole lot smoother. Alternatively, you can design your own, of even use a protoboard if you like. The former gives a lot of flexibility in terms of design, allowing you to change things as you please (bigger smaller proto area for example). The latter option is probably one of the cheaper ones, although you'd have to solder all connections yourself, which can get rather messy. Again, the shield is a worthwhile investment, if only to save you the hassle of soldering the connections, while allowing for plug & play functionality.
Regardless of what option you choose, you'll need to solder the shield, and the neopixel to it. In the attachment is a schematic of how the neopixel should be connected. Due to a lacking part for the shield, I've used a 'bare' neopixel on a 'bare' Photon. Luckily, the pins are marked on the shield as well, so it should be rather trivial to solder them. I chose to use male headers on the board, and female Dupont cables for the neopixel, you I could easily take it off for servicing. You can solder them permanently as well, though you'll have to be a bit more carefully when dis(assembling).
Once you've got the parts and electronics ready, it's time to assemble. It's rather self explanatory, but let's go through it regardless. The pictures below might help, but let's talk through it as well.
I'd suggest laying out the pieces so you've got a nice overview of what you've got. Put the backplate down, with the hole on the top right side. Put the four sides on their respective sides, making sure you mirror the pieces. Then, put the small supports in the two sides. These too need to be mirrored, since the holes need to align with the small 'pins' on the matrix. With a bit of fumbling, raise the sides up, and interlock them using the holes.
Once that's done, I'd suggest putting a little bit of scotch tape on the sides an back to keep it together temporarily. Continuing, you should now be able to lay in the matrix, which should sit flush to the case. Make sure you properly align it, since the shield should be able to go through the hole in the back. All good, moving on, put the raster over the matrix, which should prevent the light from 'bleeding' into the other letters. Then, to diffuse the light (the matrix is awfully bright), cut a piece of paper to 192mm by 192mm, and put that over the raster. Finally, add the letter plate by pushing it onto the sides. Just so I've said it, make sure you align it properly. With the bottom hole in the top right, the text should be readable from top, left to right.
Attaching the LED and front plate will be done simultaneously. Make sure both the Letter plate and the front plate are as clean as possible. You don't want to remove them after this. Put the front plate on the letter plate, making sure the 'laser nozzle' lines up with the 'E' in the top right corner. Then, using black electrical tape, start taping the two sides together, making sure the top of the tape is flush with the top of the plates. Gently turn the clock as you attach the tape, and press is gently to make sure it sticks. Due to the stretchiness of the tape, it curved nicely around the back, thus eliminating the need to cut it. Just before you reach full circle, cut if off, leaving about 5 mm of acrylic exposed, since that's where your neopixel is going to go. Prior to attaching the neopixel, I suggest coloring the sides black with a sharpie, since you'll then not notice it as much. Once that's done, put the neopixel against the clock, and stick a small piece of electrical tape over it to secure it.
Turn the clock over, and plug in the shield. If you hadn't yet attached power cables to your Matrix, you can remove the backplate, and do so now. Put the backplate on again, and insert the feet. You should be able to put them through the holes, and slide them up. If you want to hang the clock to the wall, you can omit the latter step, and use the small hole on the top to hang it.
Depending on the materials used and the accuracy of the laser cutter, things might somewhat loose, or somewhat tight. If you're lucky, the clock will hold with pressure fit, eliminating the need for adhesives. If it's on the loose side, you can consider using the black tape again, of perhaps some specialized acrylic glue. Since mine seems to hold up just fine, I've used neither.
That's it, mechanical and electrical construction completed.
unfortunately, smart robots are (still) a Star Wars dream, so unless you tell it what to do, it's not (yet) going to think for itself. To that extend, we need to put some code on it. Considering the fact that Particle is really awesome, the shield was made for it, the fact that I had every intention of using one, and this contest requires one, I figured I might as well use a Particle device for that ;) I suggest you do the same.
Okay, so you've got your Photon, and you've set it up. Assuming you've had no trouble doing so, you should have a cyan breathing device, which you can toggle the D7 led with using the app. If something did go awry, or you encountered issues, consider checking out the community for help. There are some very lovely folks on there, who'll gladly lend a hand.
So, with a working Photon, go to the web IDE. There, create a new app, and give the poor thing a name. Once that's done, use the libraries system to manually include the following libraries: neopixel, SparkIntervalTimer, Adafruit_mfGFX, RGBmatrixPanel. You have to do these manually, the IDE won't select them otherwise. Continuing, click the little '+' icon in the top of the idea to create a new tab (in the IDE, not your browser). Name the new tabs 'snake' (case sensitive!). Once that's done, copy the contents of the respective attached files into the tabs on the IDE. Finally, copy the contents of the main file, and paste it over whatever is in the main app on the web IDE by now. Make sure you edit the 'timezone' variable at around line 85-95 to make sure it matches the one you're in. After selecting the correct device and saying a little prayer, hit the 'verify' button, and hope everything works out the way it should. For those who don't know, that's when it says 'ready!' and doesn't give you a bunch of errors. If it works, hit 'flash' and be amazed at how you're now flashing a micro controller wirelessly, thanks to The Force (and some really, really awesome people over at Particle HQ!).
If all went well, your Photon should now restart, and your clock should come to life. Isn't that awesome?! (Yes! Yes it is!) Now, casually whisper (scream): "POWER! UNLIMITED POWER!", and gloat while your loved ones stare at you as if you've finally gone completely mental. Totally worth it though!
The clock will actually run just fine on its own, but the real fun comes in the you can make it do stuff. For that I've made a really simple web page that'll allow you to control the clock remotely. To use it, place the three web related files (.html, .css, and .js) in the same directory. Then, edit the .html file with a text editor to replace your credentials in the appropriate places. They should be your Particle account email/password as well as the deviceID from the Photon you've used. The latter can be found be clicking the little arrow next to the device name in the Web IDE. If completed, open the .html file in your browser, and click away. If nothing got messed up, you should now be able to control your clock. If you manage to get these files on a web server, this will work from anywhere in the world. Controls, done.
With the clock and controls finished, the project it pretty much done. Although, it'd be really cool and convenient to add some sounds to it as well...
As mentioned, due to conflicting timetables (exams) and bad modules, I wasn't able to integrate sound into the casing before the end of the contest anymore. What I was able to do, was hooping up a good module to a separate Photon, and trigger that using the Force (Particle.publish and subcribe). That allowed me to quickly and easily test the setup without having to solder it in yet. As a matter of fact, I might leave it separated as is, since I can now place the clock and the sound in different places, making for a cool effect. The 'sound' Photon could even be used to add some physical controls to the clock as well.
To integrate sound, hook up the DFMini MP3 player as depicted in the attached schematic. Then, put some MP3 files on an microSD card, and be sure to name them XXXX_whatever. The XXXX would be the number of the song. "0008_Empire" for example would be the eight song. Insert the card, and make sure you've got some speakers hooked up.
Using the same procedure as before, create a new app in the Web IDE and copy the attached code into the project. This one doesn't use any libraries, so you don't have to worry about that. Flash it to the device, and wait for the Photon to restart.
If everything went according to plan, the clock should now trigger various sounds upon certain actions. Give Snake a try, of try activating some of the hidden words through the control page.
For those who can't wait to see it, here it is in its full glory. The breadboard on the left is in no way connected to the clock besides through the internet. All interactions happen through the Force (and satellites, servers, transatlantic cables, fibre, ISPs... mostly The Force though).
Well, in all honesty, what good would a Death Star do if you can't fire it? Remember that 'E' you had to align the nozzle to, well, here it is...
Now, let the apprentice become the master. I've trained you well, young Padawan, time to explore the galaxy on your own. Go forth, and expand upon what I have given thee. Build a clock, you must!
I've built a clock. And it's a pretty neat one. Mentioned several times, I wanted to create something 'more'. Designing a one-off 'ultimate' Star Wars project would've been cool, but then it would've been just that: 'ultimate Star Wars'. Instead, I (think) I built something that's not only ecstatically pleasing (I got my mom' seal of approval for a glowing Death Star, that's enough evidence for me...), but that's also actually useful. Yes, "it's just a clock", but I'll bet you I'll use a clock more often than a light saber (unfortunately...). With this project I've made something that's not only nice to have for now, and when my geeky friends come over, but it's actually something anybody could enjoy, due to the 'extreme' customization options. Swap the Death Star for your favorite Instagram quote, and you've finally got an excuse to use it. Hook up some IR LEDs and control your appliances. Use it to let your loved ones know you're thinking about them. Enable people with disabilities to have other means of notifications. Or, you know, attach a laser and blow up some planets. There's something for everybody.
Alternatively, just enjoy the beautiful thing you've just made :)!
Much more fun with sound, though still not as easy ;)
A final word of thanks to all the people who made this possible. The Star Wars universe is what inspired this. Several other people made it a reality, for which I'm grateful. With that said, all rights go to their respective owners, and I do not want to take credit for what isn't mine. I've tried to give credit where it was due, but for the ones I might have forgotten, there's this: thank you! No infringement of any kind is intended. The contents I've used, has been used because I very much admire the things you've created, and I hope you can see it as such. I tried my best to combine all the components into the project that it has become, and I think it turned out rather nice.
"Remember...the Force will be with you, always."
CUSTOM PARTS AND ENCLOSURES