Giter VIP home page Giter VIP logo

msp432-ultrasonic-uart's Introduction

MSP432P401R Integration with UltraSonic Sensor and UART

A program which calculates distance from an obstacle using HC-SR04 and displays the distance serially with UART


Technical Specs

* Embedded-C
* Code Composer Studio
* MSP432P401R
* UART
* Putty
* Ultrasonic Sensor ( HC - SR04 )
* Timers
* Interrupts
* Register Level Code

Prerequisites


Description:

  • Ultrasonic Sensor has 4 pins. Vcc, GND, Trigger and Echo pins. The sensor gets triggered by supplying 10 microsecond wide pulse. The sensor generates a pulse from the echo pin with a period proportional to the distance of the obstacle from sensor.
  • Echo pin from the sensor is connected to a voltage divider which reduces it to 3.3V, tolerable by the MSP, to Port 2 Pin 7.
  • Trigger pin of sensor is connected to Port2 Pin 6.
  • MSP432 board is connected to a computer via USB

Important Note

  1. Remember to supply 5V for HC-SR04

  2. MSP432 is not tolerant to 5V input. Use voltage divider ( max voltage => 3.7V )

  3. Range of HC-SR04 is 4cm to 200cm

  4. Check Device Manager in Windows to find the COM port of MSP432. You'll need to use this information while connecting to a serial console like Putty


Execution

  1. Read description and important note before reading these instructions
  2. Create new project inside Code Composer Studio
  3. Copy the file contents of MSP432-Ultrasonic.c into your editor
  4. Open putty and select serial with COM port ( check device manager ) and baud rate: 9600
  5. Execute the code and see values rush to putty

Feedback

Leave any suggestions or issues in the code by opening an issue page


msp432-ultrasonic-uart's People

Contributors

chandrakiransaladi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

korakimx

msp432-ultrasonic-uart's Issues

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.