Skip to content

Commit

Permalink
exp7
Browse files Browse the repository at this point in the history
  • Loading branch information
prakriti5dhang committed Sep 18, 2024
1 parent 1f7ffbb commit 8e06632
Show file tree
Hide file tree
Showing 18 changed files with 282 additions and 262 deletions.
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
## Introduction


<b>Discipline | <b>Fill your discipline name here
<b>Discipline | <b>Electronics and Communication and Engineering
:--|:--|
<b> Lab | <b> Fill your lab name here
<b> Experiment| <b> Fill your experiment name and number here
<b> Lab | <b> Analog Electronics Circuits Virtual Laboratory
<b> Experiment| <b> Digital to analog converter

### About the Experiment

Fill a brief description of this experiment here

<b>Name of Developer | <b> Fill the name of experiment owner here
### Project Principal Investigator
<b>Name | <b> **Prof. C.S.Kumar**
:--|:--|
<b> Institute | <b>
<b> Email id| <b>
<b> Department |
<b> Institute | <b> **Indian Institute of Technology Kharagpur**
<b> Email id| <b> **kumar@mech.iitkgp.ac.in**
<b> Department | **Department of Mechanical Engineering**
<b>Webpage| <b> [http://facweb.iitkgp.ac.in/~cskumar/](http://facweb.iitkgp.ac.in/~cskumar/)


### Contributors List

SrNo | Name | Faculty or Student | Department| Institute | Email id
SrNo | Name | Developer and Integration Engineer | Department| Institute | Email id
:--|:--|:--|:--|:--|:--|
1 | . | . | . | . | .
2 | . | . | . | . | .
1 | **Sukriti Dhang** | Developer | Department of Mechanical Engineering | IIT Kharagpur | sukritid05@gmail.com |
2 | **Prakriti Dhang** | Integration | Department of Mechanical Engineering | IIT Kharagpur | prakritidhang05@gmail.com |
5 changes: 4 additions & 1 deletion experiment/aim.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
### Aim of the experiment
## Aim of the experiment

1. To perform Digital to Analog Conveter
2. To observe and plot the Output Voltage.
24 changes: 14 additions & 10 deletions experiment/contributors.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
EMPTY
<!-- Remove all lines above this line before making changes to the file -->
### Subject Matter Experts
| SNo. | Name | Email | Institute | ID |
| :---: | :---: | :---: | :---: | :---: |
| 1 | name | email | institute | id |
## Project Principal Investigator
<b>Name | <b> **Prof. C.S.Kumar**
:--|:--|
<b> Institute | <b> **Indian Institute of Technology Kharagpur**
<b> Email id| <b> **kumar@mech.iitkgp.ac.in**
<b> Department | **Department of Mechanical Engineering**
<b>Webpage| <b> [http://facweb.iitkgp.ac.in/~cskumar/](http://facweb.iitkgp.ac.in/~cskumar/)

### Developers
| SNo. | Name | Email | Institute | ID |
| :---: | :---: | :---: | :---: | :---: |
| 1 | name | email | institute | id |

## Contributors List

SrNo | Name | Developer and Integration Engineer | Department| Institute | Email id
:--|:--|:--|:--|:--|:--|
1 | **Sukriti Dhang** | Developer | Department of Mechanical Engineering | IIT Kharagpur | sukritid05@gmail.com |
2 | **Prakriti Dhang** | Integration | Department of Mechanical Engineering | IIT Kharagpur | prakritidhang05@gmail.com |
2 changes: 1 addition & 1 deletion experiment/experiment-name.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## Experiment name
## Digital to analog converter
67 changes: 46 additions & 21 deletions experiment/posttest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,62 @@
"version": 2.0,
"questions": [
{
"question": "This is a Sample Question 1?",
"question": "A DAC converts an digital input signal to a analog output.",
"answers": {
"a": "answer1",
"b": "answer2",
"c": "answer3",
"d": "answer4"
"a": "True",
"b": "False"

},
"explanations": {
"a": "Explanation 1 <a href='www.google.com'>here</a>",
"b": "Explanation 2",
"c": "Explanation 2",
"d": "Explanation 2"

"correctAnswer": "a",
"difficulty": "beginner"
},
{
"question": "The equivalent weight of LSB in a four-bit variable resistive divider D/A converter is",
"answers": {
"a": "1/16",
"b": "1/15",
"c": "1/8",
"d": "8/15"
},

"correctAnswer": "b",
"difficulty": "beginner"
},
{
"question": "What is used to represent the signed magnitude?",
"answers": {
"a": "MSB",
"b": "LSB",
"c": "None of the above"

},

"correctAnswer": "a",
"difficulty": "beginner"
},
{
"question": "This is a Sample Question 2?",
"question": "Determine the resolution and full scale output of 4-bit weighted resistor DAC with a reference of 10 volts.",
"answers": {
"a": "answer1",
"b": "answer2",
"c": "answer3",
"d": "answer4"
"a": "Resolution=1.25 V, Full scale voltage=18.75 V",
"b": " Resolution=2.5 V, Full scale voltage=18.75 V",
"c": "Resolution=5 V, Full scale voltage=18.25 V",
"d": "Resolution=2.5, Full scale voltage=18.75 V"
},
"explanations": {
"a": "Explanation 1 <a href='www.google.com'>here</a>",
"b": "Explanation 2",
"c": "Explanation 2",
"d": "Explanation 2"

"correctAnswer": "a",
"difficulty": "beginner"
},
{
"question": "A 4-bit R/2R digital-to-analog (DAC) converter has a reference of 5 volts. What is the analog output for the input code (B<sub>3</sub>, B<sub>2</sub>, B<sub>1</sub>, B<sub>0</sub>) = 0010.",
"answers": {
"a": "0.625",
"b": "0.765",
"c": "0.938",
"d": "-0.938"
},
"correctAnswer": "c",

"correctAnswer": "a",
"difficulty": "beginner"
}
]
Expand Down
69 changes: 47 additions & 22 deletions experiment/pretest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,63 @@
"version": 2.0,
"questions": [
{
"question": "This is a Sample Question 1?",
"question": "Analog signals have continuous electrical signals.",
"answers": {
"a": "answer1",
"b": "answer2",
"c": "answer3",
"d": "answer4"
"a": "False",
"b": "True"

},
"explanations": {
"a": "Explanation 1 <a href='www.google.com'>here</a>",
"b": "Explanation 2",
"c": "Explanation 2",
"d": "Explanation 2"
},
"correctAnswer": "a",

"correctAnswer": "b",
"difficulty": "beginner"
},
{
"question": "This is a Sample Question 2?",
"question": "Analog signal is represented by ___________",
"answers": {
"a": "answer1",
"b": "answer2",
"c": "answer3",
"d": "answer4"
"a": "Square Wave",
"b": "Triangle Wave",
"c": "Sine Wave"

},
"explanations": {
"a": "Explanation 1 <a href='www.google.com'>here</a>",
"b": "Explanation 2",
"c": "Explanation 2",
"d": "Explanation 2"

"correctAnswer": "c",
"difficulty": "beginner"
},
{
"question": "A 4-bit R/2R digital-to-analog (DAC) converter has a reference of 5 volts. What is the analog output for the input code (B<sub>3</sub>, B<sub>2</sub>, B<sub>1</sub>, B<sub>0</sub>) = 0011.",
"answers": {
"a": "9.125",
"b": "0.765",
"c": "0.938",
"d": " -0.938"
},

"correctAnswer": "c",
"difficulty": "beginner"
},
{
"question": "Determine the resolution and full scale output of 4-bit weighted resistor DAC with a reference of 10 volts.",
"answers": {
"a": "Resolution=1.25 V, Full scale voltage=18.75 V",
"b": "Resolution=2.5 V, Full scale voltage=18.75 V",
"c": "Resolution=5 V, Full scale voltage=18.25 V",
"d": "Resolution=2.5, Full scale voltage=18.75 V"
},

"correctAnswer": "a",
"difficulty": "beginner"
},
{
"question": "The two ways of representing the 0 with signed magnitude representation is",
"answers": {
"a": "+0 and +0",
"b": "-0 and +0",
"c": "-0 and -0",
"d": "None of the above"
},

"correctAnswer": "b",
"difficulty": "beginner"
}
]
}
60 changes: 59 additions & 1 deletion experiment/procedure.md
Original file line number Diff line number Diff line change
@@ -1 +1,59 @@
### Procedure
## Procedure

- **3 bit Binary Weighted Resistors**
1. Connect the components as mentioned below:
L1-L5, L4-L6, L3-L5.(For eg. click on 1 and then drag to 5 and so on.)
2. Click on 'Check Connection' button to check the connections.
3. If connected wrong, click on the wrong connection. Else click on 'Delete all connection' button to erase all the connections.
4. Set the Resistance (R) value (1 Kohm - 10 Kohm).
5. Set the Feedback Resistance (R<sub>f</sub>) value same as the Resistance (R) .
6. Set input voltage (V<sub>in</sub>).
7. The IC is given proper bias of +12V and -12V to V<sub>CC</sub> and V<sub>EE</sub> respectively.
8. Intially B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> are set to 000.(B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> are 3 bit input)
9. Now note the output voltage and click on 'Add to table' button.
10. Change the B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> and note the output voltage and click on 'Add to table' button.
11. Repeat the experiment for another set of resistance value.

<div align="center">
<img src="images/3bitbwr_prc.png" width="50%">
<p>3 bit Binary Weighted Resistors</p>
</div>


- **4 bit Binary Weighted Resistors**
1. Connect the components as mentioned below:
L1-L5, L4-L6, L3-L5.(For eg. click on 1 and then drag to 5 and so on.)
2. Click on 'Check Connection' button to check the connections.
3. If connected wrong, click on the wrong connection. Else click on 'Delete all connection' button to erase all the connections.
4. Set the Resistance (R) value (1 Kohm - 10 Kohm).
5. Set the Feedback Resistance (R<sub>f</sub>) value same as the Resistance (R) .
6. Set input voltage (V<sub>in</sub>).
7. The IC is given proper bias of +12V and -12V to V<sub>CC</sub> and V<sub>EE</sub> respectively.
8. Intially B<sub>3</sub>B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> are set to 0000.(B<sub>3</sub>B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> are 4 bit input)
9. Now note the output voltage and click on 'Add to table' button.
10. Change the B<sub>3</sub>B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> and note the output voltage and click on 'Add to table' button.
11. Repeat the experiment for another set of resistance value.

<div align="center">
<img src="images/4bitbwr_prc.png" width="50%">
<p>4 bit Binary Weighted Resistors</p>
</div>

- **4 bit Binary Ladder**
1. Connect the components as mentioned below:
L1-L5, L4-L6, L3-L5, L9-L12.(For eg. click on 1 and then drag to 5 and so on.)
2. Click on 'Check Connection' button to check the connections.
3. If connected wrong, click on the wrong connection. Else click on 'Delete all connection' button to erase all the connections.
4. Set the Resistance (R) value (1 Kohm - 10 Kohm).
5. Set the Feedback Resistance (R<sub>f</sub>) value same as the Resistance (R) .
6. Set input voltage (V<sub>in</sub>).
7. The IC is given proper bias of +12V and -12V to V<sub>CC</sub> and V<sub>EE</sub> respectively.
8. Intially B<sub>3</sub>B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> are set to 0000.(B<sub>3</sub>B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> are 4 bit input)
9. . Now note the output voltage and click on 'Add to table' button.
10. Change the B<sub>3</sub>B<sub>2</sub>B<sub>1</sub>B<sub>0</sub> and note the output voltage and click on 'Add to table' button.
11. Repeat the experiment for another set of resistance value.

<div align="center">
<img src="images/4bitbl_prc.png" width="50%">
<p>4 bit Binary Ladder</p>
</div>
9 changes: 8 additions & 1 deletion experiment/references.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
### Link your references in here
## References

#### Books
1. Boylestad / Nashelsky, Electronic Devices and Circuit Theory , Pearson Education India; 11 edition (2015)
2. Adel S. Sedra , Kenneth C. Smith , Arun N. Chandorkar , Microelectronic Circuits: Theory And Applications,Oxford University Press ,Seventh Edition, (1 June 2017)
3. Donald Neamen, Electronic Circuits: Analysis and Design, McGraw Hill Education; 3 edition (25 August 2006)
4. Jacob Millman , Christos Halkias , Chetan Parikh , Millman's Integrated Electronics, McGraw Hill Education; 2 edition (1 July 2017)
5. B.G. Streetman and S. Banerjee, Solid State Electronic Devices, Prentice Hall.
12 changes: 6 additions & 6 deletions experiment/simulation/simulation/js/bitchange_onoff_3bit.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ function textChangerf() {
function changeImageb2_2() {
image2 = document.getElementById('b2_2');
if (image2.src.match("off")) {
image2.src = "./image/on.png";
image2.src = "./images/on.png";
b2_2=1;
} else {
image2.src = "./image/off.png";
image2.src = "./images/off.png";
b2_2=0;
}
switchchange();
Expand All @@ -70,11 +70,11 @@ function changeImageb2_2() {
function changeImageb1_1() {
image1 = document.getElementById('b1_1');
if (image1.src.match("off")) {
image1.src = "./image/on.png";
image1.src = "./images/on.png";
b1_1=1;

} else {
image1.src = "./image/off.png";
image1.src = "./images/off.png";
b1_1=0;
}
switchchange();
Expand All @@ -83,10 +83,10 @@ function changeImageb1_1() {
function changeImageb0_0() {
image0 = document.getElementById('b0_0');
if (image0.src.match("off")) {
image0.src = "./image/on.png";
image0.src = "./images/on.png";
b0_0=1;
} else {
image0.src = "./image/off.png";
image0.src = "./images/off.png";
b0_0=0;
}
switchchange();
Expand Down
Loading

0 comments on commit 8e06632

Please sign in to comment.