Skip to content

07_relay high/low mixup bug. #5

@psvehla

Description

@psvehla

Both the book and the code seem to assume a PNP transistor, saying that a low from the Pi will turn the transistor on, thus energising the relay. Since the circuit actually uses an NPN transistor, which turns on for a high from the Pi, the relay is actually energised when the Pi sends the pin high.

The output on the screen shows the opposite of what the relay and LED are doing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions