Open ameysutavani opened 9 years ago
/dev/ttyAMA0
(or wherever it shows up as) and everything would work as normal, but on a serial tower.2185
sends the opcode 0x21
, meaning "turn on or off motors" with the argument 0x80 | 0x1 | 0x4
, which means "turn on A and C"Also, here are some videos of my RCX controlling code at work:
I wish to make an arduino based bluetooth to ir relay (bidirectional if possible) for rcx....mainly for following reasons
Any thoughts??
Very thanks
In my experience the RCX is not well suited to precise or difficult tasks. The motors have no tachometers in them for positional or correctional feedback, which often results in very inaccurate movements. Also the motors are not well suited to heavy tasks, they have very little torque unless you gear them down to a quite slow speed. You might try a worm gear. The LEGO building bricks don't hold together well under heavy weight, but good building technique can help avoid this problem.
The RCX doesn't work too well at long-range from the IR tower, so attaching the tower to the bot may be required for best accuracy. I have put my phone onto the RCX before, with a live-streaming IP camera app on it. It worked pretty well, actually, but for some reason my phone appears to emit a constant "0xFF" from its IR blaster as of android 4.4.4, and it was interfering with the RCX. If your phone has a working IR blaster, you might experiment with controlling the RCX with it, though I can't say for sure if the IR blaster on a phone can generate the required frequency of flashes.
All good points
the relay will always be in front of rcx..just like the tower you mounted on the robot. Yes, rcx does not have tacho, but android smartphone has plethora of imu sensors like gyros and accelerometers which can be used to get the current heading and acceleration
The only paramater that has to be passed to rcx is the speed of both the motors and polarity (eg for a single motor ranging from -100% to 100%)...here -ve sign indicates reversed polarity
for a pair of motors forward is (100,100) backward is (-100,-100) left is (-100,100) arc left(-50,100) and so on
these parameters can be given by an android app which implements PID controller based on its imu sensors
I'm not quite sure how well the feedback thing would actually work, since as far as my tests have gone there's a slight "cooldown" period between when it allows you to send commands..
The "Set motor power" opcode only allows you to set power as values 0 through 7. 13050203
would
13
05
02
03
Hello, I liked your idea to control rcx by ev3
I have few questions though...