Difference: LEDsAndNopNeoPixel (5 vs. 6)

Revision 62020-08-09 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

LEDs and NeoPixel

Introduction

Changed:
<
<
The ESP32 has 2 LEDs on board. The first one indicates power while the second one is user programmable. The user programmable built-in LED is connected to GPIO pin 2.
>
>
The ESP32 has 2 LEDs on board. The first one indicates power while the second one is user programmable. The user programmable built-in LED is connected to GPIO pin 19.
 
Changed:
<
<
esp32.png
>
>
wrover.png
  You can see the LEDs in the far left, bottom corner. The power LED is marked "ON" while the user programmable one is marked "L".
Line: 31 to 31
 

Exercise 4: Change the LED light intensity

The light intensity on the LED can be changed if we do not supply a fixed signal level to it but a frequency. The duty cycle of the signal determines the light intensity. This is called Pulse Width Modulation or PWM for short. Write a program that increases the intensity in a linear fashion and the decreases it again linearly.

Deleted:
<
<
-- Uli Raich - 2020-05-05
 

Exercise 5: The WS2812 addressable LED

The WS2812 LED is often used in LED chains. It is an RGB LED using a single data line which can be cascaded. It has a data in pin and a data out pin where the data out pin is connected to the data in pin of the following LED. It uses a serial protocol that must be precisely timed. For more information please consult the data sheet. Fortunately a driver for the WS2812 running on the ESP32 is already integrated into the MicroPython binary.

Line: 46 to 44
 

Exercise 7: Change to CCW

In exercise 6 the LEDs will turn on clockwise (cw). Modify the program such that the LEDs turn on counter clock wise (ccw).

Added:
>
>
The exercise sheet in odt format:

https://iotworkshop.africa/pub/IoT_Course_English/LEDsAndNopNeoPixel/exercise_2_modified.odt

-- Uli Raich - 2020-05-05

 

Comments

<--/commentPlugin-->
Line: 53 to 57
 
META FILEATTACHMENT attachment="leds.png" attr="" comment="" date="1588704015" name="leds.png" path="leds.png" size="299673" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp32.png" attr="" comment="" date="1588704164" name="esp32.png" path="esp32.png" size="231244" user="UliRaich" version="1"
META FILEATTACHMENT attachment="ledRingBack.png" attr="" comment="" date="1590133836" name="ledRingBack.png" path="ledRingBack.png" size="356910" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="wrover.png" attr="" comment="" date="1596961702" name="wrover.png" path="wrover.png" size="256781" user="UliRaich" version="1"
META FILEATTACHMENT attachment="exercise_2.odt" attr="" comment="" date="1596962540" name="exercise_2.odt" path="exercise_2.odt" size="939306" user="UliRaich" version="1"
META FILEATTACHMENT attachment="exercise_2_modified.odt" attr="" comment="" date="1596962877" name="exercise_2_modified.odt" path="exercise_2_modified.odt" size="1088313" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback