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
View the AnswerWeek 7 – Lab 7Page 2
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now