![]() ![]() RED WIRE: positive supply voltage (5 V).The angle range is between 0 and 180 degrees. The type of servo motor provided to you in this project allows the motor angle to be controlled using a PWM signal. Using the oscilloscope, take a clear photograph of the PWM waveform during each of the four phases of the sequence.ĮVIDENCE ITEM 2: Add the 4 oscilloscope photos to your report document.Use the oscilloscope to measure the frequency of the PWM waveform.Upload the following code to the Arduino Nano and verify that the LED brightness is varying as shown in the example video provided below.The example below cycles the LED through four different levels of brightness by varying the duty cycle of the PWM signal (0%, 20%, 50% and 100%). When pin D3 outputs PWM (as in the example below), the frequency of the PWM signal is fixed at 490 Hz. ![]() As explained in the analogWrite documentation, this function can only be used with certain digital i/o pins. The simplest way to produce PWM signals with the Arduino Nano is using the analogWrite() function from the Arduino library. Servo motor with 3-pin connector for attaching to breadboard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |