Loading...
Pages: [1]   Go Down
Author Topic: Problem in troubleshooting RHEX-hexapod robot like BOSTONDYNAMICS  (Read 763 times)
0 Members and 1 Guest are viewing this topic.
india
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i attended a workshop on RHEX 6 legs autonomous robot like the one in BOSTONDYNAMICS....infact very lowtech nd basic one....

i assembled all the parts as shown in the ppt....uploaded the codes for master ARDUINO NG micro-controller board and Slave SERVO motor controller that they given with the ppt....now all the ENCODER sensors are working which count no of ticks.....the arduino board is working with PREloaded LED_BLINK program.....but SERVO motors are not starting at all....

i should specify that i m not a hardcore robotics guy...m a student....dont have any basics of microconroller/microprossesor/ARDUINO_IDE....

pls help me.....here uploading files is not allowed as they r saying UPLOAD FOLDER FULL....PLS CONTACT ADMINISTRATOR....as soon as i manage i'll upload the codes for ARDUINO NG Microcontroller board as well as slave board that i used in this project/....

cheers....
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 313
Posts: 35494
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Not a link in that thread, and no code. If you need help, fix that.
Logged

0
Offline Offline
Tesla Member
***
Karma: 50
Posts: 6546
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Make sure you have a seperate power supply for the servos (with grounds connected between the arduino and power supply). Below is some servo test code you can use with the serial monitor to test a servo connected to the arduino.

Code:
// zoomkat 10-14-11 serial servo test
// use a microseconds value like 1500 in serial monitor
// for IDE 0022 and later
// Powering a servo from the arduino usually DOES NOT WORK.

String readString;
#include <Servo.h>
Servo myservo;  // create servo object to control a servo

void setup() {
  Serial.begin(9600);
  myservo.writeMicroseconds(1500); //set initial servo position if desired
  myservo.attach(7);  //the pin for the servo control
  Serial.println("servo-test-22"); // so I can keep track of what is loaded
}

void loop() {
  while (Serial.available()) {
    char c = Serial.read();  //gets one byte from serial buffer
    readString += c; //makes the string readString
    delay(2);  // allow buffer to fill with next character
    }

  if (readString.length() >0) {
    Serial.println(readString);  //so you can see the captured string
    myservo.writeMicroseconds(readString.toInt()); //convert readString to number for servo
    readString=""; //empty for next input
  }
}

Logged

Why I like my 2005 rio yellow Honda S2000 with the top down, and more!
GOOGLE ADVANCED FORUM SEARCH BELOW!  
Go to:  http://www.google.com/advanced_search?hl=en
put in key search words,
use site or domain:  http://arduino.cc/forum
or in a google search box put key words site:http://arduino.cc/forum

Pages: [1]   Go Up
Print
 
Jump to: