Just press the button. Don’t change the flash or anything!
What if we could take a picture with the Pi
camera by pushing a button? Here is an easy
tutorial to get you started on working with
electronics and the GPIO header on the RaspPi.
Aside from your Pi and camera module, you’ll
also need a tactile pushbutton, a breadboard, and
female/male jumper wires. You can find these
pretty cheap at local electronic shops, or you can
consider the buttons, a half-size breadboard, and
choose from a selection of jumper wires listed in
the Parts List. For this small tutorial here, you only
need a breadboard, one tactile button, and two
Take a look at your Pi. The GPIO header is the
pair of columns of pins along the edge of the Pi.
On the Raspberry Pi 3, there are 40 total pins with
specialized functions that allow the Pi to be
integrated to electrical circuits.
Refer to Figure 18 and the sidebar to familiarize
yourself with the functions of each pin. This is a very
powerful capability, and we’re going to start off with
something very manageable to get you introduced.
Perhaps it all seems cryptic and intimidating at first,
but here is what you should think about for now. The 3.3V
and 5V pins provide electrical power (where V stands for
FIGURE 20. Fritzing diagram for connecting the pushbutton to the Pi.
May/June 2018 67
E3mini Prototyping Board,
C Compiler, AND:
firstname.lastname@example.org | Sales 262.522.6500 Ext 35
Ask about our classroom materials!
16 Sensors, 3 Output devices,
Getting Started with C Tutorial,
Breadboard & Jumpers
ypad e S Unit, and K 7-seg LED, GP
YOU DESIGN IT – WE MACHINE IT
NOW OFFERING UV PRINTING
;;;Manufacturing Custom Panels & Enclosures
;;Free CAD Software
;;No Minimum Order Requirements
;;Built in 5 Days