Elektroda.com
Elektroda.com
X

Search our partners

Find the latest content on electronic components. Datasheets.com
Elektroda.com

Mini robot arduino + control by tablet / android phone

vedy1 13668 8
This content has been translated » The original version can be found here
  • Mini robot arduino + control by tablet / android phone

    Hello
    a project done (almost a year ago) quickly in order to show the younger generation what can be done with the idea of some parts (the rest can be done).
    Hardware:
    Robot platform bought from China
    Adruino on the atmega 328
    Double H-bridge controller for motor control
    Converter from 12V-> 5V for the webcam
    WiFi camera dcs-5222l
    Akku 11.1V li-ion 8Ah
    bluetooth module hc-05

    The control software was written in arduino IDE and for android in appinventor.
    The project was carried out in 1.5 days and assumed its launch, so the robot goes forward, turns, transmits the image via wifi to the tablet and also has control from the camera movement level left / right / down / up.

    Mini robot arduino + control by tablet / android phone Mini robot arduino + control by tablet / android phone Mini robot arduino + control by tablet / android phone

    Cool! Ranking DIY
    Can you write similar article? Send message to me and you will get SD card 64GB.
    About Author
    vedy1
    Level 15  
    Offline 
    vedy1 wrote 117 posts with rating 41, helped 11 times. Been with us since 2004 year.
  • #2
    szymon122
    Level 38  
    vedy1 wrote:
    project made (...) quickly in order to show up

    Probably on the forum ...

    4 photos, some letters and 300 points, that's great, isn't it?
    Show off at least what this platform is, the only interesting element of this project ...
    How to search for it on the internet?

    How much does it run on this battery?
  • #3
    Qbas060
    Level 14  
    What is this chassis, what H bridge, maybe some driving movie and a screen with the quality of image transmission from a greater distance ?. The project is probably cool.
  • #4
    nobanmeplease
    Level 15  
    The design is really cool, but I would like to know how the arduino communicates with the camera and what operating system controls it.
  • #5
    malpek
    Level 18  
    The project is interesting, but the poor description and documentation do not help it. A structure that beginners are unlikely to want to build, due to the price. Such a robot chassis costs about $ 70, for ali ...., and the price of such a camera starts at PLN 500. Adding the rest price will be over PLN 1000.
  • #6
    vedy1
    Level 15  
    @ szymon122
    The title of the introduction is what I do not like about my compatriots - just to finish off with no constructive criticism.
    I will gladly give out points (whatever they need) because on this portal I sit once in a "Russian" year, my way I used to have something around 100 points and they disappeared is it possible because I had a very long break in logging in?
    You can find the platform under the name "robot platform" on a foreign auction site or on aliexpress.
    The photos were taken on November 6, 2016 - if a friend wants, I can send the original to the mailbox, so not for the "forum"
    The robot was created for a child (because how to call a 12-year-old boy this year) in order to motivate him to look for solutions and learn the programming language (they already have the basics at school).
    Unfortunately, I do not know how much it works on the battery because the robot went abroad where he and his parents live - I hope that this year we will also see each other and we will do some things and I plan a bluetooth joystick to better control the mobile phone and use cardboard with cardboard as virtual googles.

    @ Qbas060
    The H bridge to L298 can also be purchased on ali or auction portals.
    The video is only when I see the robot :)

    @nobanmeplease
    Arduino is not communicating with the camera. Arduino only communicates via bluetoot to control the motors (PWM).
    My colleague probably looks at how the communication with the camera was made to control the position (left / right / up / down).
    The webcam is connected via wifi to the router or ap made on the phone.
    The image is the appropriate ip address (for me: http: // admin: @ 192.168.1.3 / video2.mjpg)
    Each button on the website is also an appropriate address (for me:
    http://192.168.1.3/cgi-bin/longcctvmove.cgi?a...rection=left&panstep=1&tiltstep=1%20HTTP/1.1)
    the rest in the program in the attachment.

    @malpek
    This is how the chassis costs so much.
    Luckily the webcam was once bought for less than 100 PLN, damaged and restored.
    of all this, the battery would be the most expensive but also bought a few years ago and unfortunately I do not remember the price :)

    And I wish everyone a sunny Sunday and look at the other person kindly (maybe a smile)
    Best regards from the sunny North Sea :)
  • #7
    nobanmeplease
    Level 15  
    vedy1 wrote:
    @nobanmeplease
    Arduino is not communicating with the camera. Arduino only communicates via bluetoot to control the motors (PWM).
    My colleague probably looks at how the communication with the camera was made to control the position (left / right / up / down).
    The webcam is connected via wifi to the router or ap made on the phone.
    The image is the appropriate ip address (for me: http: // admin: @ 192.168.1.3 / video2.mjpg)
    Each button on the website is also an appropriate address (for me:
    http://192.168.1.3/cgi-bin/lon...nstep=1&tiltstep=1%20HTTP/1.1)
    the rest in the program in the attachment.

    Communication is problematic and not very secure, I would advise you to use a DHCP VPN, which has reserved mac addresses for devices, to the ip addresses as they are.
    Thanks to that, after connecting to any network, everything will work and the transmission will be secured.
    Regarding platform control, bluetooth would have to be replaced with ethernet, then everything would be connected to the router that is responsible for VPN and DHCP.
  • #8
    vedy1
    Level 15  
    @nobanmeplease
    Thanks for the hint :)
    It reminded me that in the camera the motors responsible for the movement are unipolar stepper motors (5-wire) and also limit sensors (or potentiometers). Also add a piece of the board with control transistors and write a piece of code and you can control the rotation of the camera by arduino.

    best regards
  • #9
    nobanmeplease
    Level 15  
    vedy1 wrote:
    It reminded me that in the camera the motors responsible for the movement are unipolar stepper motors (5-wire) and also limit sensors (or potentiometers). Also add a piece of the board with control transistors and write a piece of code and you can control the rotation of the camera by arduino.

    It would be a bit more form than content, this camera stands on Linux (or something similar) and after telnet (or sometimes ssh) commands can be sent.
    It is worth learning how to use this open system, and you will understand that writing the code from scratch for each 8-bit device is unprofitable when you only need simple scripts in bash and even cheaper STM32 :)