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
|
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! |
||
|
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. |
||
|
Josef H.
Houston, TX
|
|
|
The topic for my assigned essay was very intense. It involved a lot of research and knowledge of the subject. The writer who took care of it for me seemed to be a real expert. I found that so impressive! I just had to drop a line to let you know how much I appreciated the work he did. |
||
|
Ohjasi O.
Tokyo, JP
|
|
|
The essay that your writers turned out for me far exceeded what I was expecting. It even came with a plagiarism report to prove that it was original. The customer service center was the picture of perfection, too. I loved everything about using EssaysEmpire.com and plan to use your services again. You are one class act! |
||
|
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. |
||
|
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. |
||
|
Philipa W.
Rome, ITALY
|
|
|
The paper that your writers did for me on the topic of, The Psychological Effects of Fluorescent Lighting in the Workplace,” was right on the money! They included my long list of customizations and did not charge extra for them. The formatting was just right. There were no grammatical errors. The length was what it was supposed to be. I am so happy that I chose to let the EssaysEmpire.com writers take care of my paper for me. I will choose this writing service again without hesitation. |
||
|
Grace T.
Purcell, OK
|
|
|
Thank you for assuring that only the best writers work for you. It doesn’t matter which writer has been assigned to my projects since I started using your services. Every time I get a paper written, it is perfect. |
||
|
Sylvia B.
Lakeview, MA
|
|
|
Your writers did an excellent job writing my four papers last semester. I don’t think I could have possibly made it through the semester without any help of EssaysEmpire.com. I deeply appreciate the help |
||
|
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! |
||
|
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! |
||
|
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! |
||
|
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. |
||
|
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. |
||
|
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! |
||
|
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. |
||
|
Kyle N.
Tempe, AZ
|
|
|
Dear Sirs: I have just placed my third order from EssaysEmpire.com this term. I feel confident that my paper will be written on time and that the quality of it will be out of the ballpark. The first two papers I ordered from you got A+ marks, and I know this one will, too. It is so great to be able to sit back and concern myself with my reading and exams while you do the difficult writing projects for me. That is really great. You guys are a class act! |
||
|
Zola R.
Salulita, MX
|
|
|
The paper that I bought from EssaysEmpire.com was a whole lot better than I thought it would be. Thank you for the excellent service and product. I will be happy to recommend you to my friends. |
||
|
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. | ||
|
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! |
||
