tecno4
2.4M views | +63 today
Follow
tecno4
Información asignatura tecnología
Your new post is loading...
Your new post is loading...

Popular Tags

Current selected tag: 'Raspberry Pi Gpiozero'. Clear
Scooped by Gumersindo Fernández
Scoop.it!

Control Raspberry Pi Digital Outputs with Python (LED)

Control Raspberry Pi Digital Outputs with Python (LED) | tecno4 | Scoop.it

In this guide, you’ll learn how to set the Raspberry Pi GPIOs as digital outputs and control them using a Python program. As an example, we’ll show you how to control an LED connected to one of the Raspberry Pi GPIOs using the gpiozero interface.

No comment yet.
Scooped by Gumersindo Fernández
Scoop.it!

Getting Started with the Raspberry Pi GPIO and gpiozero

Getting Started with the Raspberry Pi GPIO and gpiozero | tecno4 | Scoop.it

When we need to interface with sensors, motors, and displays we generally think about using an Arduino, however, there are a lot of advantages in using a Raspberry Pi instead. Today we will see how easy it is to interface devices using the Raspberry Pi GPIO.

The easiest way to work with the Raspberry Pi GPIO is to use a library.  There are several to choose from.

  • WiringPi – This was one of the earliest GPIO libraries written for the Raspberry Pi.
  • RPIO – A pretty advanced GPIO library.
  • Pigpio – A Python module to interface with the GPIO. Also supported on other platforms.
  • RPi.GPIO – A very popular GPIO library
  • gpiozero –  A GPIO library that simplifies working with the GPIO.

We will be using the gpiozero library for our experiments, and we’ll get our Python code directly from the gpiozero documentation “Basic Recipes” section.

No comment yet.