Experiment
← Apple iPhone, iPad, iPod | Alternative Energy-Electric Cars → |
Introduction:
During the experiment potentiometer is arranged in a manner that makes it possible for ADC to be carried out. Values obtained from ADC are changed to digital. This is then transferred to LCD to be displayed.
Various codes were developed to aid in the experiment. They include:
Put the code here
Variable ‘adc_value’ refers to the value of the adc returned by the function ‘read_adc()’. POT means 0x48 representing the pot in the ADCON0 which is sent to variable ‘setup adc’. This helps in setting up the adc and starting the ADC as it sets ADON=1. Meanwhile, loop 1 wehich is the fuction read adc reads values for adc. The return is stored in variable ‘adc value’. It is in the function that variables are defined while GO=1 is positioned to begin conversion. Till the conversion is over, GO==1 plays a major role.
Once the changing/convertion is over num is where the obtained data is transferred to. It is then taken back to the main function. The value adc is transferred to LCD to be displayed. After this, the whole systems/the program goes back to the main function performing similar operations of constantly reading adc values.
Result & Conclusion: It is established that the entire program was free from errors. Additionally the program was put into test through developmental boards. The exercised generated a program that was capable of setting up adc, reading data from the adc values, converting them to digital and showing the results through LCD. This can be seen in the figure shown below;
TAKE THE PICTURE OF THE LCD AND PUT IT HERE AKHI
In conclusion, the experiment was a success in teaching how to go about setting up of adc as well as using microcontroller in taking readings from potentiometer as well as displaying it via LCD.
Exercise 2:
Aim:
- To standardize the ADC
- To compute the resolution of ADC at different within the curve
- To compute errors in percentages of the points within the
Introduction: the experiment entails calibration of ADC. This is done by taking records of varying outputs of potentiometer. For instance at 0 Volt adc value which corresponds with it is recorded. From the outcome atable is generated which in turn help in obtaining adc. A formula for adc resolution is input voltage/digital ouput of adc. For instance at 5 volts at 1023 maximum digital out put; adc resolution is 5/1023=0.0048875
Conclusion: it is established that differing values of results from potentiometer, the corresponding ADC values after measuring and tabulation shows that adc resolution is 0.0048875.
Exercise 3:
Aim:
- To change the program developed in exercise 1 to show real voltage as read from potentiometer through the LCD
Introduction: the experiment is carried out like in experiment 1. And data is shown via LCD. However, instead of convering the data into digital, it is changed into analog value then showed via LCD. Conversion of adc value to the equivalent voltage was done by use of the formula; Analog=(adc_value/100) * (493.1034/10);
Major codes of the program:
In order to show the values obtained (voltage) through LCD ‘analog’ as a variable is transferred into the function labelled ‘display_voltage_value’. It is worth noting that this conitunes while the code enclosed in loop 1.
Result and Conclusion: The experiment entailed modification of experiment 1 in order to depict voltage read from the potentiometer on the LCD. The whole exercise worked without errors and attained it objectives of showing adc values and voltage on LCD
Exercises 4:
Aim:
- To adjust the program in the experiment to utilize LDR rather than potentiometer
Introduction: Resistors that depend on light do generate electric volt once an incident light fall on the resistor. LDR is linked to developmental board. It is worth to note that the set up of the program is similar to that in experiment 1. Nonetheless, it is different in terms of initialization of ADCON0 register. For this experiment ADCON0 is set at 0x80. ADC is switched on by utilizing ADON=1
Following is the main code:
Put the code here
The rest of the processe is similar as that carried previously in loop 1. The function adc reads the values adc from LDC. It eventually takes back the value to the program where adc value is stored. The program is distinct from the previous one as adc values are sent to PORTB lighting up LEDs representing adc values from LDR. This happens continuously since it is enclosed in loop 1.
Result and Conclusion: the experiment used LDR in accepting outputs as well as performing conversion of adc values to be shown in LEDs of the PORTB. The program was free of error and worked well in attaining the objectives. To establish that the program was working, it was observed that with varying fall of incident light on the resistor, there were varying values on LEDs.
Main Conclusion:
Various appliances that are analog need to be interfaced to a microcontroller for us to make calculations. In order to attain this, there is need of converting analog data into digital through adc conversion. A greater foundation is on use of adc program by help of LDR and potentiometer.
- Alternative Energy-Electric Cars
- Computer Engineering
- Apple iPhone, iPad, iPod
- Working with Computers
Enrico V.
San Diego, CA
|
|
|
I was really happy about the speedy turn around time for my paper. It is rare to find a writing service that can write things so quickly without taking away from their quality. Hats off to EssaysEmpire.com! |
Jennifer C.
Sulphur, LA
|
|
|
Your writer did a great job on my history paper. I didn’t have to lift a finger, yet I received an A+. I read the paper and felt like I learned an entire semester’s worth of information. That’s how good it was! |
Nancy B.
Lawrence, KS
|
|
|
I accidentally read the wrong chapters for my history assignment. Therefore, when it came down to the wire and I needed to hand in my history paper, I had to reach out for help very quickly. Your writers were able to put something together for me so fast! I couldn’t believe it! I handed the paper in and got a very high score on it. I was stunned! Thank you so much for your help! |
Susan L.
Ashland, OR
|
|
|
The writer who worked on my paper far exceeded what I asked of him. The paper is better than I thought it would be. I got an A+ on it! Thanks! |
Bruce R.
Tulsa, OK
|
|
|
Thanks for everything. You guys know how to write so well! I will call on you again in the future. |
Trilly M.
Spokane, WA
|
|
|
I just had to let you know how much I appreciated receiving a paper back that was of quality that high. I will recommend your writing service to other people I know. You guys do great work. |
Alexandra Z.
Dallas, TX
|
|
|
I am sitting here reading over what your writing service offers and I just realized that you are the only one that offers free rewrites and full guarantees on your work. This tells me that you are an honest company that I want to do business with. |
Sanjaya K.
Calcutta, INDIA
|
|
|
I am fully satisfied with my research paper. It cannot have been easy for your writers to compose! The topic is called, "PARALLEL ALGORITHM FOR MULTI-DIMENSIONAL MATRIX MULTIPLICATION OPERATIONS REPRESENTATION USING KARNAUGH MAP”. That is a very difficult topic! However, your writers developed an algorithm, included a diagram and a graph and related multi-dimensional matrix multiplication perfectly. I am thrilled with the work I received and will be using your company again in the near future. Thank you for all of your hard work on this project. I love it! |
Rob B.
Tulsa, OK
|
|
|
I needed APA formatting, EssaysEmpire.com’s writers gave me APA formatting. I needed 2000 words. EssaysEmpire.com’s writers gave me 2000 words. I needed an A+ on my paper to bring up my GPA. EssaysEmpire.com gave me a paper that got an A+. I am a happy person, thanks to EssaysEmpire.com! |
Beverly S.
Cambridge, MA
|
|
|
I appreciate the help your wring service gave me with my biology paper. I have never cared much for biology. It is a tough subject for me to grasp. This is why I needed so much help with my paper. The writer absolutely understood the whole topic and turned out work that would have made anyone proud. Thanks a million for the great paper. |
Phoebe K.
Madison, CT
|
|
|
I find your writing company to be professional, proficient and perfect. Your papers are always so good! They make good reading, in addition to being well written assignments. I can tell your writers really know their stuff! |
Sharon S.
Dallas, TX
|
|
|
I greatly appreciate your assistance. Writing has never been my strong point. When I needed help, EssaysEmpire.com gave it to me. I am completely satisfied! |
Steve C.
Marion, NE
|
|
|
Thank you so much! I was assigned a paper that I found impossible to write. I did the reading. I did the research. However, regardless of my weak attempts, I could not formulate a cogent paper. I needed help, and EssaysEmpire.com’s writers were there for me. Customer service even arranged for me to speak with the person who was working on my paper personally. I had a lot of concerns, because my professor was very picky. However, EssaysEmpire.com was able to handle the order with no problem |
Joyce T.
New Orleans, LA
|
|
|
I was trying to choose between EssaysEmpire.com and another online writing service and I didn’t know which one to pick. Then, I began to read reviews. I didn’t read even one thing negative about EssaysEmpire.com, and the other site was fraught with complaints. I went with EssaysEmpire.com, and it turned out that all the good things I had read about the service were true. My paper was fully guaranteed, but it was A-1 quality. The customer service people were great. The prices were right. Now, I am a devoted fan. When I need help with my writing, I go straight to EssaysEmpire.com! |
Bruce B.
Purcell, OK
|
|
|
I had a hard time articulating what my professor wanted, so I was able to speak straight to my writer. After I had explained a little bit, I could tell he understood everything. He then took the ball and ran with it, so to speak. He wrote my paper in two days and it was the picture of perfection! I am very grateful that he knew what to do and how to do it so perfectly. |
Judy C.
Bolingbrook, IL
|
|
|
I have used EssaysEmpire.com for two years now, and I wouldn’t even consider trying another writing service. I am convinced that there is no other service as good as EssaysEmpire.com, and I only want to work with the best. EssaysEmpire.com has given me well written papers that have come in well before their deadlines, every time. I am happy with EssaysEmpire.com and commit to sticking with them. |
Tricia A.
Calabasas, CA
|
|
|
Thanks for everything. I like your writing service a lot. Your staff is friendly and they’re always open. The papers that you’ve written for me have been very good. |
Cleo C.
Wichita, KS
|
|
|
To the writers at EssaysEmpire.com: Next week, I will be graduating with a degree in clinical psychology. Over the course of my college years, I have had to turn to you for help many times. Each and every time, you produced some of the highest quality writing my professors had ever seen. Because of you, I was able to keep a high grade point average and get into an excellent grad school. There are simply no words adequate enough to fully express my appreciation, so I’ll simply say, “thank you” and let it go at that. Please know that you are appreciated. |
Langley R.
Los Angeles, CA
|
|
|
One of the things that I appreciate most about EssaysEmpire.com, is that they don’t resell your paper. Only you own it, if you hire them to write something. Other writing services that I have used, just circulate the same paper over and over, and if you get caught turning one in, too bad. You are expelled. EssaysEmpire.com will even give you a plagiarism report after they run it through their anti-plagiarism check. Such details set EssaysEmpire.com above the rest. |
Nancy T.
Little Rock, AR
|
|
|
The quality of the work produced by your professional writers is second to none. No wonder you have the reputation for being the best writing service online! You certainly met up to all of my expectations! You’re the best, for sure. |