For your NXT or EV3
Sensors
Accelerometer, Compass & Gyro
Motor Multiplexers & Controllers
Wireless Control
Sensor Adapters & Multiplexers
RC Servos, Mountings & Pneumatics

Sensor Kits
Flexi-Cables & Cable Extenders
Classroom packs of Flexi-Cables
Plugs and Connectors
Power Options
Other Robotics accessories

EV3 Console Adapter
EV3 Sensor Adapter for NXT or Arduino
EV3 Compatibility Info

Android App for NXT/EV3

Arduino Products
Shields and Controllers

Raspberry Pi Products
For your Raspberry Pi

Connect with us
Google+
Shopping Cart
Your cart is empty.

Ordering Information
Our Distributors
World Wide Shipping
How to Order and Pay
Paying by Credit Card
Your satisfaction is important to us
About mindsensors.com
Site Map

Yondering ...
Forums
FAQ
Videos
Coming Soon ...
End of Life Products
Robotics related Links

Downloads
NXT Product Docs and Software
User Guides
EV3 Blocks
API's and Sample Programs
NXT-G Blocks
All Downloads

EV3 Programming Environment
Which Programming Environment do you prefer for EV3?
EV3 Home Edition
EV3 Edu Edition
LeJOS
MonoBrick
RobotC
ev3dev
Other



[View Result]

Votes: 1219
Translate this site
Translate this site: (Courtesy of Google™)
Search Web Pages



Need Quote for your School?
Write e-mail to:
info
Need Technical Support?
Write e-mail to:
support
Note your order number in the support request.
You can find order number on your Packing-slip or Order confirmation e-mail.


Proud Supporter of:
Robofest


Trinity College Fire Fighting Robot Contest.

Contact:
E-mail:
info
Address:
mindsensors.com

8623 Mayland Drive
Henrico, VA 23294-4703 USA.
Phone: (804) 767-8116
Fax: (804) 747-5303
Official PayPal Seal
Remote servo controller
Features
RSC02This device can take command from RCX over IR and position upto two servo motors. Servo motors can move from zero to 180 degrees with one degree resolution. This controller can be connected to RCX motor output or external 9V-6V batterry box or any DC power supply. It need not be physically connected to RCX. This controller is compatible with JR/ Hitec Standard Servomotors. ( 1500ms neutral). Does not include servo motors.


Size: 8 studs x 2 studs
NQC Porgram (for two servo motor -same position)
NQC
int x;
task main()
{
  x=0;
  SetFwd(OUT_A);
  while(x<225)
  {
    Wait(100);

    SetSerialComm(SERIAL_COMM_DEFAULT);         
    SetSerialPacket(SERIAL_PACKET_DEFAULT);
    SetSerialData(0,0x55);                 // protocol byte 1
    SetSerialData(1,0x00);                 // protocol byte 2
    SetSerialData(2,0xaa);                 // protocol byte 3
    SetSerialData(3,0x80);                 // controller address byte
    SetSerialData(4,x);                    // servo 1 position
    SetSerialData(5,x);                    // servo 2 position

    SendSerial(0,6);                 // send 6 bytes to controller
    SetUserDisplay(x,0);
    x=x+50;
  }
}
NQC program (for two servo motors-different position)
NQCFollowing program has two variables, x for servo
1 and y for servo 2.


int x,y;
task main()
{
  x=0;
  y=0;
  SetFwd(OUT_A);
  while(x<225)
  {
    Wait(100);

    SetSerialComm(SERIAL_COMM_DEFAULT);
    SetSerialPacket(SERIAL_PACKET_DEFAULT);
    SetSerialData(0,0x55);                   // protocol byte 1
    SetSerialData(1,0x00);                   // protocol byte 2
    SetSerialData(2,0xaa);                   // protocol byte 3
    SetSerialData(3,0x80);               // controller address byte
    SetSerialData(4,x);                  // servo 1 position
    SetSerialData(5,y);                  // servo 2 position 

    SendSerial(0,6);              // send 6 bytes to controller
    SetUserDisplay(x,0);
    x=x+50;
    y=y+10;

  }
}

RCX to RSC02 communication notes
RCX sends the packet of information to RSC02 as follows:
0x55 0x00 0xaa 0xaddress x y

Note, for controlling two motors, use:
SendSerial(0,6);
(which sends 6 bytes)



The IR communication is happening at 2400 bps.