Navigation
Follow me on Twitter
Wednesday
Jul282010

tilt sensor

I've began adding the Hitec Robonova Tilt Sensor. Installing the sensor itself is very easy and the directions are very clear. In addition the robonbasic templates already have a subroutine added for the sensor. In theory all you would have to do is uncomment the call for the tilt sensor which is found just below the call for the voltage routine call. The reason I say "in theory" is because I found that the template code doesn't work with my sensor! When I first downloaded the script to the controller the robot stayed in a loop of the backward_standup move. This is the code that came as an example with the included tilt sensor directions and is identical to the code which is found in the robobasic template:

robot_tilt:

A = AD(0)
IF A > 250 THEN RETURN
IF A < 30 THEN GOTO tilt_low
IF A > 200 THEN GOTO tilt_high
RETURN

tilt_low:

A = AD(0)
‘IF A < 30 THEN GOTO forward_standup
IF A < 30 THEN GOTO backward_standup
RETURN

tilt_high:

A = AD(0)
‘IF A > 200 THEN GOTO backward_standup
IF A > 200 THEN GOTO forward_standup
RETURN

In my case, I'm using AD port 1 instead of zero, but you can use any of the AD ports you wish. 

After some fiddling around with the code I found out that the sensor was working but that it appears to have MUCH higher sensitivity.  For instance, I had to change the line of IF A > 200 THEN GOTO tilt_high to read IF A > 50 THEN GOTO tilt_high which seems to work fine. However, finding the tilt_low setting is harder. It's a lot of just trial and error. It's also important to note that this line is in the code twice. If you are tweaking this you have to tweak it in both places. 

Finally after much struggling I have come to the conclusion that the sensor is bad. After looking at some posts on the RoboSavvy forum it seems that there have been other people that have has sensors go bad by storing them in a hot car. Since this was shipped to me in July and took a week to get here from the UK I can see this is probably the case with this. 

I have notified Robosavvy and waiting to hear back from them. In the mean time I've also ordered an Hitec accelerometer which is a newer product and seems to be better. 

 

To be continued........

 

One last thought, after all the trial and error with the robot i've decided to order a Hitec Robot Stand. Not only will it be much easier to code and not hold the robot, it will also be a LOT easier on my fingers. The servos and brackets are really hard on your fingers for the forward_standup move when your trying to hold on to the robot. 

 

Friday
Jul232010

giving the Robonova senses

I have ordered several new sensors and enhancements for Robonova. I will post separately about installing each one.

- VRBot Voice Control Module (enables the robot to respond to voice commands)

- Hitec Robonova Tilt Sensor (enables the robot to know when he has fallen so he can stand on his own)

- Hitec Gyro Sensor (enables the robot to stabilize)

- Hitec MaxSonar EZ1 (enables the robot to detect distance and obstacles)

- Hitec Robonova Gripper Kit (enables the robot to grasp things)

- Hitec Robonova Sound Sensor (enables the robot to detect sounds) 

As you can see, in theory, my Robonova will be able to see, hear, grab, detect falls, have increased stability when walking and doing other activities and even be spoken to.  

Wednesday
Jul142010

The Birth of a Robot

I've always been interested in sci-fi and robots since an early age. Maybe it's because my given name is Robbie, but most likely it started when I got my first robot at Christmas when I was six years old. My interest in sci-fi and robots continues still to this day. I even named my software company, U.S. Robots and Mechanical Men, Inc, which was inspired by Issac Asimov's book I,Robot which is one of my favorite books. Even though my company has nothing to do with robots I decided to decorate my office with robots because of the company's name. I started getting various robots off of eBay and placing them around my office.

This collecting of robots eventually led to an interest in robotics and I began looking for a robot that I could take on as a project. A project in which I could continually add sensors to and program to do fascinating things with. First off I purchased a Robobuilder kit. It seemed like a good choice because it already had many sensors and was quite inexpensive. However, I discovered that not only was it quite fragile with it's standard plastic frame (after it took a fall from my work table and broke several joints), I also realized that it didn't have the freedom of motion that I really wanted and it was it was very limited due to the control board, software and sensors I could add on.

Unhappy with the Robobuilder kit I continued my search and found an auction on eBay for a Robonova-1. I had seen many YouTube videos of the Robonova and was impressed by it's agility and it's cool looks. I had looked into the Robonova before but Hitec has discontinued the Robonova-1 it was hard to find a website that still sells one. Since they are hard to get these days I jumped on the auction and got a robot that was in great shape at a really good deal. When I received the Robonova I immediately realized that this was the robot that I was searching for. 

Although I am unsure where this project will take me and the robot that I have named "Robonova" (original name huh?...oh well, why change it...it's a cool name) I have decided to document it's progress for anyone else that is interested in the Robonova. There are some good resources available for the Robonova but since Hitec has discontinued the robot much of the information is a few years old. Also, I found a lot of hobby robot blogs but I never found one that was dedicated to the RN-1.

Thus begins the Robonova Project.

My first robot. Christmas 1971