Giter Site home page Giter Site logo

7-seg-mcp3008's Introduction

7-Seg-MCP3008

Getting Starred with Raspberry Pi, Part 3 Example3

Connect the components as follows: Component >> Connects to, Green Led >> GPIO Port 22, Yellow Led >> GPIO Port 21, Red Led >> GPIO Port 4, Potentiometer >> MCP3008 Port 7, Light Sensor/PhotoCell >> MCP3008 Port 6 and 3.3V, 10K Resistor >> PhotoCell and Ground, Green Button >> GPIO Port 25, 10K or More Resistor >> Green Button and 3.3V, Yellow Button >> GPIO Port 24, 10K or More Resistor >> Yellow Button and 3.3V, Red Button >> GPIO Port 23, 10K or More Resistor >> Red Button and 3.3V, 7-Segment >> 5V, Ground, SCL, SDA, MCP3008 >> Same Connections as in Example 2

Read the Value of the Pot or Light Reader, based on the Mode, which is determined by buttons, and the red button kills the app.

Ard.py, is the resource library with all the simplified functions, and App, is the designated executable. Press the Green Button for the Pot value to be displayed, press the yellow button to display the light sensor reading. The red button kills the application. The Red led blinks every time a reading is taken, the Yellow and Green leds indicate which mode the app is in, they match with the button colors.

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.