Skip to Content
Hands-On Embedded Programming with C++17
book

Hands-On Embedded Programming with C++17

by Maya Posch
January 2019
Intermediate to advanced
458 pages
10h 35m
English
Packt Publishing
Content preview from Hands-On Embedded Programming with C++17

Relays

To control the status lights and the non-permanent power outlets in the room, we use a number of relays, in this case four relays:

Relay

Function

0

Power status of non-permanent outlets

1

Green status light

2

Yellow status light

3

Red status light

The idea here is that the power status relay is connected to a switch that controls the mains power to outlets that are not powered when the club status is off. The status lights indicate the current club status. The next section provides the details on the implementation of this concept.

To simplify the design, we will use a ready-made relay board containing four relays, which are driven by an NXP PCAL9535A I/O port chip (GPIO expander) connected to the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers

Hands-On RTOS with Microcontrollers

Brian Amos

Publisher Resources

ISBN: 9781788629300Supplemental Content