<html>
<h1>Clock based on 32,768kHz crystal oscillator</h1>
<br/>
https://steemitimages.com/DQmcVy9RQUCekHwPv9YfGgygvHLAMDDFMkq7YkJwepyAyrd/Zrzut%20ekranu%202018-01-15%20o%2013.46.23.png
<br/><br/>
<p>Two years ago on my studies at Wrocław University of Science and Technology i had classes from Electronics Devices Construction. We had a semester to build own project, and I wanted to build a clock, which can lie on the shelf. I've made an clock based on crystal oscillator, LED display, sound (1kHz sine) hourly with ability to change duration of sound, 24-hours display format, reset button and 9V power supply. Everything I built with the CMOS technology.</p>
<p>So, now I want to show you what I did as a project. Of course if you want to build something using my schema's or designs that's totally fine with me. Here you go:</p>
<h2>1. Design brief</h2>
This project should reach expectations:
<li>24-hour data type display [HH:MM].</li>
<li>Ability to setup hours and minutes, and reset everything to zero (midnight).</li>
<li>9V power supply.</li>
<li>Producing informating sound hourly.</li>
<li>Compact size of the device - no larger than 20x15x5cm.</li>
<li>Good visibility digits from 3 meters far.</li>
<h2>2. Choice of electronical solutions</h2>
Possible solutions:
<li>Generator of model frequency: quarz or RC.</li>
<li>Display: LCD, LED or lamp.</li>
<li>Technology: TTL, CMOS, Processor.</li>
<li>Power: battery or power supply.</li>
<br/>
<p>In this project I used crystal 32,768kHz oscillator because of high accuracy generating
frequency. The LCD display was rejected because of low quality of visibility from
farther distance. The lamp display could increase size of device, so I decided to use
LED display with 14.2mm height. I tested experimentally visibility of digits from 3
meters and it was good. The TTL technology was rejected because of high power
consumption. I have chosen CMOS technology because elements are cheap and have
big integration scale. This clock have a task to stay for a long time on shelf, so power
supply(not battery) is optimal.</p>
<h2>3. Flow chart</h2>
https://steemitimages.com/DQmYC6pNs89FfdKucE9cxYMuawLc5QSscvtc1XvushZTovg/Zrzut%20ekranu%202018-01-15%20o%2022.00.42.png
<br/>
<h2>4. Calculations and how it works</h2>
I don't know how to do math symbols in the Steemit editor, so excuse me, I'll put here screenshots. I know it's not really nice, but I don't have any option - if you know how to make equations please let me know in the comments!
<br/><br/>
<p>Generator of acoustic signal based on opamp with Wien:</p>
https://steemitimages.com/DQmSUihVyXMm1iiCxdrH8GDiYa53EsmJWJ6RRAuur4TrtmR/Zrzut%20ekranu%202018-01-15%20o%2022.04.23.png
<br/><br/>
<p>Generator of impulse with appointed time based on univibrator LM555:</p>
https://steemitimages.com/DQmeGSCZA1atqpZSSYxj7ZXnr3oD1LWsfE5an744g8JkD1Q/Zrzut%20ekranu%202018-01-15%20o%2022.05.38.png
<br/>
<h2>5. Schematics</h2>
Electric schema:
https://steemitimages.com/DQmVNouRxCLvgjcBrcvTSP461cQVoFfJMosNEzQX4wNqex9/Zrzut%20ekranu%202018-01-15%20o%2013.41.58.png
<br/><br/>
PCB design for external factory (top layer):
https://steemitimages.com/DQmagDeew6yvdEJRNTPAr1PrMRVvo3rsnWmJbpLSASwPDqD/Zrzut%20ekranu%202018-01-15%20o%2013.43.34.png
<br/><br/>
PCB design for external factory (bottom layer):
https://steemitimages.com/DQmf5yP6XRaX3Ew4EL1DcyjYQE9vvi4RojMuewDU6jmciHX/Zrzut%20ekranu%202018-01-15%20o%2013.45.03.png
<br/><br/>
<h2>6. Short video representing working device</h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/uchlWsC5Gps?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<br/>
<h2>7. Some pictures made during contruction process</h2>
<div class="pull-left">https://steemitimages.com/DQmcvpxsmFnBiinphY8aPaPJPo8j3NXRnKGL6UyaAd5YH6d/ogol10.jpg</div>
<div class="pull-right">https://steemitimages.com/DQmZXLvdicS84SYFQ36XD2vxZXQqfwnZPcxog8cJyTqcaMn/001.jpg</div>
<div class="pull-left">https://steemitimages.com/DQmVvrad8EVoyHTEctjG8u33dkxqJ5JRkT79DEHrZzZcK8i/003.jpg</div>
<div class="pull-right">https://steemitimages.com/DQmcSQAQpwwEER5RXtDHa5uACQcjwWrRZigsgFbVyUhYwdy/004.jpg</div>
<div class="pull-left">https://steemitimages.com/DQmVi5E9myfRp8uzdmAYVdbJVikfvUtMiyx7AVN9N4uNtQb/ogol2.jpg</div>
<div class="pull-right">https://steemitimages.com/DQmV1qKM5wJfLf2ZfcXMtUGT679NWXksZsKhBpZ1HcatBi2/ogol7.jpg</div>
<br/><br/>
<h2>8. Conclusions and observations</h2>
<p>This clock reached expectations of design brief and it’s extended of new
function – ability to set up duration of hourly sound with possibility of turning off,
what is really practical in the evening/night time. As the power supply I used from the
recycling old mobile charger. The speaker is from the recycling too – I disassembled
speaker from old broken headphones. The rest of elements I bought in the electronic
store, the PCB made external factory with my PCB design. All expected costs was
70zł(~ 15 USD) and it was subtly exceeded.
The two-ply PCB because of time of realization was made without
metalizations of cleats and holes what made a problem for me with soldering
elements(some of them had to be soldered from both sides). When I was designing
PCB I located cleats under the integrated circuits, and because of no-metalizations
cleats I had to insert there a connector what created problems for me when I was
installing elements, because some integrated circuits was “leaning” on the
connectors, so in the future if I’ll have no-metalized cleats I will be avoiding cleats
under integrated circuits.
In the first version of project the function of solid-state relay was to serve
4053 chip – analog multiplekser/demultiplekser. When I switched on my device it
turned out that this 4053 is not working properly, so I decided to use classic solidstate
relay. The next element which required improvement was ability to set up
duration of sound. Control of LM555 element required differentiator.</p>
<p>It's been two years after the project, and I've got the clock still on my desk, but it's not perfect. The clock is hurrying almost 10 minutes per week - it's a lot. I could buy more oscillators and just try them - the cost is very low, so I suppose that they are not really precision and some of them could be better than the others. Other way is to buy a cheap system of atomic clock which I could set that every midnight would be resetting my device. In my clock every reset is making an 00:00 time, so if I'll make that exactly at midnight everyday that would be okey.</p>
<p>All informations from here you can find in the <a href="http://tomasz.rudowi.cz/clock/Clock-englishV.pdf" target="_blank">PDF</a>, and you can find more photos and info <a href="http://tomasz.rudowi.cz/clock/" target="_blank">here</a>. Thank you for your time and please let me know if you like this!</p>
</html>