How to Control a ROBOSAPIENS Robot With Cayenne IoT

Hi! I’m

Neoxelox and I will show you how to control a ROBOSAPIENS robot with Cayenne IoT!

We need:

Step 1: Connect the IR Emitter to Arduino and also the Triggers
Connect the IR Emitter to Arduino board.


IR Emitter / Arduino

pin “-” —> pin GND

this pin doesn’t have any letter so, the middle pin —> pin 5V

pin “S” —> digital pin 3 or other digital pin (It cannot be pin 0,1,2 or 13)


I was thinking what is the easiest way to do this project, and I realized if we connect a wire through digital pin 9 to 8 and digital pin 7 to 6 is the best way to do it, so:

Connect Arduino digital pin 9 to Arduino digital pin 8, repeat with 7 to 6.

Step 2: The code
Just copy that (Obviously you need to change the line 33 with your IR Emitter digital pin.
Cayenne Button Widget Example
This sketch shows how to set up a Button Widget with Cayenne.
The Cayenne Library is required to run this sketch. If you have not already done so you can install it from the Arduino IDE Library Manager.

  1. In the Cayenne Dashboard add a new Button Custom Widget.

  2. Select a digital pin number. Do not use digital pins 0 or 1 since those conflict with the use of Serial.

  3. Attach a digital output device (e.g. a LED) to the digital pin on your Arduino matching the selected pin.

  4. Set the token variable to match the Arduino token from the Dashboard.

  5. Compile and upload this sketch.

  6. Once the Arduino connects to the Dashboard you should be able to control the digital output device with the Button widget.
    Notice that there isn’t much coding involved to interact with the digital pins.
    Most of it is handled automatically from the Cayenne library.
    For further examples of how to receive data from Cayenne see the example sketches under Actuators.

    #define CAYENNE_PRINT Serial // Comment this out to disable prints and save space
    // If you’re not using the Ethernet W5100 shield, change this to match your connection type. See Communications examples.
    #include <CayenneEthernet.h>
    // Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
    char token = “*******”;
    #include <IRremote.h>
    #include <IRremoteInt.h>
    IRsend irsend;
    IRrecv irrecv(3);
    void setup() {
    pinMode(8, INPUT);
    pinMode(6, INPUT);
    void loop() {;

Step 3: Configure Cayenne DashBoard
Just select a button custom widget, and modify it as the picture shows.

Step 4: Test it and you finish it!
Hope you like it!!! If you want to know more movements I let you this table:


Excellent project, thank you for sharing with the community.

I’m curious, is this limited to a specific model of Robosapians, or do they all share the same basic controls? I can see on their website that they have a lot of different models, some of which are in dinosaur rather than humanoid form, etc…

With the library I give you, you can control robosapiens V1 and robosapiens V2. I’m sorry but I don’t know the movements of the V2 :frowning: