Monday, November 28, 2011

Buy Wise Clock 4 kit

The Wise Clock 4 kit includes the following parts (shown in the photo below):


















  • PCB;
  • SD card socket (pre-soldered);
  • DS3231 extremely accurate RTC (real time clock) chip, soldered to the board;
  • MIC5219 voltage regulator, soldered to the board;
  • 74HC125 level shifter (5V to 3V3), soldered to the board;
  • 2 SMD LEDs (soldered);
  • 3 SMD resistors (soldered);
  • ATmega644P, with the latest Wise Clock 4 software;
  • 40-pin socket; 
  • 16MHz crystal;
  • 2 x 22pF ceramic capacitors;
  • CR1220 backup battery for RTC;
  • holder for the coin battery;
  • 3 x right-angle push buttons;
  • 9 x 10k resistors;
  • 3 x 4k7 resistors;
  • piezo buzzer;
  • USB miniB connector;
  • 6-pin right-angle male header (FTDI connector);
  • two 2x8-pin female headers (display connectors);
  • two 10-pin 2mm female headers (XBee connectors);
  • 220/470 uF electrolytic capacitor;
  • 3 x 100nF decoupling capacitors.
Note that the first bunch of components in the list are SMDs and come soldered to the board (that is, I solder them for you).

US$67 US$57, free shipping to North America

Please contact me for pricing to outside North America. (Usually, for Europe, the price is $5 more.)

To build a finished Wise Clock 4, you need to add your own 3216 display (made by Sure Electronics and sold on their site or on ebay), which plugs directly into the board (no cables are required to connect the Wise Clock 4 board to the display). You will also need to build your own enclosure.

Please read this post on how to connect the Wise Clock 4 board to the redesigned version of the display.

Assembling the Wise Clock 4 kit is very similar to assembling Wise Clock 3, shown here. (The few differences between the two kits are related to the XBee, and are very easy to figure out. Regardless, all new components are SMD and they come pre-soldered.)

If you want the "Complete Wise Clock 4 kit", that includes the 3216 display and a simple yet elegant enclosure, please visit this page.

The ATmega644P processor comes already loaded with the latest software, so you don't need to use the Arduino IDE to compile and upload the code. Essentially, after soldering all components in place, Wise Clock  4 should work right away.

Upgrading the software on Wise Clock 4 (when a new release is published) is similar to Wise Clock 3, and this process is detailed here.

Also note that, although Wise Clock 4 has support for the XBee RF wireless modules, no XBee module is included in this kit.

Saturday, November 26, 2011

Testing the XBee on Wise Clock 4

To test the XBee on Wise Clock 4 I used the sketch below (upload it to the board; display is not required).

int nCount = 0;
void setup()
{
  Serial.begin(9600);
  Serial1.begin(9600);
  Serial.println("WC4 XBee ready for comm..."); 
}


void loop()
{
  // read from port 1, report characters on port 0:
  while (Serial1.available())
  {
    char inChar = Serial1.read();
    Serial.print(inChar); 
  }
  Serial1.print("WC4 XBee transmit ");
  Serial1.print(nCount++);
  Serial1.print(", ");
  Serial1.println(millis());
  delay(3000);
}

Notice the use of Serial1 instance to talk to the XBee, since this is connected to the second hardware serial port of the ATmega644P (D10/D11, pins 16/17). Had Sanguino offered no support for the second USART, we could have used NewSoftwareSerial library.

The second XBee is linked directly to a terminal (e.g. HyperTerminal in Windows, or Terminal panel in the X-CTU application from Digi). I personally used the XBee Adapter from Adafruit, connected through the FTDI cable to the PC as shown here.

Once this XBee test passed, you can adapt the Wise Clock 4 software to display any message sent to it from a second XBee. A simple hack is to add to the function fetchMessage() in file WiseClock4.cpp, as shown below:

void WiseClock4::fetchMessage()
{
  // new code for XBee............
  // read from XBee into the "personalized message" buffer;
  char* Ptr1 = &personalMsg[0];
  if (Serial1.available())
  {
    while (Serial1.available())
    {
      *Ptr1++ = Serial1.read();
    }
    *Ptr1 = 0;
  }

  // existing code................
  strcpy(msgLine, "      ");

Now, instead of the personalized message (read from file message.txt on the SD card) you will get whatever is sent from the terminal application (second XBee).

Don't forget to add this line in function setup (file WiseClock4.pde):

  Serial1.begin(9600);


Thursday, November 24, 2011

Dual screen Wise Clock 4

Using two 3216 displays together is an almost trivial hack. I wanted to make sure it works fine with the Wise Clock 4 board. The video below shows the new board running both "Night and Day" and "Wise Clock 3" (merged into one sketch, of course).




In practice, one can now build the "Dual Screen Wise Clock 4" with the two displays placed on opposite sides (back to back), or one next to the other (as shown in the video). A crazy idea would be to have 4 displays placed in a square :)

Friday, November 18, 2011

"Make: Special Issue: Ultimate Kit Guide" featuring Wise Clock 3

Thank you for the honor, Make: magazine!






















Here is the actual Make: web site dedicated to kit reviews.


Wednesday, November 16, 2011

Wise Clock 4

The new Wise Clock 4 board has two main improvements over Wise Clock 3:
  • support for the XBee family of wireless RF modules (XBee, XBee Pro, XBee Wi-Fi, and the similar foot-printed Roving Networks WiFly RN-XV);
  • ability to easily connect a second display; this is achieved by moving the power connector on the "right" side, plus bringing the extension display connector closer to the bottom of the board.


















Wise Clock 4 is "almost" compatible with Wise Clock 3. To run the existing sketch on Wise Clock 4, two changes are required:
  • Plus button is now on D3 (D2 is now designated for interrupts from RTC);
  • D15 is now connected to the CS line of the display, replacing D11, which is now used for communication with the Xbee module.


















As can be noticed from the photos, a few more components are in SMD package (necessary to keep the size of the board to a minimum, to fit in the back of the 3216 display):

  • the level shifting buffer 74HC125;
  • three optional LEDs: 2 for the XBee communication lines, one for power;
  • the 3V3 voltage regulator MIC5219, capable of providing 500mA.


Updated Nov 26, 2011
The schematic, pictured below, can be downloaded from here (Eagle file).















The board layout, shown below, can be downloaded from here.


















Monday, November 7, 2011

Freebees

Purchase any of my kits and you can get one (or more, if you ask nicely :) freebee from this page (just email me with your choice).

I am currently giving away a few "surplus" boards and LED matrices.
Shown below are, from left to right:















You can also get the PCB for DWex, a small Arduino + RTC, that you can make into a DIY pocket/pendant watch. This board is mostly SMD, but not difficult to solder with a little exercise.















Any of the above PCBs can be used as originally intended (for kits), since there is nothing wrong with them (as far as I know). The challenge in building the LED matrix shields is in finding the right matrices (which is almost impossible, since they were "kind-of" custom made for me by a Chinese LED company some time ago). Nevertheless, one can connect other (compatible, that is common cathodes) types of LED matrices with wires, as this project demonstrates.

Next, there are 2 LED matrices. The left one is a 48mm x 48mm common anode RG, named GMA4688C, for which I couldn't find the datasheet. It is easy to figure out the pin configuration by checking the LEDs with a battery (and resistor, of course). The one on the right is a red LED matrix, 58mm x 58mm in size.















Keep an eye on this page as I will update it periodically. I will soon add other components (LEDs, rotary encoders, ribbon cables, terminal blocks etc) and remove the out-of-stock ones.

Also, if you need other parts for your projects, ask and I may be able to help.

Here is more:
  • SD card (empty) boxes













  • 16-wires ribbon cables













  • DS1307 (either in SMD SOIC or DIP) + crystal 32,768Hz
  • 2-pin terminal block
  • small and flat speaker, 16 ohms













  • LEDs (various shapes, colors and sizes)


























  • rotary encoder (right angle)


























  • laser-cut plexiglass plate (3mm thick) for the 2416 single-color LED display from Sure


Sunday, November 6, 2011

Lexon travel clock

I am very "productive" lately (or maybe just wasteful with my time): this is my sixth post in as many consecutive days.

I recently "discovered", in a design shop, this great looking travel clock made by Lexon.















Things I like about it:
  • beautiful shape/form/dimensions (low profile, small, light) and nice finish (brushed aluminum);
  • apparent simplicity, with just one large(ish) button on the top and the lesser-used buttons placed on the bottom;
  • LCD screen covering the whole face, showing more than the time (date, day, temperature, alarm);
  • low consumption; powered by 2 CR2032 batteries, one for the clock, the other for the LCD backlight;
  • attention to detail is everywhere, including the bottom rubber bumpers: the front ones are higher than the back ones, as seen in the next photo.



















This Lexon clock should be good inspiration for clock makers and clock designers.
I hope one day my Wise Clock N will be as great as this is :)

Saturday, November 5, 2011

LunaTik "reloaded"

This is my original post on LunaTik.

Coincidentally (I guess the Apple iPod Nano team thinks that they found the ideal shape and size), the latest, 7th, generation of iPod Nano has the exact same dimensions as the one it replaces (and for which LunaTik was designed). So, LunaTik and TikTok get a new (and well deserved) lease on life, from Apple itself. More, LunaTik is actually mentioned in one of Apple's presentations, officially endorsing the brand. Actually, even the current (6th) generation iPod Nano can be software-upgraded through iTunes with 16 new clock faces (some of them shown in the photo below, courtesy of LunaTik team, sent by email via kickstarter).












But this is not all. As I anticipated, watch "modules" (shown below) are being developed to be hosted by LunaTik. This could become the flagship of the designer watches. Can you imagine high-end watchmakers producing watches that fit LunaTik? How far fetched is to see a custom made-for-LunaTik Omega, for example?












A metal (aluminum) strap is in the works too. This new design, shown in the photo below (also received via kickstarter email) is called "Lynk", and available starting December 2011.












On the other hand, clones have started to pop up (see ebay), at much reduced prices.
I bought, out of curiosity, the black "LunaTik" from a Chinese site for $24. Packaging is identical (and as hard to unpack as the original), the 2-page presentation manual is the same and the two small Allen keys are included as well.















You can't tell until you look at the content. My black "LunaTik" has shiny silvery buckle, scratched aluminum strap stop and white steel socket screws. You get what you pay for. I wouldn't be surprised to see the black layer worn out after a few weeks/days (I may be a little ashamed to wear it in public though).

Friday, November 4, 2011

CubeClock

This would make a nice replacement for the original glass-domed WiseClock.


















I named it CubeClock for the simple reason that it is encased in a baseball display case, found on ebay for about $5.
It includes Wiseduino (with on-board RTC), a LiPo battery shield (I used the one from seeedstudio, but others should work too), a prototype shield with the cheap "orientation sensor" introduced here, and the bi-color LED mini-display shield.

The bottom board is the Wiseduino, secured to the box with 2 screws. The other shields are just stacked on top of each other. The battery shield from seeedstudio, discussed here, uses a 1,000mAh LiPo battery (did not come with the shield), attached to the shield itself with plastic ties. The clock can be turned on or off (to save the battery) from the power switch on the Wiseduino.

CubeClock can also be powered through the USB cable plugged into the battery shield (which also charges the LiPo battery), as shown below.















A closer look is shown in the next photo. The 2 buttons on the mini display shield and the power switch are on the opposite side. They are accessible after the top of box is removed, as is the FTDI connector.















The current sketch running on CubeClock is almost identical to the one on SillyClock (and IllyClock, for that matter), since the mini display shield uses almost the same schematic as the dual bi-color LED matrix shield.
The next release of the software should involve the "2-axis tilt sensor" (already connected on pin A3) to change the display according to its orientation. It could also include the displaying of messages from the 32KB EEPROM on the Wiseduino board (as does the glass-domed WiseClock).

Other ideas:
  • add infrared receiver (on D2, with interrupt; code picked from WiseClock);
  • add buzzer (on D16/A2, the only pin left unused at this point) for alarm clock functionality (half-implemented in the software already).

Thursday, November 3, 2011

Finding STP16DP05 in DIL package

It may have occurred to you to find an interesting device with LEDs, only to realize that it uses components that are obsolete and cannot be sourced anymore (or if they can , they may be prohibitively expensive). Such is the case with STP16DP05 in DIL (dual-in-line) package, used in a few kits by EvilMadScience.com and ModernDevice.com. STP16DP05 is a 16-bit LED sink driver still manufactured in SMD, but obsolete (and impossible to find) in "through-hole".

If you want to build such open-source popular kits as "Meggy Jr RGB" or "Peggy 2", you will have to re-design the board, replacing the DIL package with the SMD. What if you already have the PCB and are constrained to use the DIL version? The immediate solution that comes to mind is to use a breakout board with an SMD. Problem is, I couldn't find a breakout to the "narrow", 0.3", DIL format; they are all 0.6" wide.

So, the only choice I had was to use a replacement DIL for the STP15DP05. The first equivalent I found was  MBI5026. Only after I received the few I bought (on ebay), I realized they have a different distance between pins (in the metric system). Complete write-off, since I have no chance to ever use these. Their complete name is MBI5026GNS. It never crossed my mind that there is a "metric" standard for ICs in DIL package. Well, lesson learned, but problem still there.
Later, I found out that MBI5026 also comes in the "inch" standard as well. Problem solved, finally.

A second choice would be A6278/A6279. They are pin-to-pin compatible with STP16DP05. Actually these are the LED drivers shipped with the "display board kit" from ModernDevice.com. (And this is how I found out about them, by buying that kit.)

This may not be directly applicable to the kit "business", but another lesson I learned is to design a board for multiple packages of the same IC, thus having a bigger selection for the parts.


Conclusion: pin-to-pin equivalents for the DIL version of STP16DP05 are MBI5026 and A6278/A6279. None of them are offered by digikey or mouser (in DIL format), but you may be able to find them on ebay, expecially the MBI5026. Pay attention to what you order though, since MBI5026 comes in 2 different DIL packages. Anyway, new projects designed around STP16DP05 should not rely on the DIP package. (Note: This is the case of ClockTHREE and C3Jr, both of which use STP16DP05 SMD on breakout boards. Smart.)

Wednesday, November 2, 2011

LiPo batteries and charger shields - part 2

This should be an update to a previous post (I am too lazy to edit that nicely).

I bought two LiPo battery shields, one from Seeedstudio, one from cutedigi. None came with a LiPo battery. I guess it is assumed that the user selects the battery that suits his needs. My main need was for a battery that fit between the headers and was lower than the height of the headers, so that another shield can be stacked on top. Guess what: it's not easy to find such a LiPo battery. The round, AA or AAA-compatible ones, are out of the questions because of their size. The only candidates would be those silvery-flat-rectangular ones, as those pictured below.















The best match for the "Solar charger" from seeedstudio is the third LiPo in the photo, with a capacity of 1,000mAh. For comparison, 3 AA rechargeable batteries (1.2V each, making a similar 3.6V) usually have a capacity of 2,200 - 2,800mAh. So this flat LiPo battery would be a bit less than half of the capacity of the space-consuming and heavy pack of 3xAAs.

The next photo shows the LiPo battery installed in the shield.
















Updated Nov 4, 2001
The "solar charger" from seeedstudio I have is V1. It is currently discontinued and replaced by "Solar Charger Shield V2". I don't know if there was a technical issue with V1, but my shield has the male headers shorter than the regular size. While building CubeClock, I had trouble with the contacts: some of the signals (A0 and A1, required by the buttons on the mini display shield) did not get passed the charger shield. After some investigation I figured that the charger shield was the culprit, specifically the shorter pins. The new V2 charger shield seems (from the photos) to have solved this issue.



All of the above batteries were purchased from seeedstudio. The second from left in the photo is sold as the "DSO Nano replacement battery" and dimensions were not published at the time. Now you can see it's a bit shorter than the 1,000mAh LiPo and almost 50% thinner.

A nice battery, size-wise and capacity-wise, is the right-most one in the photo. Although it does not fit on the top of the shield (and between the headers), it can be used underneath if you find a method for attaching it (I am still thinking).
Other bigger-capacity LiPos (e.g. 3,000mAh, 6,000mAh) are built by sticking together in shrink-wrap several of the ones shown above.

As for the charger shield from cutedigi, I cannot find an immediate use for it. It can only be used as the top shield, since it does not have extension headers. Also, the space for battery is quite small. The 500mAh LiPo can somehow fit, as shown in the photo below.















 The battery would also need to be attached somehow; plastic ties come to mind, maybe this is the purpose of the 6 holes in the board. The 3 LEDs (top-left corner) should be left visible, yet another restriction on placing the LiPo battery. Maybe it's not for nothing that "600mAh" is written in the silkscreen of the board. Cutedigi may have designed this charger shield for a specific battery, which they don't make available.

As always, your comments are appreciated.

Tuesday, November 1, 2011

From the "fan club" - LindorClock

Fellow Arduino enthusiast Anjan sent me these photos of his own interpretation of IllyClock, encased in a "compatible" Lindor chocolate case. I think it looks great.

From the email:
I put this one in a Lindor chocolate case and so the name. I had to cut the Lindor case to almost 2/3 rd the height to make it fit and look nice. The front design is still not complete, as you can see the  components and wires inside.





































He used his own LED matrices with my Dual bi-color LED matrix shield, hence the wires and the prototyping board in the next two photos.




























Keep up the great job Anjan. You are an inspiration to others.