Git Product home page Git Product logo

raspipipico-pio-trafficlight-example's Introduction

PIO-Beispiel

Example to build a trafficlight control with Raspberry Pi Pico and its PIO hardware.

Prerequisite: You have installed the PICO-SDK and all necessary tools for Raspberry Pi Pico on your system.

You may copy the directory structure to your own system and adapt the PDK-SDK-PATH to the CMake-files or set the enviroment variable PICO_SDK_PATH. Then within the PIO-Beispiel folder you may just call: cmake . && make

The Example Circuit assumes there is a white LED on GPIO17 ; can be left out, it just signals new red phase in the unoptimized version. ; in the optimized version it signals red and green phases

red LED on GPIO18

yellow LED on GPIO19

green LED on GPIO20

I am using 220 Ohm resistors for the LEDs

The Out-Mapping is defined as {GPIO17, GPIO18, GPIO19, GPIO20} The OSR (Output-Shift-Register stores the patterns for the phases red, red-yellow, green, yellow Its 4 bit shifts control the LEDs accordingly

In the PIO state machine the OSR conducts right shifts.

raspipipico-pio-trafficlight-example's People

Contributors

ms1963 avatar

Stargazers

Thomas Christlieb avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.