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
![]() |
Shirley R.
Casper, WY
|
|
I would be honored to recommend your writing service to all of my friends. I don’t usually recommend anything unless I truly believe it to be a good thing. EssaysEmpire.com is a good thing! |
![]() |
Kaylie B.
Casper, WY
|
|
Thank you, EssaysEmpire.com, for being the one writing service that I can always depend upon. You are reliable, honest and you do great work. I have been happy with every order I have placed with you |
![]() |
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! |
![]() |
Mia W.
Amherst, MA
|
|
Dear EssaysEmpire.com, I would like to put in a good word for Writer #32412. He was really under the gun. I didn’t give him much notice because I had my dates mixed up and my paper was due sooner than I expected. He didn’t let me down, though. He wrote until the paper was perfected. I handed it in on time got an A+ and wish your writers could accept tips, because I would leave this guy a HUGE one! |
![]() |
David H.
New York, NY
|
|
I want to thank each writer who participated in helping with my large project. I know they spent a lot of energy turning out an admirable product, and I feel good for having hired them to take on this important project. EssaysEmpire.com is reputed as the best writing company on the Internet. Now, I know first hand, that you live up to that reputation. I could not have asked for a better deal. |
![]() |
James C.
New Orleans, LA
|
|
I am required to do more writing this semester that I possibly have time for. Right after class, I have to go straight to my job. It’s a good thing I have EssaysEmpire.com to help me out with the writing. You guys always do such excellent work. Thanks! |
![]() |
Royce E.
Dallas, TX
|
|
I first approached EssaysEmpire.com with skepticism. However, now, I have none. I am convinced that you are probably the best writing service on the Internet. Plus, you don’t overcharge, as so many writing services do. Thank you for the quality writing at affordable prices. You offer such a valuable service to students such as me. |
![]() |
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! |
![]() |
Della M.
Belfast, IR
|
|
I had to turn on my laptop for the express purpose of writing to you. I had to let you know what lifesavers you people are! I had never even considered hiring a professional writer to help me and was almost resigned to dropping out of school altogether. Then, I thought about it, and asked myself what it would hurt to try EssaysEmpire.com for just one paper. That paper was written astonishingly well! From that one paper, I learned many of the things that I did not know about writing. It was perfect, so I learned all about formatting in the APA style. I learned a lot, so I want to thank you for that. |
![]() |
George Sparlin
Nashville, TN
|
|
You guys are fabulous to offer such amazing guarantees for your work. I hired you for my last two papers because there was no risk involved. That was a pretty attractive option, if you ask me. Of course, I didn’t have to cash in on any kind of guarantee, because the work was perfect! Go figure. Thank you, EssaysEmpire.com. |
![]() |
Tommy Davids
Singapore, CH
|
|
EssaysEmpire.com knows how to do the things that it takes to instill confidence in their customers. They can be counted on every time, to deliver high quality service and high quality writing at prices that we can afford. I would never use any other writing company. “If it ain’t broke, don’t fix it.” It ain’t broke! |
![]() |
Jeff M.
Baltimore, MD
|
|
I would like to commend your excellent writers for a job well done. They followed my directions to a tee. Thank you, EssaysEmpire.com for being who you are and for doing what you do. There is no better writing service anywhere. |
![]() |
John G.
Erie, PA
|
|
Thanks goes out to the writers who presented me with the best paper I have ever turned in. My professor was so impressed with it that he took excerpts from it to put in his class handouts on how to write the perfect paper. EssaysEmpire.com, you made me one proud student today! |
![]() |
Quincy S.
Cambridge, MA
|
|
You guys did a super job on my paper. The work definitely exceeded my expectations and eased my anxiety. This was the first time I had hired a writing service. The transaction was seamless. I would use you guys again in a heartbeat! No questions asked. You’re the best, hands down. |
![]() |
Fred H.
Berkeley, CA
|
|
Thank you for doing what you do. You helped a lot of my friends, and now you have helped me. You provide a valuable service to students who need to get over writing hurdles. |
![]() |
Glynnis H.
Ft. Smith, AR
|
|
Hello! I just had to stop what I was doing to let you know how grateful I am that I found your excellent writing service. I have had to use you three times now, and each time, I have been 100% satisfied with the work that you did. Your writers are absolutely outstanding. I am very, very happy with everything you have written for me. |
![]() |
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 |
![]() |
Mark C.
Mexico City, MX
|
|
Thanks to EssaysEmpire.com, I was able to keep my GPA up and will be graduating soon. I really needed assistance with my writing. I aced everything else, but I have always had problems expressing myself in writing. The writers at EssaysEmpire.com took the ball and ran with it! Because of them, I am going to graduate. Thank you, from the bottom of my heart, for all of the valuable assistance. |
![]() |
Tom J.
Jackson, MI
|
|
Many thanks to your writers and customer service representatives for helping me get through a very difficult time in my college career. I needed writing assistance and your crew came through for me, big time! My papers were written impeccably. Thanks so much! |
![]() |
Barry M.
Seattle, WA.
|
|
BRAVO! EssaysEmpire.com has done it again. I have just received another A+ for an EssaysEmpire.com paper! Thanks!Thanks! |