element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Rapiro Remote Control Projects
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 8 May 2014 2:00 AM Date Created
  • Views 614 views
  • Likes 0 likes
  • Comments 1 comment
  • rapiro
Related
Recommended

Rapiro Remote Control Projects

Former Member
Former Member
8 May 2014

I have completed three options for controlling the Rapiro Robot using the modified Rapiro Sample Program Arduino sketch that added the option to turn off servo power.  It can be downloaded at this link:

 

https://dl.dropboxusercontent.com/u/54426040/Rapiro_Sample_Program.ino

 

First the Html Browser approach.

You can control the robot with any device running a web browser.  Firefox and android work with the supplied program.

I haven't tested IPhone or IPad.  If you want to use Chrome or IE you can change the onchange event to onmouseup but then the phone and tablet do not work very well.

Remember to chmod the css and jpg files to 644 and the test2.py to 755.


The required files for this project are at this link:


https://dl.dropboxusercontent.com/u/54426040/Rapiro%20Remote%20Control%20Android.zip

 

The instructions for installing the required software on the RPi are included in this link:

 

Installing RaPiRo Web Control - eLinux.org


The pythons script name has changed to test2.py vice test.py.

Be sure and follow carefully the instructions on changing file permissions.

Use the icons and the test2.py script from the above link.

If you installed apache2 default settings the icons and css files go into the var/www directory and the test2.py goes into the usr/lib/cgi-bin directory.


Many thanks to Frederick Vandenbosch and Jan Blomqvist Kinander for their valuable support.


Second the Python approach.


The files for this project can be obtained here:


https://dl.dropboxusercontent.com/u/54426040/Rapiro%20Remote%20Control%20Python.zip


The server2.py program goes on the RPi.

Make sure ttyAMA0 is linked to ttyS0

I put the following command in the /etc/rc.local file to automatically set things up on boot.

sudo python /home/pi/server2.py

 

The RemoteControl.py program is run on the Windows or Linux computer.

The images go into the same directory as the script.

You will have to change the ip address in line 21 to match the ip address of the RPi.

Port should remain 90 unless you change the server2.py program.

It was generated with Python2.7, I don't know if it runs on other versions.

 

The third approach is an Android program.

 

Sideload the apk file into your android device and install it.

I also included the server2.py script that must be run on the RPi.  Probably best to autostart it and make sure ttyAMA0 is linked to ttyS0 .

If you installed it for the python version it works with android also.

You can run any TCP Socket server on the RPi it doesn't have to be server2.py.  Remember set port = 90 in the Android program if you do run server2.py.

I didn't get fancy with colors and icons, just basic controls that work.

I tested on a Nexus 7, Nexus 4, HTC Vivid, and Kindle Fire HDX.  All worked!.  Should work on any true android device.



imageimageimageimage

  • Sign in to reply
  • Former Member
    Former Member over 11 years ago

    I replaced my control board to see if it would help by WIFI dropout problems.  It didn't.

    However with the new board the Left and Right Hand grip synchro motors behaved differently.

    I had to redo the min max values.  If for some reason you have problems with any of the sliders working properly you may have to fine tune the slider values.  If you are going to use the android program you will need the Android Studio file.  Let me know and I will send it to you.

    The solution to my WIFI problems seem to be to use a battery powered USB hub for the WIFI adapter.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube