please explain the balancing loop algorithm

  • 6 Replies
  • 1216 Views
*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming

*

infurl

  • Administrator
  • ***********
  • Eve
  • *
  • 1372
  • Humans will disappoint you.
    • Home Page
Re: please explain the balancing loop algorithm
« Reply #1 on: April 23, 2020, 01:38:12 am »
First you'll need to understand how PID controllers work. You can google that.

For that matter, you can google self-balancing robot algorithms as well.

You will need a PID controller for the angle of the robot, nested inside another one that controls the speed of the robot. To remain stationary you set the target angle to 90 degrees and the target speed to 0. To move you have to set the target angle so the robot leans toward the direction of travel and the wheels will have to maintain a net speed in that direction to stop the robot from falling over.

*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming
Re: please explain the balancing loop algorithm
« Reply #2 on: April 23, 2020, 02:52:28 am »
google is useless, it spits out useless results, me asking on a forum is google being a worthless failure.

I just need the algorithm

*

Art

  • At the end of the game, the King and Pawn go into the same box.
  • Trusty Member
  • **********************
  • Colossus
  • *
  • 5865
In the world of AI, it's the thought that counts!

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: please explain the balancing loop algorithm
« Reply #4 on: April 23, 2020, 06:36:25 pm »
When I was younger I too thought Google to was of course stupid if it's hard to use it. But they are trying.

Nonetheless there is room for improvement. What you and I want is a 'tree' or hierarchy that links things to things so you can find it by walking along branches.

Or better, a updated summary of AGI, right on Google's homepage. Just tell us how deep learning and GPT-2 etc work, ya i know, hard, and etc etc but it is the best way to get the farthest and to most people!

My free book/article I'm writing will hopefully show everyone the way to AGI, it has all brain like things needed I've found in my journey and makes full sense. Can't go wrong there.
Emergent          https://openai.com/blog/

*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming
Re: please explain the balancing loop algorithm
« Reply #5 on: April 24, 2020, 02:42:28 pm »
When I was younger I too thought Google to was of course stupid if it's hard to use it. But they are trying.

Nonetheless there is room for improvement. What you and I want is a 'tree' or hierarchy that links things to things so you can find it by walking along branches.

Or better, a updated summary of AGI, right on Google's homepage. Just tell us how deep learning and GPT-2 etc work, ya i know, hard, and etc etc but it is the best way to get the farthest and to most people!

My free book/article I'm writing will hopefully show everyone the way to AGI, it has all brain like things needed I've found in my journey and makes full sense. Can't go wrong there.

google is truly an example of retardation when it comes to investing resources.
I actually spent 6k$ to study mobile dev at a course cause I was so fed up with google spiting out fake tutorials that never work by Pakistanis.

plus they bias the search results feministically

*

yotamarker

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1003
  • battle programmer
    • battle programming
Re: please explain the balancing loop algorithm
« Reply #6 on: April 27, 2020, 06:13:35 pm »
void loop() {
  float expectedTilt = 0;
  float currentTilt = getCurrentTilt(); // From accelerometer
  float currentTiltRate = getCurrentTiltRate(); // From gyro
  float thrust = pid(currentTilt - expectedTilt, 0, currentTilt + currentTiltRate, 0.25, 0, 0.75);

  // Apply thrust to each motor
}

float pid(error, integral, derivative, Kp, Ki, Kd) {
  return -(error * Kp + integral * Ki + derivative * Kd);
}

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

317 Guests, 0 Users

Most Online Today: 457. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles