Git Product home page Git Product logo

tbs_dc2022-code's Introduction

TBS_DC2022-Code

Team TBS (McCormick Design Competition 2022)
โ†’ Jackson Bremen, Garrett Short, Evan Waite
Development using PlatformIO in VSCode || Code to be executed on Teensy 4.0

Current Status

Robot is working with dead reckoning via encoders. We were hoping to use gyroscopes/ IMU, but didn't recieve the parts Robot dispenses tokens continuously while moving Due to time constraints, we were not able to execute the robot as completely as we would have liked, but completed the task to a satisfactory level

Demo

DC.Cropped.mov

*note - Tokens were not loaded on recorded run

Features

Motor speeds are controlled via PID loop, allowing programmer to specify a speed in m/s, and the wheels will maintain speed to a high degree of fidelity
Robot uses PID for driving, both linearly and for turning; programmer specifies a distance to drive or an angle to turn at, and the robot executes the turn pretty well
Code is completely nonblocking and runs fast
Robot continuously dispenses tokens while robot moves

Basic Structure

Code is written as object oriented C++. Motors, Dispenser are base classes. Robot holds instances of them as needed, and uses their functions (see MotorClass.h). Within Robot.cpp, the large switch statement in update_robot acts as a basic state machine, allowing us to step through the steps of the robot

Unused features

Code to use MPU6050 was written but not integrated, as sensor precision was lacking

Next steps

  • Add sensors, such as laser rangefinders, IMU/Gyro/Magnetometer Sensor Suite, or bump sensors
  • Refine hadware (3D print battery mounts, PCB mounts)
  • Record video where robot is dispensing tokens
  • Create built-in model of the course; allow robot to truly autonomously solve the course using TSP, Djikstra's, A*, or other
  • Add a stop/ reset button to electronics stack

tbs_dc2022-code's People

Contributors

readjfb avatar

Stargazers

 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.