Step 2: Plug the circuit

Now you are a RGB circuit for Raspberry Pi. Plug the circuit on GPiO in this position.

The Blue pin in the 25

The Green pin in the 24

The Red pin in the 23

Pay attention of the numbers of pin. In this project we use a GPIO pin number. for thi reason we follow the GPIO numeration. Like in the image, you can view the pin number and the GPIO number. The RGB led use the GPIO pins 23, 24 and 25. Also the RGB led use the GND pin between the pins 24 and 25.
Please double-check before start your system. You can burn Raspberry Pi.

For play a sound I raccommend to use Pygame (http://www.pygame.org/news.html).<br>The code is this:<br><br>import pygame<br>pygame.mixer.init()<br>pygame.mixer.music.load(&quot;myFile.wav&quot;)<br>pygame.mixer.music.play()<br>while pygame.mixer.music.get_busy() == True:<br> continue

About This Instructable




More by masteruan:Make SMART Your Washing Machine Arduino UNO MQTT Meteo Station Microview Digital Dice 
Add instructable to: