Giter VIP home page Giter VIP logo

sumocode's People

Contributors

culturedconnoisseur avatar kaytwenty avatar

Stargazers

 avatar

Watchers

 avatar  avatar

sumocode's Issues

Implement Ultrasonic Sensor Support for Sumo Bot

Summary:
The current code for the sumo bot lacks support for an ultrasonic sensor, which limits its ability to detect and track obstacles. This issue aims to add ultrasonic sensor support to the existing codebase.

Proposed Changes:

  1. Connect the ultrasonic sensor to appropriate pins on the Arduino board.
  2. Implement functions to trigger the sensor, measure the echo response, and calculate the distance.
  3. Modify the code to detect obstacles based on the measured distance.
  4. Implement obstacle tracking functionality to follow the target using the sensor data.
  5. Add debugging functionality to print the distance measured by the sensor.

Additional Considerations:

  • The code should account for the specific pins used for the ultrasonic sensor and adjust accordingly.
  • The desired distance from the obstacle should be configurable.

Bot is moving towards the left when running

Issue: Motor Speed Imbalance and Ramping

Description:
Currently, our sumo bot utilizes two motors, but we have noticed a significant power difference between them. To address this imbalance, we decided to remove the jumpers on the L298N motor driver and manually control the motor speeds through our source code. However, we encountered a problem where one motor's speed is inadvertently limited due to our speed control implementation.

Current Speed Control Implementation:
To control the motor speeds, we have hardcoded the speed values in our source code using the analogWrite() function. Here is the snippet of code responsible for setting the motor speeds:

analogWrite(ena, 255);  // LEFT
analogWrite(enb, 180);  // RIGHT

Issue Identification:
After investigating the problem further, we have determined that the motor speed imbalance stems from the ramping mechanism we have implemented. The difference in ramping times between the left and right motors is causing the speed limitation on the right motor.

Next Steps:
To resolve the motor speed imbalance and address the ramping issue, we will conduct further testing and experimentation. We will explore the proposed solutions and evaluate their effectiveness in achieving balanced motor speeds. Our goal is to optimize the sumo bot's performance and ensure equal power distribution between the motors.

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.