Oscillogio – orologio su oscilloscopio

Questo progettino consiste in un orologio digitale che ha la particolarità  di avere come display un oscilloscopio ! Viene utilizzata SOLO la modulazione sull’asse Y, quindi si può utilizzare qualsiasi tipo di oscilloscopio, anche uno vecchio (e stanco). Questo progetto è stato pubblicato (a mio nome, naturalmente !) sul numero di Giugno 2007 della rivista CQ Elettronica (Edizioni CD). Il circuito è basato sul micro Atmel ATtiny2313 oppure AT90S2313 (vecchia versione). Se si usa la nuova versione, bisogna avere l’accortezza di programmare i “fuses” interni affinché venga utilizzato l’oscillatore quarzato esterno e non quello libero interno.

Ecco il circuito con l’alimentazione a 3V ricavata da due normali batterie AA.

Nel documento zip scaricabile da questo link troverete i files “batch” per programmare memoria flash e “fuses” del micro usando il programma freeware SP12.

Il file giugno07.zip contiene:
– schema.pdf – lo schema elettrico in PDF
– stampato.pdf – il circuito stampato in scala 1:1 formato PDF
– lista_materiali.txt – la lista dei materiali
– montaggio.jpg – lo schema di posizionamento dei componenti
– ckscope.hex – il file HEX per programmare il micro
– tinySetClock.bat – il file “batch” per programmare i “fuses”
– wrProg.bat – il file “batch” per programmare la flash

Aggiornamento 20 Ago 2017: nel vecchio articolo pubblicato a questo link: http://ficara.altervista.org/pages/ef_avroscillo/avroscillo.htm troverete anche il codice del programma sorgente in C.


Digital clock that uses a single channel oscilloscope as display. Only the ‘Y’ axis modulation is used, so every old (and tired) oscilloscope can be used. This project was published (by me, of course !) on the 2007 June issue of italian magazine “CQ Elettronica”. The circuit is based on popular ATtiny2313 or AT90S2313 microcontroller. If you plan to use the new one (the ATtiny2313) please remember to program the fuses for external xtal oscillator. In the downloadable zip document at this link you can find the batch files to program the memory and the fuses of the microcontroller using the SP12 free tool.

File giugno07.zip contents:
– schema.pdf – the electric schematic in PDF format
– stampato.pdf – the PCB layout in 1:1 scale
– lista_materiali.txt – the bill of materials
– montaggio.jpg – the components mounting map
– ckscope.hex – the HEX file to burn the micro
– tinySetClock.bat – the batch file for micro’s fuses programming
– wrProg.bat – the batch file for micro’s memory programming

Update Aug, 20, 2017: in the old article published at this link: http://ficara.altervista.org/pages/ef_avroscillo/avroscillo.htm you can find the souce code of the program in C.


RoboClock: alarm clock with ringing glass

I built this clock some years ago (in the 2005). It was a present for my son that has difficulties to wake-up in the morning. I decided to create a new kind of ringer, using a glass, a small cc motor and two small rubber balls tied to the motor axis. As cointainer, I used 6 “jewel case” for CDs and a lot of glue 🙂 as you can see in the picture below.

roboclock

There are 12 leds for the hours and 12 for minutes, this means that they advance at every 5 minutes boundary. I think this is sufficient ; personally, I never say: “are twelve past ten”, but use an approximation like “are ten past ten” or “a quarter part ten”, depending from the minute (and… normally I say it in Italian, my native language). This clock uses always a defect approximation, but you can modify the C source to create your own version. The control buttons are for setting the current time, the alarm time and to stop the ringer. In the schematic there is a NiCd battery (4.8V) that recharges at very low current. This just in case the power fails ; an alarm clock MUST work even if there is no supply. Obviously, today the NiCd rechargeable batteries are obsolete, but you can modify the circuit (included in the downloadable file) to change the part used for charging. Also note that the microcontroller used for this project is the AT90S2313, that’s obsolete. You can simply interchange it with the modern and active ATtiny2313 ; remember to adjust the internal fuse pattern in order to achieve the external Xtal clock running (at 4.096 MHz).

The downloadable file ef093.zip contains:
– root_1_1.pdf , the electric schematic, page 1
– root_1_2.pdf , the electric schematic, page 2
– tn_roboclock.jpg , the picture of the roboclock realized by me
– a093mio.hex , the hex file ready to be programmed into the micro
– main.c , the ‘C’ source file for this device

General purpose infrared remote control receiver with RS232 output

This circuit, based on popular micro ATtiny2313 from Atmel, can receive signals transmitted by an infrared remote control using the NEC protocol (or similar) with 32 bits of data. The received infrared stream is converted to ASCII string and transmitted on the RS232 port with format 19200,N,8,1. Power supply is taken directly from the PC serial port, if you activate the DTR or/and RTS lines. To test the circuit you can use the standard Windows HyperTerminal program.

148pic

The circuit transmits on RS232 three types of informations :
1) the character @ at micro reset and then every 5 seconds of inactivity (no signal received by the infrared sensor)
2) a string of 8 hexadecimal ASCII characters preceded by < and followed by >
3) the character # if you continue to hold down a button on the remote control, with a period given by the repetition rate of the remote control (100/200 mS approx.)

A typical string may be something like this : @@@@<00FF00FF>## where the first 4 characters @ means that there was no activity on the infrared sensor for about 20 seconds, <00FF00FF> is the key code received from remote and ## indicates that the key was pressed for 200/400 milliseconds.

Want to take a look at C source for this program ? Click here

To burn the micro, I used the freeware version of SP12 for WinXP or Win2K.
The batch files to program the micro and the fuses that are included in zip file, are tailored for this software (you can find it easily with a google search).

If you have other tools for micro programming, the fuses configuration for the application described is : Ext = 0xFF High = 0xCB Low = 0xEC

The downloadable file ef148.zip contains :
– schematic.pdf – the electric schematic in PDF format
– top.pdf – the PCB layout in 1:1 scale
– topprint.pdf – the components mounting map
– irrx.hex – the HEX file to burn the micro
– wrFuses.bat – the batch file for micro’s fuses programming
– wrProg.bat – the batch file for micro’s memory programming
– 148pic.jpg – the picture of the working circuit

This circuit was designed and programmed by me on 2008 Nov 08 ; it was published on my old sites, then removed when I closed that sites and now is here (to stay)  😉