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
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. |
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! |
Lonnie K.
Falcon Crest, MA
|
|
|
I work very long hours. Therefore, I sometimes run behind in my school assignments. This is especially true for the long written assignments. It is so great to know that I can always count on EssaysEmpire.com to help me out. The papers that I buy from you are excellent, without fail. I really appreciate your help . Thanks for everything. |
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 |
Pierre W.
Memphis, TN
|
|
|
There are four things that I look for in a good writing service. #1. They have to be fast. A good writing service won’t miss an important deadline. #2. A good writing service will let customers actually talk to the writer who is working on their customer’s papers, so the customer can work out important details. #3. A good writing service will have a user-friendly website that is easy for the customer to use and #4, a good writing service will offer quality guarantees. EssaysEmpire.com meets all of this criteria and more. EssaysEmpire.com is the best writing service and has the reputation to prove it. I wouldn’t even consider using another writing service since experiencing the excellence that is EssaysEmpire.com! |
Kathy M.
Las Cruces, NM
|
|
|
To EssaysEmpire.com: Thank you for my outstanding paper. When I read it, I knew that I would get an A+ on it. Also, thanks for adding all of the pertinent details that I asked you to customize. You did a brilliant job. Just brilliant. |
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. |
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! |
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. |
Hillary M.
Santa Cruz, CA
|
|
|
I received 100 points out of a possible 100 for the paper that you wrote for me. |
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! |
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! |
Carolyn C.
Norman, OK
|
|
|
My paper was completed 3 days earlier than I had requested it. It needed no revisions and was much better than I had imagined. Thanks, EssaysEmpire.com! |
Maddie P.
Seattle, WA
|
|
|
The EssaysEmpire.com website is so great! There are no mysteries to be solved. They give you the full layout about what they have to offer and how much it costs. No surprises. I had a couple of questions about the different options and their customer service rep was so friendly! She answered all my questions. I ordered my first paper and it was so well written that I got an A+ on it! Thank you, EssaysEmpire.com! |
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! |
Louise O.
Oakland, CA.
|
|
|
The A+ that I got on the paper that I ordered from you, helped boost my grade up an entire letter grade! Thanks, EssaysEmpire.com! |
Hannah B.
Tulsa, OK
|
|
|
I am happy. I am happy because I got an A+ on my research paper. I did this by hiring the professional writers at EssaysEmpire.com to write it for me. It was everything I had hoped it would be. Thanks, EssaysEmpire.com! |
Mark M.
Cambridge, MA
|
|
|
The paper I ordered from EssaysEmpire.com is incomparable! Thanks for doing such stellar work. I have recommended your services to a few other folks who plan to try you out soon. EssaysEmpire.com gets my vote for best writing service every time. |
Sharon Q.
Lexington, OK
|
|
|
Working with your writers is always such a pleasure. Thanks again. |
Melissa C.
Rochester, NY
|
|
|
I am completely satisfied with the paper I purchased from your company. I only wish I had known about you last year when I took an F grade for not being able to complete a paper on time. The work you did was marvelous. Whenever I find myself falling behind in my school work, I will be sure to pass along some of my more difficult written assignments to you |