0% found this document useful (0 votes)
42 views11 pages

Analog Clock2

Uploaded by

freefire206354
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views11 pages

Analog Clock2

Uploaded by

freefire206354
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Analog Clock

Annexure I

Micro Project Proposal

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.

2.Course Outcome Addressed:


Develop ‘c’ program using computer graphics.

Develop ‘c’ program using pixels, lines and other function.

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.

Struct:- This used for to show the Time .

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

2 Search the information 08/08/2023 22/08/2023 Madhur Babalsure


4:30pm-5:30pm 4:30pm-
5:30pm
3 Algorithm developing 05/09/2023 12/09/2023 Abhay Ugile
4:30pm-5:30pm 4:30pm-5:30pm

4 Flowchart developing 26/09/2023 03/10/2023 Parth Giri


4:30pm-5:30pm 4:30pm-5:30pm

5 Function making 03/10/2023 10/10/2023 Madhur Bbalsure


4:30pm-5:30pm 4:30pm-5:30pm

6 Coding developing 10/10/2023 17/10/2023 Giri Parth


3:30pm-5:30pm 3:30pm-5:30pm
7 Debugging 17/10/2023 17/10/2023 Abhay Ugile
4:30pm-5:30pm 4:30pm-5:30pm

8 Finalizing project with its 31/10/2023 31/10/2023 Anand Bandgar


report 3:30pm-5:30pm 3: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

Names of Team Members with Roll No.’s:


Sr.
Enrollment No. Name of Team Member Roll No.
No.
1 2210950135 Anand govindrao bandgar 44
2 23511540212 Madhur tanaji babalsure 63
3 2210950153 Parth sanjay giri 55
4 2210950139 Abhay ugile 20

Mr. Kazi A.S.M

Name and Signature of the Teacher

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.

2. Aims / 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.course Outcomes Achieved:

A).Basic Knowledge: Apply Knowledge Of basic mathematics ,sciences and basic enginnering
to solve the broad-based computer enginnering problem.

B).Discipline Knowledge: Apply information technology knowledge to solve broad-based


information technology related problems .

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 .

E) .Communication :Communicate effectively in oral and written form.

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.

5.Actual Methodologies Followed:


Analog clock: Analog clock is a subclass of View class. It represents a circular clock. Around the
circle, numbers 1 to 12 appear to represent the hour and two hands are used to show instant of
the time- shorter one for the hour and longer is for minutes.

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.

6. Actual Resources Used:

Sr. Name of resource


Specification Quantity Remarks
No. material

1 Computer WINDOWS 7,2GB RAM, 1


160GB HDD
2 Operating System WINDOWS 7 1

3 Compiler Turbo C/GCC 1

4 Browser Chrome 1

Page | 6
Analog Clock

5.1 Source Code:

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
#include<math.h>

#define arg_sec M_PI/30


#define arg_hour M_PI/6
#define arg_min M_PI/360
void main()

{
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

Step 2-:declare i, int gdrive = DETECT.

Step 3-: for(i=0;i<=640;i++)

Step 4-: first draw big circle.

Step 5: draw circle, back wheels.

Step 6-: draw back incircle

Step 7-: draw lines, front lines , small incircle

Step 8-: draw big incircle , numbers, mid point.

. Step9-:stop

Page | 9
Analog Clock

Flowchart-

Page | 10
Analog Clock

7. Outputs of Micro-Projects:

8. Skill developed / Learning out of this Micro-Project:


Adds skills developed as per your micro project. Some example is given below
There are so many thing that we learn from this project of
1. We learn that how to make the project in Computer Graphics
2. How to do the testing of program in turbo c.
3. How to collect the information and how to make the presentation that we learn from this
project.
4. We develop our logic implementation for programing and coding.
5. This all thing we learn from this project.

9. Applications of this Micro-Project:


1. A clock is an instrument used to measure, keep, and indicate time.

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

You might also like