attachmentWeek 7Lab 7Name:PULSE WIDTH MODULATIONMOTOR CONTROLObjectiveExamine pulse width modulation and observe how the signals can control a DCmotor.Parts NeededRaspberry
Can someone help me with the attached lab? I need it done in 2 days
ATTACHMENT PREVIEW Download attachmentWeek 7Lab 7Name:PULSE WIDTH MODULATIONMOTOR CONTROLObjectiveExamine pulse width modulation and observe how the signals can control a DCmotor.Parts NeededRaspberry PiGERTBOARDOscilloscopeIntroductionIn Part 1 of this experiment, the student will apply various PWM signals to the GPIOpins of the Raspberry Pi. The pins will be monitored with an oscilloscope. In part 2, amotor will be connected to motor driver output pins. The pulse width will be changedthrough the GERTBOARD switches. The speed of the motor will change based on thepulse width of the GPIO signal.ProcedurePart 11. Log into the Raspberry Pi, at the command prompt key in startx. OpenLXTerminal, then Python. From the Python Shell top menu, click FILE/NEWWINDOW. Key in the program below.The program will load the sleep function for time delay and the GPIO module.The switches on the GERTBOARD will be used to control a DC motor usingPulse Width Modulation. Pin 17 will be initialized to output the PWM signal. S1will start the PWM signal, S2 and S3 will change the Duty Cycle of the PWMsignal as well as the monitor display. When the program runs, the monitor willdisplay the percent duty cycle. An example is below.30 % Duty CycleWeek 7 – Lab 7Page 1
![Background image of page 1](https://www.coursehero.com/doc-asset/bg/qattachments_0656e02c0f06efd307f2e71457c2d64d2b72f716/page-1-html-bg.jpg)
View the AnswerWeek 7 – Lab 7Page 2
![Background image of page 2](https://www.coursehero.com/doc-asset/bg/qattachments_0656e02c0f06efd307f2e71457c2d64d2b72f716/page-2-html-bg.jpg)
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
![](https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_320,h_80/http://academicheroes.com/wp-content/uploads/2018/09/order_now.png)