6
Figure 1: Connection Required

Arduino Lab_1 - file · Web viewArduino Lab_1 Last modified by: Alfred Mazhindu Company: University of Bradford (SoEDT)

  • Upload
    dophuc

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Arduino Lab_1 -    file · Web viewArduino Lab_1 Last modified by: Alfred Mazhindu Company: University of Bradford (SoEDT)

Figure 1: Connection Required

Page 2: Arduino Lab_1 -    file · Web viewArduino Lab_1 Last modified by: Alfred Mazhindu Company: University of Bradford (SoEDT)

Figure 2

a) Make light flash with a frequency of 1Hz

Page 3: Arduino Lab_1 -    file · Web viewArduino Lab_1 Last modified by: Alfred Mazhindu Company: University of Bradford (SoEDT)

Figure 3

b) Make light flash with a frequency of 4Hz

Page 4: Arduino Lab_1 -    file · Web viewArduino Lab_1 Last modified by: Alfred Mazhindu Company: University of Bradford (SoEDT)

Figure 4

c) Go back to original code and change it to be a duty cycle of 25% (LED on for 25% off the time) d) Change original code for a duty cycle of 75%

Page 5: Arduino Lab_1 -    file · Web viewArduino Lab_1 Last modified by: Alfred Mazhindu Company: University of Bradford (SoEDT)

Exercise_2

Figure 5