Giter Club home page Giter Club logo

lego's Introduction

LEGO

HomeWork 4. Motion along the wall with ultrasound sensor. Innopolis University

Project description

This project realizes motion LEGO robot along the wall with ultrasound sensor. As a stabilization of the system, PID controller is using. Source code written in LEGO Mindstorms.

Work process description

LEGO Mindstorm Robot

This is the robot that I assembled for assignment. There were no problems during the constructing process. I looked at the instructions and did everything in steps. For programming, I used the standard LEGO Mindstorms software, because it is the simplest. You can program at Pothon, but this requires an additional SD card. I have some problems with installation Mono framework (requires for LEGO), because I'm on Mac OS.

LEGO SDK This is LEGO SDK for programming their robots. It's too hard to understand how this blocks works. I did PID controller with these parameters: Kp = 0.4, Ki = 0.0027 , Kd = 0.5. Target distance to the wall for ultrasonic sensor - 20 cm. Speed = 40.

I tried a lot of coefficients, the most difficult was Ki. Initially, the robot often turned and could not tune in for a long time, but a small coefficient solved this problem. Now he drives smoothly. I also tried to change distance to 10 cm, increase speed to 60 and 80, but it took bad results. This configuration is optimal.

When I'm trying to increase robot movement speed, system began to work poorly, robot started to turn in place. Most likely, the readings from the ultrasonic sensor are not taken off so often.

https://youtu.be/KokzeNlggvE

lego's People

Contributors

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