Home > Projects > Analog Clock And Temperature sensor On An Oscilloscope using Arduino

Analog Clock And Temperature sensor On An Oscilloscope using Arduino

Summary of Analog Clock And Temperature sensor On An Oscilloscope using Arduino


The Scopeclock project converts an analog X-Y oscilloscope into a functional scope clock using Arduino. It features two modes: Analog Clock Mode, which displays accurate time via hands, and Temperature Mode, showing ambient temperature. The system uses a push button to toggle between modes via interrupts. Two 8-bit R-2R ladder DACs convert digital signals from the Arduino into analog voltages for the oscilloscope channels, while a thermistor measures temperature. This hardware enhancement was developed by students at CEDT NSIT under Prof. Dhananjay V. Gadre.

Parts used in the Scopeclock:

  • Arduino
  • Analog Oscilloscope (X-Y capable)
  • R-2R Ladder DACs (two 8-bit formations)
  • Thermistor (NTC type)
  • Push Button
  • Arduino Protoshield
  • Precision Resistors
  • Temperature Sensor Circuit

Scopeclock is an easy to use hardware to make your X-Y capable analog oscilloscope more useful .Using this simple to use hardware you can convert your analog oscilloscope into a scope clock.This project was me and my friend kshitij gupta at CEDT nsit under the guidance of Prof. Dhananjay V.Gadre.

Scope clock has two modes of operation

• Analog clock Mode –   This is the default mode of operation . When the arduino is reset an analog clock appears on the oscilloscope screen .It keeps accurate time using  clock hands.

• Temperature Mode –   This mode of operation displays the current temperature of the surrounding .
Arduino Scope clock
The mode is controlled  by a push button . On pressing and releasing the pushbutton an interrupt is generated which changes  the mode to Thermometer which displays the current temperature of the surrounding . After a few seconds the mode changes to  analog clock

Step 1: The D.A.C

A Digital-to-Analog converter (DAC or D-to-A) is a device that converts a digital (usually binary) code to an analog signal. Digital-to-analog conversion can degrade a signal, so conversion details are normally chosen so that the errors are negligible.
Due to cost and the need for matched components, DACs are almost exclusively manufactured on integrated circuits (ICs). There are many DAC architectures which have different advantages and disadvantages. The suitability of a particular DAC for an application is determined by a variety of measurements including speed and resolution. Depending upon the requirement we can use a 2 or more bit resolution DAC .

Although many types of DAC  configuration are available ,an R-2R Ladder is the  simple and inexpensive way to perform Digital-to-Analog conversion, using repetitive arrangements of precision resistor networks in a ladder-like configuration. In this project we have used two 8-bit R-2R ladder formations two convert the digital signal from the arduino into analog form and these are fed to the two channels of the Oscilloscope .

The DAC`s  are soldered on the  arduino protoshield  along with temperature sensor circuit , connections of the two DAC with pins of arduino are shown in schematic

In our project digital pins D2-D9 are used in DAC1, digital pins D11-D13 and  analog pins A1-A5 are used in DAC2 .

Arduino Scope clock circuit

Step 2: Temperature sensor

First few important points while working with a thermistor.

A thermistor is a thermal resistor – a resistor that changes its resistance with temperature. Technically, all resistors are thermistors – their resistance changes slightly with temperature – but the change is usually very very small and difficult to measure. Thermistors are made so that the resistance changes drastically with temperature so that it can be 100 ohms or more of change per degree!

There are two kinds of of thermistors, NTC (negative temperature coefficient) and PTC (positive temperature coefficient). In general, you will see NTC sensors used for temperature measurement. PTC’s are often used as resettable fuses – an increase in temperature increases the resistance which means that as more current passes through them, they heat up and ‘choke back’ the current, quite handy for protecting circuits!
Thermistors have some benefits over other kinds of temperature sensors such as analog output chips (LM35/TMP36 ) or digital temperature sensor chips (DS18B20) or thermocouples .

Major Components in Project
Arduino

For more detail: Analog Clock And Temperature sensor On An Oscilloscope using Arduino

Quick Solutions to Questions related to Scopeclock:

  • What is the primary function of the Scopeclock?
    It converts an X-Y capable analog oscilloscope into a useful scope clock.
  • How does the user switch between operating modes?
    Pressing and releasing a push button generates an interrupt that changes the mode.
  • What are the two modes of operation for this device?
    The device operates in Analog Clock Mode and Temperature Mode.
  • Which component is used to convert digital signals to analog form?
    Two 8-bit R-2R ladder formations are used as Digital-to-Analog converters.
  • Why were NTC thermistors chosen for this project?
    They change resistance drastically with temperature, offering benefits over other sensor types.
  • How long does the device stay in Temperature Mode before switching back?
    After a few seconds, the mode automatically changes back to the analog clock.
  • Which Arduino pins are assigned to DAC1?
    Digital pins D2 through D9 are used for DAC1.
  • Where are the DACs and temperature sensor circuit soldered?
    They are soldered onto the Arduino protoshield.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top