Giter Club home page Giter Club logo

motor-potentiometer's Introduction

Phuc Tran

January 2022

Motor Potentiometer Controller

Description

The program takes a potentiometer's ADC value and convert that into a PWM signal for a motor. Then, we take data in a light sensor to calculate the RPM and display that onto a SevenSeg

Evaluation

The motor works well with my potentiometer! There was a gradually ramp in RPM as I was changing my potentiometer's value. I was able to incorporate an ADC communication with my potentiometer input port, an i2C communication bus for a SevenSeg display, and an interrupt system with Timer1 PWM and Timer0 counter. I also created a device driver for the tb6612 motor driver that incorporated initializes the pin/port set ups, change the motor mode, and update the motor speed. I was able to take many embedded programming concepts and apply them into a simple action!

Execution

  1. Complete the Arduino/Breadboard setup according to motor_potentiometer.c header comments

  2. Power the Arduino to the computer as well as a external power source to the board (important so the motor doesn't draw current from the computer!)

  3. Make flash the file onto the Arduino

motor-potentiometer's People

Contributors

phuc-tran-hub 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.