Android App for the HTWay

A fan of the HiTechnic HTWay, Michael Backus, has created an Android phone application that lets you control the HTWay with your phone! The application uses the internal acceleration sensor so that you can drive the HTWay by tilting your phone!


Click on the image to go to the Android Market website.

Here is the description from that website:

Description

This app was made for those who would like to remotely control HiTechnic’s HTWay (a Segway type robot) using their Android device. Go to HiTechnic HTWay for building instructions. You will need a Gyro sensor and NXT-G 2.0 in order to build and program this robot.

Once you have built your robot, download and install the “text to number” block available at the bottom of this app’s support site: https://sites.google.com/site/mbbackus/robotics/segway

You must also download and install the Gyro sensor block from HiTechnic: http://www.hitechnic.com/downloadnew.php?category=13

Download and then upload to your NXT a modified version of HiTechnic’s program for your Segway. The modified version is call HTWayAR (HiTechnic Segway Android Remote) and can also be found at the bottom of this app’s support site.

Once installed, but prior to running a program on either device, you must pair your phone with your NXT.

On your NXT:

  1. From the top level menu, click the left arrow until you have selected “Bluetooth”
  2. Turn bluetooth on. The NXT should display “Turning on” for a second or two. Thereafter, you should see a Bluetooth symbol in the upper left hand side of your NXT’s screen.

On your Android device:

  1. From your home screen click your menu button.
  2. Select “Settings”
  3. Select “Wireless & networks”
  4. Turn on “Bluetooth”
  5. Select “Bluetooth settings”
  6. You phone should discover your NXT. If not, prompt it to do so by clicking “Scan for devices” (make sure your NXT is on).
  7. Click on the entry that corresponds to your NXT and pair with it.
  8. If you’ve done everything correctly, “Paired but not connected” should appear below your NXT’s entry.

Next, start the program on your NXT. HiTechnic’s explanation of how their program runs is better than any I could provide:

“When you run the program, the first thing it will do is let you select the wheel size that you are using. There are three options: Small (NXT 2.0), Medium (NXT 1.0), and Large (RCX). Use the arrow keys to choose and the Orange Enter button to select.

The robot will now need to get an initial gyro offset. You can think of this as a Gyro Sensor calibration. In order to get a good gyro offset, the robot will need to be completely still. If you hold the robot in your hand it will wait until you you put the robot down, and it is not moving, before it will get the gyro offset and go on. HTWay will now start beeping indicating that you have five seconds to get the robot vertical and as balanced as possible. At the end of the long beep, let go.” -HiTechnic

Once your robot is balancing, open this app and connect to your NXT. Once connected, you should be able to control your Segway simply by tilting your phone.

Enjoy!

5 Responses to “Android App for the HTWay”

  1. Udit says:

    Good job! Well can it also work with the IPad2?

  2. Gus says:

    I think this is for Android only. If someone wants to make a IPhone/IPad version then I would be happy to assist on the robot end of the project.

  3. Dennis says:

    Excellent app. Easy to set up and works brilliantly using HTC Desire. Thanks guys.

  4. Udit says:

    I have done it at last.my father just bought a new android phone and it worked but why doesn’t it balance properly?it just falls of if i make it go front for a long time.

  5. pgb2000 says:

    Please make a iOS app!

Leave a Reply