Now that we have set up the hardware part let us discuss the software part on how we can control it using Python. NOTE: Make sure that the Neopixels, Raspberry Pi, and the external power grounds are all connected with each other. Raspberry Pi 74AHCT125 Neopixel USB Micro GPIO 18 1A 1Y DIN GND GND GND GND GND 10E GND GND VCC VCC VCC I have used an external 5V source using the micro-USB interface to power up the WS2812B neopixels as the Raspberry Pi cannot power these LEDs and may result in it being damaged. We need the 74AHCT125 Level converter since these WS2812B Neopixels require considerable 5V voltage to power and our Raspberry Pi GPIO Port can only supply 3.3V. This was taken from the adafruit site using Level Shifting. The image above shows the fritzing schematic diagram of how we are going to wire our WS2812B Neopixels to our Raspberry Pi. Pillow is the Python Imaging Library and we will control our WS2812B Neopixels like drawing something in a “canvas” using the Raspberry Pi and Python instead of addressing each led individually. “it provides a Pillow-compatible drawing canvas” We will first show the schematic diagram and then discuss how we can control it using the awesome library luma.led_matrix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |