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
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. |
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! |
Steve P.
Portland, OR
|
|
|
I am beginning to understand why your writing service was recommended to me so highly. Everything you do is a cut above your competition. You’re really great! |
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. |
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. |
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. |
Doreen A.
Malibu, CA
|
|
|
Due to a family emergency, I was unable to complete a very important paper. Thanks to EssaysEmpire.com, I was able to hand in a well written paper and not sacrifice my grade. I will be forever grateful to your writing service for providing such outstanding work. Thank you so much. |
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. |
Celine H.
Calistoga, CA
|
|
|
Thanks for doing a great job on a paper that was an important part of my semester. You guys rock! |
Royce B.
Dallas, TX
|
|
|
It is so refreshing to work with a writing service as professional as EssaysEmpire.com. Everything from your website, to your customer service workers to the writing itself, is top rate. I recommend you highly to anyone who will listen. |
Brianne H.
Tampa, FL
|
|
|
The paper that I purchased from EssaysEmpire.com was well written. Thank you. I will have another order for you soon. Since I was so happy with the way things went, I see no reason to use any other writing service. Your service delivers the goods, just like you say you will. |
Patti F.
Boulder, CO
|
|
|
I have complete confidence in the quality of the work that I order from your writing service. You have always been the prime example of what a writing service should be. |
Glen M.
Oakland, CA
|
|
|
Your writers are awesome! I got an A and two A+’s on the papers that they wrote for me! |
Hillary M.
Santa Cruz, CA
|
|
|
I received 100 points out of a possible 100 for the paper that you wrote for me. |
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. |
Kris K.
San Francisco, CA
|
|
|
I would like to say thanks to writer #48376 for doing such an astonishing job on my paper. I really gave him very little to go on. Still, he was able to do the research and come up with a champion paper for me. I am speechless. I didn’t expect anything nearly this good. |
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! |
Cleo P.
Oakland, CA
|
|
|
I submitted my order as a ‘rush order’. I only had 2 days to get my paper finished and I just felt like I was sinking. I didn’t understand the material I was writing about, and I didn’t know what I was going to do. My friend recommended EssaysEmpire.com. I had very little lost by attempting to use this writing service, so I did. It was an excellent move on my part, because, not only was my paper finished on time. It was also excellently written. I will always be grateful to my friend for recommending your service. It is wonderful. |
Billie N.
Atlanta, GA
|
|
|
EssaysEmpire.com is the only writing company that I can trust with my important writing projects. I have learned that I can count on your quality and ability without fail. Thank you, EssaysEmpire.com, for only hiring the best writers. I wouldn’t dream of using any other writing service. |