by hugobiwan » Thu Sep 22, 2011 9:03 pm
by hugobiwan
Thu Sep 22, 2011 9:03 pm
Hello from France.
I am a newbie in robotic and just had my robophilo.
My project is very simple : make a little autonomous robot with the great motions of the robophilo.
I am going to use the same method i did with the robosapien using arduino :
- let the original robophilo microcontroller take care of the internal controls in the robot (especially driving the servos)
- program the motions with the provided GUI (easy to use and offers many many motions to remap on the IR remote).
- giving orders to the robot using an arduino board, reacting to sensors, on the robot.
The first step is to understand how the orders are given to the robot by the different I/O I can see, without having to buy the SDK :
- RJ11/232 using serial in the back of the robophilo
- IR receiver
- I/O pins on the PCB.
The most easy is to use the IR receiver, so i dont take any risk for the robot.
I tried to use a USB_UIRT universal receiver to catch the remote codes. I got codes, but it was impossible to send them back with success and to obtain a reaction of the robot.
So i built the multi-protocol transmitter/receiver of Ken Shirriff, that can be made with just one IR led and one resistor on an arduino board, soldering wires on the robophilo IR receiver to catch the codes of the remote, and define the protocol. Look here :
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
Yesterday, i had a result and now i just try successfully to send back a code corresponding to key2 on the remote to the robophilo.
Before coding an arduino sketch making me able to add some sensors on the robot and drive hit using the arduino on its back, i share with you the codes i found. Please try them and tell me if all are working. I made an arduino sketch that makes me think that each code must be sent 3 times with a delay of about 10 ms. I am going to verify that tonight.
The robophilo IR codes seems to be in SONY fomat (12 bits/sent 3 times per code).
codes IR robophilo :
key1 : 7DF
Key2 : FDF
Key3 : 57F
Key4 : D7F
Key5 : 37F
Key6 : B7F
Key7 : 77F
Key8 : F7F
Key9 : FF
Key10 : 5FF
Key11 : DFF
Key12 : 3FF
enter : 6DF
walkforward : DF
walkbackward : 9DF
left : ADF
right : EDF
turn 30 right : 2DF
turn 30 left : 4DF
1 : 65F
2 : E5F
3 : 15F
4 : 95F
5 : 55F
6 : D5F
7 : 35F
8 : B5F
9 : 75F
0 : DF
Power servos : 45F
repeat : 5F
setup :3DF
back-up : 5DF
back down :BDF
front-up : 1DF
front-down
DF
To send the IR codes i use IR Library for arduino, an arduino board and about 5 euros of components. All arduino sketches, and the way to build an instant IR catcher/sender are here :
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
With the library, in the arduino sketch it is simple like :
for (int i = 0; i < 3; i++) {
//0x + code = hexadecimal - second variable = number of bits
irsend.sendSony(0xFDF, 12); // code key2
delay(b);
}
I tried with incremental values for the delay and the robot seems to move with a delay of between 5 and 15 milliseconds.
I hope this can help those who like to play with the robophilo
Best regards,
@hugobiwan
Hello from France.
I am a newbie in robotic and just had my robophilo.
My project is very simple : make a little autonomous robot with the great motions of the robophilo.
I am going to use the same method i did with the robosapien using arduino :
- let the original robophilo microcontroller take care of the internal controls in the robot (especially driving the servos)
- program the motions with the provided GUI (easy to use and offers many many motions to remap on the IR remote).
- giving orders to the robot using an arduino board, reacting to sensors, on the robot.
The first step is to understand how the orders are given to the robot by the different I/O I can see, without having to buy the SDK :
- RJ11/232 using serial in the back of the robophilo
- IR receiver
- I/O pins on the PCB.
The most easy is to use the IR receiver, so i dont take any risk for the robot.
I tried to use a USB_UIRT universal receiver to catch the remote codes. I got codes, but it was impossible to send them back with success and to obtain a reaction of the robot.
So i built the multi-protocol transmitter/receiver of Ken Shirriff, that can be made with just one IR led and one resistor on an arduino board, soldering wires on the robophilo IR receiver to catch the codes of the remote, and define the protocol. Look here :
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
Yesterday, i had a result and now i just try successfully to send back a code corresponding to key2 on the remote to the robophilo.
Before coding an arduino sketch making me able to add some sensors on the robot and drive hit using the arduino on its back, i share with you the codes i found. Please try them and tell me if all are working. I made an arduino sketch that makes me think that each code must be sent 3 times with a delay of about 10 ms. I am going to verify that tonight.
The robophilo IR codes seems to be in SONY fomat (12 bits/sent 3 times per code).
codes IR robophilo :
key1 : 7DF
Key2 : FDF
Key3 : 57F
Key4 : D7F
Key5 : 37F
Key6 : B7F
Key7 : 77F
Key8 : F7F
Key9 : FF
Key10 : 5FF
Key11 : DFF
Key12 : 3FF
enter : 6DF
walkforward : DF
walkbackward : 9DF
left : ADF
right : EDF
turn 30 right : 2DF
turn 30 left : 4DF
1 : 65F
2 : E5F
3 : 15F
4 : 95F
5 : 55F
6 : D5F
7 : 35F
8 : B5F
9 : 75F
0 : DF
Power servos : 45F
repeat : 5F
setup :3DF
back-up : 5DF
back down :BDF
front-up : 1DF
front-down
DF
To send the IR codes i use IR Library for arduino, an arduino board and about 5 euros of components. All arduino sketches, and the way to build an instant IR catcher/sender are here :
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
With the library, in the arduino sketch it is simple like :
for (int i = 0; i < 3; i++) {
//0x + code = hexadecimal - second variable = number of bits
irsend.sendSony(0xFDF, 12); // code key2
delay(b);
}
I tried with incremental values for the delay and the robot seems to move with a delay of between 5 and 15 milliseconds.
I hope this can help those who like to play with the robophilo
Best regards,
@hugobiwan