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
![]() |
Mary R.
New York
|
|
Writer #48376 was very easy to work with. My professor made some changes to his requirements after he had assigned the paper. All I had to do was call your customer service and request to speak with the writer directly. Was able to relay the changes that my professor wanted, and he (writer #48376) accommodated them with no problem. I thought that was great. No headaches and perfect work. I couldn’t ask for a better experience! |
![]() |
Celeste H.
San Francisco, CA
|
|
EssaysEmpire.com always gives me a plagiarism report to prove that the work they wrote for me is authentic. I appreciate this. It helps eliminate worry. |
![]() |
Anne A.
Cambridge, MA
|
|
You dudes are awesome! Wow! I can’t believe I got an A+ on my paper! At best, I expected a B or C! |
![]() |
Sylvia S.
Ardmore, OK
|
|
Dear EssaysEmpire.com, Over the last couple of years, I have used your writing service for a total of five times. I have never had the same writer twice, but I have had excellent results with the writers who were assigned to my projects. I could easily recommend you guys. You’re the greatest! |
![]() |
Sarah M.
Portland, OR
|
|
Today was the perfect day to make an A+! It convinced me that there are solutions to problems that seem impossible to solve. When I realized that the due date for my paper was coming up quickly, I felt like there was nothing I could do. If I didn’t hand in my paper on time, I would get an F and fail the course. However, I had to study for 3 major exams and write two other papers. My roommate suggested that I turn the paper over to you guys, which I did, and voila! I got an A+ on it and the problem was solved. Thank you, EssaysEmpire.com and to your writers and staff. You are a great writing service. |
![]() |
Phil E.
South Hadley, MA
|
|
So often, when one deals with customer service, he or she is treated rudely. That was not the case with EssaysEmpire.com. The agents were helpful and friendly, knowledable and concerned. I, for one, was astounded with their competence. When it came down to the actual written material that I ordered, it was much better than I had anticipated. There are clearly some expert writers who work for EssaysEmpire.com. I would rate this writing service as exceptional, 5 stars out of 5 stars. I will happily return when I need help with another written work. |
![]() |
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. |
![]() |
Glen M.
Oakland, CA
|
|
Your writers are awesome! I got an A and two A+’s on the papers that they wrote for me! |
![]() |
Allen P.
Denver, CO
|
|
Writer #3827 is a great writer! I got an A+ on my very first paper of the term. This is the way to set the pace for the rest of the term. 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. |
![]() |
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 |
![]() |
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. |
![]() |
Stephanie K.
Stowe, VT
|
|
Dear Sirs: Just a quick note to let you know that I appreciate your working on my paper so quickly. I did get it in time to turn it in for the deadline, even though I hadn’t given you much notice. I made a very good grade on it and was much relieved. Thanks again. You rock. |
![]() |
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. |
![]() |
Steve Y.
Ft. Worth, TX
|
|
I would just like to say that I am tremendously happy with the two papers that were written for me by the EssaysEmpire.com writers. They were just what I ordered….only better. |
![]() |
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! |
![]() |
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! |
![]() |
Mike G.
Rochester, NY
|
|
Your writing service is different from other writing services. Yours is the only one I have ever dealt with that I can truthfully say is legitimate. The staff is very professional. The writers are the best in the business. I am pleased with the results of my last three orders and plan to return for more soon. |
![]() |
Tiffany E.
Monroe, LA
|
|
I am 100% satisfied with the writer that you assigned to my project. This person understood exactly what I needed, even though I’m not the best communicator and the instructions were tedious and difficult. I felt certain I would have to send my paper back for a number of revisions, but I didn’t. The writer was able to convey exactly what I wished to express and he did it in record time!Thanks for everything. EssaysEmpire.com is the greatest! |
![]() |
Jaffar M.
Salt Lake City, UT
|
|
My sincere thanks for a job well done. My professor loved my paper and commended me for handing in the one that your writing service helped me with. The paper flowed very well. It was logical and intelligent-sounding. I was very pleased overall. |