Raspberry Pi Zero W: My First Examples
This card is one of the smallest and most economical in the world and it has similar characteristics to the first ones that came onto the Rasperry Pi market. .Raspberri Pi Zero W was launched at the end of February 2017, the Pi Zero W has all the functionality of the original Pi Zero but with added connectivity, consisting of:
– 802.11 b/g/n wireless LAN
– Bluetooth 4.1
– Bluetooth Low Energy
Like the Pi Zero, it also has:
– 1GHz, single-core CPU
– 512MB RAM
– Mini HDMI and USB On-The-Go ports
– Micro USB power
– HAT-compatible 40-pin header
– Composite video and reset headers
– CSI camera connector
Next we will describe basic examples to work with the digital ports of the Raspberry Pi Zero W. We will use the Python program , version 2.7.13.
Flashing a LED
In this example we are going to make the LED blink every second and connect to the GPIO 4 pin. At the end of this tutorial we can find the link of the download code.
In this example we are going to make the LEDs blink every half second and connect to the GPIO pins 7, 8 and 25. At the end of this tutorial we can find the link of the download code.
Push Button + Multipleflash
Now we will add a push button on the GPIO 14 pin and when we activate it, then the code will call the program code Multipleflash.py and it will be executed. We must be careful with the sensitivity of the button since it produces rebounds.
At the end of this tutorial we can find the link of the download code.