![]() ![]() Install RPi.GPIO Python LibraryThe RPi.GPIO Python Library probably have come on your Raspbian OS, to verify this, fire up Python: sudo pythonand type in this line import RPi.GPIO as GPIOIf you don’t get any error, you are should be fine. Input devices like push buttons and toggle switches can also be used to control the Raspberry Pi.How To Control and Use GPIO Pins on Raspberry Pi?This includes two steps, software on the Pi, and how to connect the hardware. A great feature on the Raspberry Pi is the GPIO pins (stands for General Purpose Input Output). These GPIO pins on Raspberry Pi can be found in 2×13 header pins which can perform tasks include SPI, I2C, serial UART, 3V3 and 5V power.There are eight of these pins can be used directly for digital output and input (Hight and Low). These pins can be set high by connecting it to a voltage supply, or set low by connecting it to ground.So you can control electronics devices such as LEDs, Motor Driver and so on using these GPIO pins.
0 Comments
Leave a Reply. |