Moved to GitHub

Due to various reasons, not the least of which was a desire to make my code easier to access for those who want to see it, I’ve decided to move my ROS repository from my own server to GitHub.

It can be viewed here: https://github.com/rbtying/Companion-Cube

Read More Leave a Comment

December 1, 2011

Categories:

Robotics

Simple Arduino Robot Control

One of the simplest bits of functionality that is useful for small-scale robotics is the ability to control robots over the serial port, which can easily be made wireless using Pololu Wixels, XBee, bluetooth, or any other wireless serial connection. Since the Arduino Serial Monitor only sends out messages rather slowly, and it’s usually nice to have a fast response from computer to robot, I wrote a short Java application that handles the communication for you.

Download here:

Robot Controller
Source code is released into the public domain, but if you use it, I’d appreciate it if you cite me somewhere (Robert Ying).

You’ll also need to have the appropriate rxtx native library in the same folder as the jar file when running it—you can download that here

Corresponding Arduino Code:

void setup() {
  Serial.begin(115200);
}

// method that sets motor speeds from -255 to 255
// corresponding to full reverse and full forward
void setLeftMotor(int speed);
void setRightMotor(int speed);

byte nextByte() {
  unsigned long start = millis();
  while (millis() - start < 100) {
    if (Serial.available()) {
      return Serial.read();
    }
  }
  return 0x00;
]

void loop() {
  while (Serial.available()) {
    switch(Serial.read()) {
      case 0xC1: setLeftMotor(2 * nextByte()); break;
      case 0xC2: setLeftMotor(-2 * nextByte()); break;
      case 0xC5: setRightMotor(2 * nextByte()); break;
      case 0xC6: setRightMotor(-2 * nextByte()); break;
      default: setLeftMotor(0); setRightMotor(0); break;
    }
  }
}
Read More Leave a Comment

November 30, 2011

Categories:

Robotics, software

Eagle Project

A completed project

For the past two weekends I’ve been working on organizing and executing my Eagle project, which is to construct a pair of lecterns for Lynbrook High School. Noticing that we have a shortage of such pieces of furniture, and that they are rather expensive to acquire directly, I decided to build these lecterns to benefit both the faculty and the student population at my school.

Read More Leave a Comment

November 27, 2011

Categories:

News

A sneak peek…

A sneak peek at upcoming developments:

Read More Leave a Comment

November 19, 2011

Categories:

Robotics

Prospect Invitational (Winning it, that is)

The Prospect Invitational yesterday (Saturday, October 29th, 2011) was my first debate tournament for a full year—I didn’t manage to get to any as a junior. As a result, it came to be somewhat of a surprise as my partner (Anjana Rao) and I finished the tournament with a 5-0 undefeated record.

More than just the debate, though, my speaking seems to have changed pretty significantly—I used to get relatively few speaker points, and rely on argumentation to win, but at Prospect I walked away with the second speaker award (following first by only 0.25 speaker points).

Since Prospect had hidden elimination rounds, the final round (that is, the Finals round) was rather interesting. The second speaker on the team we were supposed to debate (Milpitas GO) had decided to leave with his girlfriend, since we were unaware that it was actually the Finals round. As a result, another member of their team stepped in to fill the spot, and we began the debate. Just after my first speech, however, their coach ran in and forfeited them, giving us the win… with a seven-minute round.

Read More Leave a Comment

October 30, 2011

Categories:

Speech and Debate

 
Content-Type: text/html