Connect the unicorn shield with the pi
Connect the Unicorn Shield with the Raspberry Pi
At this point, we have already worked a lot with the Unicorn Shield. The variety of electronic components on the shield is giving us great opportunities to realize our ideas and projects, but there are also a lot of other electrical components that can be utilized. When we are using the Unicorn Shield with the Raspberry Pi we don’t need to use all of the gpio pins of the Raspberry Pi. The Pi has more than 40 gpio pins that can be used for measuring and controlling inputs and outputs as well as pins for power supply functionality including 3v, 5v, and GND.
You will find the most important pins of the Unicorn Shield in the first section of gpio pins as they are needed for supplying power. If we want to connect the shield and a temperature sensor for example, or even an ultrasonic distance sensor, we will also need to use the power supply to supply those components with power. Keeping this in mind, we should only connect the pins which we really need on the shield. To make these connections easier, we have provided a table of the connections on the back of the Unicorn Shield. You can find more information on cw42.de/connection
The following connections are important for the key functions of the shield:
|BCM||Physical Pin Pin||Shield|
|5V (first pin on the right side)||2||Power supply|
|GND (third pin on the right side)||3||Power supply|
|GPIO 18 (PWM)||12||WS2812B|
|GPIO 17||11||LED 1|
|GPIO 27||13||LED 2|
|GPIO 22||15||Brightness sensor / Nose|
|GPIO 23||16||Push Button/Ear|
In the following chapters you will learn more about other electrical components and how you may program and connect them with the Raspberry Pi. You can just use these components on their own or combine them with the Raspberry Pi, it is up to you!