Giter Site home page Giter Site logo

chip-select-serial's Introduction

chip-select-serial

Serial Communication and GPIO Control for Master-Slave Microcontroller Network

Description

This repository hosts the software for a communication network between one master and three slave microcontrollers, designed as part of the coursework for the Sistemas Microcontrolados class in the Computer Engineering program at UNISINOS. It demonstrates serial communication and GPIO for chip selection, controlling LEDs on slave microcontrollers based on button inputs on the master.

Functionality

Master Microcontroller

  • Monitors three buttons, each linked to a specific slave microcontroller.
  • Sends serial commands to toggle LEDs on or off on the slave microcontrollers.
  • Utilizes GPIO pins for chip select functionality, ensuring that only the targeted slave microcontroller processes the command.

Slave Microcontrollers

  • Listen for serial commands from the master.
  • Toggle an LED based on the received commands.
  • Only the selected slave via chip select will act upon the command.

How It Works

  1. Button Press: A button press on the master microcontroller identifies which slave microcontroller's LED should be toggled.
  2. Serial Command: The master sends a command via serial communication to turn the LED on or off, using GPIO pins for chip selection.
  3. LED Toggle: The targeted slave microcontroller toggles its LED based on the command, while non-selected slaves ignore the command.

Technical Details

  • Communication: Utilizes serial communication for command transmission.
  • Chip Selection: Employs GPIO pins on the master for selecting the active slave microcontroller.
  • Includes code for both master and slave microcontrollers, detailed protocol explanation, and hardware setup instructions.

chip-select-serial's People

Contributors

klsbecker 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.