Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send opcodes #2

Open
jabrena opened this issue Mar 24, 2017 · 4 comments
Open

Send opcodes #2

jabrena opened this issue Mar 24, 2017 · 4 comments

Comments

@jabrena
Copy link

jabrena commented Mar 24, 2017

Hi,

Is it complex to send opcodes to RCX with an Arduino using IR?
http://www.mralligator.com/rcx/opcodes.html

Cheers

Juan Antonio

@BobGenom
Copy link
Owner

No, it's not complex.

But, to which part of my program do you refer?

@jabrena
Copy link
Author

jabrena commented Mar 25, 2017

Yesterday, I found your project and I think that you have key to integrate Arduino with RCX brick running with LeJOS. The idea could be send some value from Arduino to RCX using Opcode.

Example:
http://lego.wikia.com/wiki/9738_RCX_Remote_Control_Unit
http://www.lejos.org/rcx/tutorial/communication/remotecontrol.html
https://github.com/michaelko/tvm/blob/master/examples/remotectl/RemoteControlTest.java

What is your opinion?

If the POC run nice, Arduino could used to add more sensors to a RCX brick.

Cheers

Juan Antonio

@BobGenom
Copy link
Owner

I'm not an expert with leJOS. But I think you are right. It should be possible to send RCX Opcode via Arduino to the RCX. You may use my send(..) function to send RCX Opcode, which starts like this in the code:

/**
 * send 11 bits like this:
 * 1 start bit 0
 * 8 data bits
 * 1 odd parity bit 1
 * 1 stop bit 1
 */ 
void send(int data) {..}

@jabrena
Copy link
Author

jabrena commented Mar 26, 2017

Nice!!!

This week, I will try to create a n example to test the idea.

We are in contact.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants