Skip to main content

Project Based Engineering Instrumentation High Level Coding and Microcontrollers

Section 13.3 Assignment

Your assignment for this lab is wire up the potentiometer, read the analog signal using the analog to digital converter on the CPX and plot it on your desktop computer. Remember to record both time and digital output as you rotate the potentiometer through the full range and then plot that as a function of time. Specific requirements are shown below.
  1. Title page with name,title and date - 5%
  2. Introduction with wiring diagram - 5%
  3. All figures must have appropriate annotations, figure captions, figure labels and a paragraph of supporting text - 10%
  4. Include a photo of your circuit showing the potentiometer wired up to an analog pin on your CPX/CPB - 10%
  5. Include a screenshot (entire computer screen) of Mu with the Plotter open showing the digital output of the potentiometer. The code in Mu also needs to also show the same analog pin as your potentiometer. - 10%
  6. Based on the digital output from the potentiometer, compute the minimum and maximum voltage across the potentiometer. - 10%
  7. Relate the voltage across your potentiometer to angle of the potentiometer in degrees and plot degrees on the x-axis and voltage across the potentiometer on the y-axis. Be sure to include the equation relating angle to voltage - 10%
  8. Plot your digital output (raw potentiometer analog value) vs time make sure to rotate the potentiometer through the full range as when you take data - 10%
  9. Then convert your digital output (Do) to voltage and plot that vs time - 10%
  10. Finally convert your voltage to angle in degrees and plot that vs time - 20%
  11. Appendix A - Video Details - Film yourself and your entire screen with the Plotter open in Mu as you rotate the potentiometer from it’s maximum to minimum position. Then show yourself plotting the raw data on your computer - Pass/Faill
  12. Appendix B - Code used to take data and code used to plot in plain text (no screenshots) - Pass/Fail
  13. If you are asked to fix something in the Appendices such as missing content in your video or screenshots of your code, you will lose 10% of your grade everytime you submit an update after the deadline.