Práctica 1 y 3

Esta vez me ha tocado diseñar y programar un robot con la dificultad añadida de que debe superar los objetivos de la práctica 1 y la práctica 3, bastante diferentes entre ellas.

Me propuse hacerlo con la misma configuración física que aparece en las fotos y que ha resultado bastante desastrosa ya que pesaba demasiado para cumplir con los objetivos de la práctica 3 (mantener equilibrio dinámico).

Práctica 1: Esquiva obstáculos

Tenacitas en modo SegWay

Para este el robot tan solo tenía que utilizar el sensor de ultra sonidos y reaccionar ante objetos que estuvieran a menos de 30cms, girando a la derecha y volviendo a avanzar

. También tenia en carril de los sensores montado de tal manera que el sensor delantero se activara en caso de impacto frontal, ante esto el robot debía retroceder, girar y proseguir con la marcha.

Al tener el sensor de ultrasonidos inclinado hacia arriba lo activarán obstáculos grandes (paredes, puertas, etc) sin embargo queda un hueco importante para que el robot «tope» con un objeto.

El carril donde están montados los sensores ha sido diseñado para que el sensor de presión al que esta conectado pueda ser activado tanto por impactos frontales como inferiores.

Aquí esta el código. Copiadlo al directorio samples de lejos y ejecutad ant.

Práctica 2: Segway

Para esta práctica y empleando un único sensor de luz debemos programar y diseñar el robot para que se mantenga en equilibrio el mayor tiempo posible.

Algunas consideraciones sobre el diseño:

  1. El robot dispone de dos sensores de presión (uno delante y otro detrás) para detectar que ha caido y en consecuencia detener el movimiento y evitar daños.
  2. Estos sensores se utilizan activamente en la fase de calibrado para asegurarse de que el usuario lo esta realizando en el orden correcto (dejarlo caer hacia atras, luego hacia delante y activarlo en equilibrio)

Para controlar la fuerza de los motores se utiliza un controlador PID, en la pagina de la wikipedia se pueden encontrar mas detalles, aquí tan solo se comentará lo relativo a la implementación del Segway.

Tenacitas en modo SegWay (lateral)

En cada ciclo de control el controlador obtiene una lectura del sensor de luz, esta lectura será 0 si el robot se haya en el punto de equilibrio, los valores positivos y negativos indicarán si el robot se esta inclinando hacia delante (si es positivo) o hacia atrás (si es negativo)

En consecuencia el robot debe responder para recuperar la posicion de equilibrio con una acción correctiva, en el caso del segway consistirá en desplazarse proporcionalmente hacia el punto que le permita recuperar el equilibrio.

Para calcular la velocidad con la que deben responder los motores y su direccion participan 3 constantes que suelen ser diferentes de un robot a otro ya que la inercia del robot y la potencia real de los motores interviene en la respuesta.

  • KP es la respuesta proporcional, normalmente si es muy elevada puede hacer que el robot «sobre-actue» y se caiga al lado contrario, en las pruebas que he hecho sin embargo nunca ha llegado a conseguir neutralizar una inclinacion media.
  • KI es la constante de integracion y multiplica las diferencias con el punto de equilibrio que se han ido sumando (hasta llegar a una constante máxima)
  • KD, la constante de derivacion multiplica la diferencia de los dos ultimos errores obtenidos.

No todas las constantes tienen porque ser positivas, dependerá de que papel jueguen en el refuerzo o compensación de la respuesta para conseguir que el robot reaccione con la fuerza necesaria pero sin provocar que caiga en el sentido contrario.

El código está disponible aquí

Fallos y puntos a mejorar:

Quien mucho abarca poco aprieta, el motivo principal del fallo catastrofico del robot a la hora de mantener el equilibrio ha sido intentar construir una configuracion que resolviera simultaneamente las 2 prácticas pendientes para entregar el mismo día. El problema de esta configuración hibrida radicaba en el peso, que hacia imposible a los motores moverse con el suficiente impulso como para volver a ganar el centro de equilibrio.

por otra parte el entorno del laboratorio devolvía lecturas bastante cerradas con lo que el robot no aceptaba la lectura que le daba como punto medio (al no ser menor que la lectura máxima y mayor que la mínima)

5 Comentarios

  1. ong m

    I have been browsing online greater than 3 hours these
    days, but I never found any interesting article like yours.
    It is pretty value enough for me. Personally, if all website owners and bloggers
    made excellent content material as you probably did,
    the internet will be a lot more helpful than ever
    before.

  2. dw4345

    I drop a comment when I appreciate a article on a site or I have something to contribute to the discussion. Usually it’s caused by the sincerness displayed in the article I read.
    And after this post The Growing Trends in Content Theft: Image Theft, Feed Scraping, and Website Hijacking ?
    Lorelle on WordPress. I was actually excited enough to drop
    a comment 🙂 I do have a couple of questions for you if you don’t mind.

    Is it just me or do a few of these responses appear like coming from
    brain dead individuals? 😛 And, if you are posting at other social sites, I’d like to keep up with you.
    Would you make a list every one of your public
    sites like your linkedin profile, Facebook page or twitter feed?

  3. Shamsuddin S

    I have realized that car insurance corporations know the cars and trucks which are susceptible to accidents and other risks. Additionally , they know what type of cars are prone to higher risk plus the higher risk they’ve already the higher the actual premium price. Understanding the simple basics connected with car insurance will let you choose the right types of insurance policy that will take care of your preferences in case you get involved in an accident. Many thanks for sharing the ideas on your blog.

  4. katiemmcgrath

    Lecturer while attending college was communicating everyday concerning %BT%.
    That he or she didn’t pun intended, the overnight along with.
    May possibly smb afford personally with an increase of with it?

  5. WifeMumWorker

    I’ll right away grasp your rss feed as I can’t find your email subscription hyperlink or newsletter service.
    Do you’ve any? Please permit me recognise in order that I may just
    subscribe. Thanks.

  6. play.google.com

    Thank you for some other educational web page. Exactly where more may I am getting which style of details coded in this type of perfect technique? I have a undertaking i’m just now concentrating on, i have already been within the start looking outside to get this kind of information aplikasi rekomendasi saham terkini.

  7. Finanze

    Hi, I do think this is a great website. I stumbledupon it 😉 I may come back yet again since I book-marked
    it. Money and freedom is the best way to change, may you be rich and continue to help others.

  8. Brother printer support

    With the increasing dependency on electronic devices, comes along its failure as well. Therefore Brother Printer Support ensures that the quality of service should not be compromised and hence we pledge to deliver 24×7 printer services at +1-888-621-0339 and also make sure that the problem does not recur by following up on our subscribed customers.

  9. Brother printer support

    Brother Printer Support is a one stop solution for printer services. We are proud of delivering instant and highly effective services at any hour of day and also the issue is being rectified as well as corrected in real time right in front of you. We are available 24×7 at +1-888-621-0339.

  10. financetypes.us

    I am sure you see the trend here… Commercial Mortgage Financing can be used in practically any industry for any kind of commercial property. Speak with your Business Finance Broker when you are ready to invest in a Commercial Real estate opportunity. http://www.financetypes.us

  11. bestadventuretravel.us

    Make use of a travel agent that provides travel deals for handicapped travelers. Booking plane tickets and rooms in hotels with journey agents that provide travel methods to disabled individuals is advantageous in many ways. They make sure they book for his or her disabled customers airlines as well as hotels which are disabled pleasant. They make an effort to offer providers and suggestions which will ensure their own clients journey comfortably. http://www.bestadventuretravel.us

  12. may rua chen bosch

    Write more, thats all I have to say. Literally,
    it seems as though you relied on the video to make your point.
    You obviously know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

  13. fernanezlopez

    Using a technical device is not easy or it is always not possible to take the printer out to a shop for preparing. Dial printer support along with its experienced team made it easy by providing the best services of BROTHER PRINTERS. The BROTHER Printer support is fully occupied with the trained support team. It diagnoses all technical errors and delivers the best results according to the customer’s convenience.With the best technical experts, the problem of the printers is solved within the shortest period of time. And the helpline number for Brother Customer Support is +1-888-621-0339.

    Brother printer support contact

  14. koleksi vlogger indonesia

    I do think this really is among the much info for me koleksi vlogger indonesia. Exactly what satisfied researching a person’s document. Nonetheless want to thoughts in some elementary troubles, It model is usually amazing, your posts is in actuality good : D. Good process, regards

  15. Visit My Web Site

    Good article video vlogger terfavorit. I’d been checking continually your blog and i’m influenced! Incredibly beneficial data specifically the supreme element 🙂 My spouse and i manage this sort of facts considerably. I became trying to find the following particular data for the very long time. Appreciate it and also of luck.

  16. kumpulan youtube terbaru

    Many thanks for the excellent writeup kumpulan youtube terbaru. It was a pleasurable bill this. View difficult to be able to much unveiled reasonable of your stuff! Even so, exactly how should we be in contact?

  17. Adriana Waterfield

    TytMANjD buy cialis

  18. buy cialis

    It is perfect time to make some plans for the future and it’s time to be happy.
    I have read this post and if I could I want to suggest you some interesting things or advice.
    Maybe you can write next articles referring to this article.
    I want to read even more things about it!

  19. Www.Sensory.Id

    Your article on Pr??ctica 1 y 3 – Geosincrona is great. I hope you can continue delivering many lot post . Be prosperous http://www.geosincrona.com

  20. Phillip Xin

    I visited several websites except the audio quality for audio songs existing at this website
    is really superb.

  21. Maynard Smith

    Hi, I do believe this is an excellent blog.

    I stumbledupon it 😉 I am going to return yet again since i have saved as a favorite
    it. Money and freedom is the greatest way to change, may you
    be rich and continue to help others.

  22. fernanezlopez

    We are the team of Dial Printer Support having expertise in printers,laptops and various other essential modern day devices. It diagnoses all technical errors and delivers the best results according to the customer’s convenience.We give our customer the best solution by identifying the root cause of the problem once they call us. Once the call is made we connect you to our skilled professionals who will guide you through the problem, find the cause and resolve it. At Dial Phone Support you have the benefit of having a variety of customer based products and services from HP, Canon and Brother Printers. For any printer technical support with proper customer care call Dial Printer Support at +1-888-621-0339.
    Dial Printer Support

  23. rajqureshi

    i found your article very intresting. really nice post. keep posting this type of important post. lots of love from rajasthan also help me to improve my backlinking i am adding my website link.

    https://onlinepharmacypill.com/product/soma-500-mg/

    Soma 500mg
    Buy Soma 500mg
    Soma 500mg Online

    Body pain is one of those health related problems and it is very common that people have to go through various types of pains. Now no
    more worries related to these pain problems, as to treat your pain you can buy painkillers online. . Now you can buy Soma 500mg online at affordable price

  24. phim 56

    Hey, I’m beda. I’m a web developer living in Ca-na-đa. I am a fan of movies, arts, and wine. I’m also interested in camping and swimming. You can visit my website with a click on the button above.

  25. раскрутка сайтов

    Hi there colleagues, its great post regarding tutoringand completely defined,
    keep it up all the time.

  26. Thang poongsan
  27. bún quậy ở Sài Gòn

    Its such as you learn my mind! You appear to understand so much approximately this, like you wrote
    the ebook in it or something. I believe that you just could do with
    a few percent to power the message house a bit, but instead of that, this is fantastic blog.
    An excellent read. I will definitely be back.

  28. may may bao

    may may bao đúng chuẩn là sản phẩm có giá rẻ nhưng chất lượng vấn ổn định, hoạt động cho ra kết quả tốt, có đầy đủ chức năng cần thiết đáp ứng nhu cầu. Sau đây chúng tôi sẽ chia sẻ đến các bạn những kinh nghiệm quý báu trong cách chọn máy.

  29. Masteri parkland

    Hi! I could have sworn I’ve visited this blog before buut fter browsing through many of the postss I realized it’s new to me.
    Regardless, I’m certainly delithted I stumbled upon it and I’ll be bookmarkiung it and
    checking back often!

  30. may han mieng tui

    Với sự ra đời của máy hàn miệng túi, khâu đóng gói túi, bao bì đựng sản phẩm trở nên tiện lợi, tiết kiệm thời gian hơn và tiết kiệm chi phí để thuê nhân công lao động trong những mùa sản xuất cao điểm của các doanh nghiệp, nhà máy, xưởng sản xuất thực phẩm, chế biến hải sản, dược liệu,…

  31. Ruben Mccray

    I have been browsing online more than 3 hours
    today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. Personally, if all webmasters and bloggers made good content as you did,
    the web will be a lot more useful than ever before.

Dejar un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *