(As a quick recap, the other members of the Wise Clock family are, so far, the glass-domed Wise Clock and Wise Clock 2. They are "wise" because, along with the time, they also display quotations.)
This clock is made with just three major elements:
1. Wiseduino (with RTC and EEPROM on board);
2. 8x32 LED matrix display from Sure Electronics;
3. cardboard box as enclosure.
A few other required components are:
- a tilt sensor (or tilt ball switch);
- a USB cable, to power the clock.
Remove these ads by
Signing UpStep 1: Assembling Wiseduino
Wiseduino can be bought as a kit here. The kit contains the following components:
- PCB (black);
- ATmega328P microcontroller programmed with the bootloader;
- 28-pin socket for the ATmega328P chip;
- 16MHz resonator for the microcontroller;
- DS1307 real time clock, with 8-pin socket;
- 24LC256 EEPROM, with 8-pin socket;
- 32768Hz crystal for the RTC;
- CR1220 coin battery and battery holder;
- 6-pin right angled male header (FTDI connector);
- 40-pin female header;
- 4 resistors 10K;
- 4 decoupling capacitors 100nF;
- 2N2222 transistor;
- power micro switch;
- 2-pin polarized male header (power connector);
- power jack with cable.
To assemble Wiseduino, follow these mini-steps:
1. Solder the IC (integrated circuits) sockets first. Place them correctly, so their notches match those in the silkscreen.
(This will be helpful later, when the ICs are to be inserted into their respective sockets; their notches should match those in the sockets, which match those in the silkscreen, got it?)
2. Solder in place the battery holder. (photo 1)
3. Solder the power connector, then the FTDI connector. (photo 2)
4. Solder the micro switch on the pads. Since this is an SMD (surface mounted device), use this technique: put some solder on one of the pads; place the switch over the pads, then solder the pin which is over the "loaded" pad. Once in place, solder the remaining pins.
5. Solder the four identical (10K) resistors in their places. These are the only resistors on the board.
6. Solder the four decoupling capacitors. Again, they are the only capacitors on the board.
7. Solder the 15MHz resonator.
8. Bend 90 degrees the 2 pins of the small cylindrical crystal (32768Hz), then solder it so it is parallel and close to the board. (photo 3)
At this point, we would have a few more steps to a complete assembling. But, for this project, we don't solder the female headers and neither the transistor.
What is left to be done is:
9. Insert the integrated circuits in their respective sockets, matching the notches (as mentioned above).
10. Insert the coin battery in its holder.
Next, we need to "hack" Wiseduino a bit, to install the tilt switch and to solder the ribbon cable for the display.






































Visit Our Store »
Go Pro Today »




http://www.mediafire.com/view/?i3wwnxzi4nktv5j
In file included from ds1307_test.pde:3:
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:51: error: 'boolean' has not been declared
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:52: error: 'boolean' has not been declared
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:53: error: 'boolean' has not been declared
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:57: error: 'byte' has not been declared
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:58: error: 'byte' has not been declared
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:59: error: 'byte' does not name a type
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:60: error: 'byte' has not been declared
C:\Users\bejad\Documents\PA Andre\arduino-1.0.4\libraries\ds1307/DS1307.h:63: error: 'byte' does not name a type
ds1307_test.pde: In function 'void setup()':
ds1307_test:13: error: expected `;' before 'RTC'
ds1307_test.pde: In function 'void loop()':
ds1307_test:50: error: 'class DS1307' has no member named 'get_sram_byte'
what should i do ?
I do have another question though, in that the VBS script is giving me a "permission denied" error, on line 12, despite having the correct COM port and quote file location specified. The serial monitor is closed as well. Do you have any suggestions? Sorry to plague you with questions.
If you did not solve that yet: if the COM port is higher than 9, you need to address it like "\\:\\COM10" (if I remember correctly; google microsoft site for this naming convention).
"Set com = fso.OpenTextFile("COM3:9600,N,8,1", ForWriting)"
Any obvious issues there?
Any idea how to get around this? Thanks for your help!
1. Add the line #include before #include
2. change all "Wire.receive" to "Wire.read"
3. change all "Wire.send" to "Wire.write"
4. delete the second argument in function "Serial.print" (e.g. BYTE, DEC).
I hope this helps. Let me know how it goes.
You are right, a header file (ht1632.h) is missing from the zip. It worked for me because I had it somewhere else, and the compiler picked it up from there.
Please send me an email (you find the address on my blog: http://timewitharduino.blogspot.com/) and I will send it to you. I will also upload it to my source code repository.
'HT1632_ID_CMD' was not declared in this scope
This error occurs on line 160 of BookClock.pde
Any idea what gives?
BookClock:159: error: 'HT1632_ID_CMD' was not declared in this scope
BookClock.cpp: In function 'void ht1632_clear()':
BookClock:178: error: 'HT1632_ID_WR' was not declared in this scope
BookClock.cpp: In function 'void ht1632_senddata(byte, byte)':
BookClock:201: error: 'HT1632_ID_WR' was not declared in this scope
BookClock.cpp: In function 'void ht1632_setup()':
BookClock:214: error: 'HT1632_CMD_SYSDIS' was not declared in this scope
BookClock:220: error: 'HT1632_CMD_COMS10' was not declared in this scope
BookClock:223: error: 'HT1632_CMD_MSTMD' was not declared in this scope
BookClock:224: error: 'HT1632_CMD_SYSON' was not declared in this scope
BookClock:225: error: 'HT1632_CMD_LEDON' was not declared in this scope