Analog Clock2
Analog Clock2
Annexure I
Analog clock
1.Aim/Benefits of the Micro-Project:
Analog clocks can also help you realize a cost savings beyond the initial purchase price. They
are more energy efficient than digital displays, which is not only good for your bottom line, but
can also help you reach your energy reduction goals.
3.Praposed Methodology :
The source code for Analog Clock is relatively short and easy to understand .
I have divided this C Mini Project into many functions ,most of which are related to different
activities .Listed below are some of the more important functions which are may help you
understand the project better.
Page | 1
Analog Clock
4. Action Plan:
S
Planned Planned Name of Responsible
r. Details of Activity
N Start date Finish date Team Members
o
.
1 Search the topic 25/07/2023 01/08/2023 Anand Bandgar
4:30pm-5:30pm 4:30pm-
5:30pm
5. Resources Required:
Sr.
No Name of resource / material Specification Quantity Remarks
.
1 Computer WINDOWS 10,8GB 1
RAM, 512GB HDD
2 Operating System WINDOWS 10 1
3 Software Turbo c++ 1
4 Browser Google Chrome 1
Page | 2
Analog Clock
Page | 3
Analog Clock
Page | 4
Analog Clock
Annexure – II
Micro-Project Report
1. Rationale:
A substantial effort has been devoted to various adaptive techniques of systems. Most of these
concepts work in the control domain, where every system only has one controller. Yet, for the
multi-controller counterpart — dynamic games, adaptations are usually considered from a
perspective of systems, for an example, evolutionary games. In this paper, we propose a new
adaptive approach for linear quadratic discrete-time games with scalar inputs and state feedback
Nash strategies.
A).Basic Knowledge: Apply Knowledge Of basic mathematics ,sciences and basic enginnering
to solve the broad-based computer enginnering problem.
C). Experiments and practice :Plan to perform experiments ,practices and to use the results
to solve information technology related problems .
D). Enginnering tools: Apply appropriate computer information technology related tools with
an understanding of the limitations .
4.Literature Review:
A hybrid delta-sigma/pipelined modulator is presented by Omid Rajaee et al [7]. The proposed
modulator takes advantage of the high resolution and distributed pipelined quantization, and
combines it with the noise shaping property of a delta-sigma modulator. As a result, gain, swing,
and slew requirements of the integrators are significantly reduced. The modulator also makes use
of the latency in the pipelined quantization to enhance noise shaping. These advantages lead to
less power dissipation, increased stability, and higher resolution.
Page | 5
Analog Clock
In the past decade, much of the research on analog-to-digital converters (ADCs) has focused on
increasing speed, sampling rate and resolution. Bob Verbruggen et al [4] presented four-way
interleaved very fast ADC for communication in the unlicensed frequency band around 60GHz.
Ashutosh Verma [5] has introduced a pipelined ADC calibration method and an accurate resistor
ladder topology that can remove residue gain error, DAC error, and op amp nonlinearity. Owing
to a high-speed, low-power op amp design, the ADC achieves 53 dB SNDR reported for a power
consumption of 55 mW. A 16-bit analog-to-digital converter designed in a complementary SiGe
BiCMOS SOI process has been presented by Robert Payne et al [6]. Although the designed ADC
uses fairly traditional four-stage pipeline architecture.
Clocks use oscillators to keep the gears in motion. ... The controller, in turn, fuels the
wheel chain of the analog clock. The wheel chain is responsible for notching and turning the
indicator hands of the clock. So, with each second that passes, the wheel chain synchronizes the
minutes and hours accordingly.
4 Browser Chrome 1
Page | 6
Analog Clock
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<math.h>
{
int gd=DETECT,gm,sec=0,hour,min,x1=0,y1=0,x2=0,y2=0,x3=0,y3=0;
char *k[12]={"1","2","3","4","5","6","7","8","9","10","11","12"};
struct time t;
initgraph(&gd,&gm,"");
setcolor(YELLOW);
circle(300,200,200);
circle(300,200,180);
setfillstyle(1,RED);
floodfill(300,390,YELLOW);
settextstyle(DEFAULT_FONT,0,2);
//----------------------Constants----------------------//
int a,b;
for(int i=1;i<13;i++)
{
a=160*cos(arg_hour*i-M_PI_2);
b=160*sin(arg_hour*i-M_PI_2);
outtextxy(a+300,b+200,k[i-1]);
}
int dig_sec;
char Time_Dig[14];
while(!kbhit())
{
settextstyle(7,0,4);
outtextxy(264,100,"Satya");
settextstyle(7,0,1);
Page | 7
Analog Clock
outtextxy(278,280,"Quartz");
setcolor(BLACK);
line(300,200,x1+300,y1+200);
line(300,200,x2+300,y2+200);
line(300,200,x3+300,y3+200);
gettime(&t);
if(sec!=t.ti_sec)
{
sound(5000);
delay(1);
nosound();
}
hour=t.ti_hour;
sec=t.ti_sec;
min=t.ti_min;
Time_Dig[0]=hour/10+48;
Time_Dig[1]=hour%10+48;
Time_Dig[2]=':';
Time_Dig[3]=min/10+48;
Time_Dig[4]=min%10+48;
Time_Dig[5]=':';
Time_Dig[6]=sec/10+48;
Time_Dig[7]=sec%10+48;
Time_Dig[8]='\0';
outtextxy(270,250,"ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ");
x1=150*cos(arg_sec*sec-M_PI_2)*0.98;
y1=150*sin(arg_sec*sec-M_PI_2)*0.98;
x2=150*cos(arg_sec*min-M_PI_2)*0.9;
y2=150*sin(arg_sec*min-M_PI_2)*0.9;
if(hour>12) hour-=12;
x3=150*cos(arg_hour*hour-M_PI_2+arg_min*min)*0.6;
y3=150*sin(arg_hour*hour-M_PI_2+arg_min*min)*0.6;
setcolor(YELLOW);
line(300,200,x1+300,y1+200);
setcolor(CYAN);
line(300,200,x2+300,y2+200);
setcolor(WHITE);
line(300,200,x3+300,y3+200);
setcolor(YELLOW);
outtextxy(270,250,Time_Dig);
delay(50);
Page | 8
Analog Clock
getch();
closegraph();
restorecrtmode();
}
Algorithm-
Step 1-: start
. Step9-:stop
Page | 9
Analog Clock
Flowchart-
Page | 10
Analog Clock
7. Outputs of Micro-Projects:
2. The clock is one of the oldest human inventions, meeting the need to measure intervals of time
shorter than the natural units: the day, the lunar month, and the year.
Page | 11