Page 1 of 1

We are building a robot! An encoding wheel with 20 slots is attached to the wheel of our robot. A photocoupler is positi

Posted: Mon May 09, 2022 6:10 am
by answerhappygod
We Are Building A Robot An Encoding Wheel With 20 Slots Is Attached To The Wheel Of Our Robot A Photocoupler Is Positi 1
We Are Building A Robot An Encoding Wheel With 20 Slots Is Attached To The Wheel Of Our Robot A Photocoupler Is Positi 1 (37.99 KiB) Viewed 20 times
We are building a robot! An encoding wheel with 20 slots is attached to the wheel of our robot. A photocoupler is positioned so that the notches in the encoding wheel let the light pass, and the spokes block the light. The photocoupler is interfaced to the microcontroller and is used to measure the RPM of the wheel. We want to use TPU1 to measure the pulse period 1. Find 3 appropriate options of pins to interface the photocoupler to. (6 marks) 2. Select one the three pins identified in Q5 1. and write the initialization function so you can measure the frequency of the photocoupler's pulses Write any assumptions. (15 marks) 3. Write the code that converts the timer's returned value to RPM. Write any assumptions (12 marks)