RRH62000-A1V sample code

i have the RRH62000-A1V module, and making PCB to mount.

May I know where to find the reference software code or sample code  to control the module?

  • Hello,

    Thanks for reaching out Renesas Engineering Community.

    Unfortunately for the specific sensor module we do not have any sample code available to share with you.

    However the communication between a host MCU and the sensor is quite straight forward.  The sensor supports two different interfaces you can either communicate with it through UART or via I2C.

    I would suggest you to check the datasheet in order to find out more information about it:

    RRH62000 Datasheet (renesas.com)

    In case you want to communicate through UART interface check section 5.1 from the datasheet to check the set up and the characteristics.

    In case you configure the sensor to communicate through UART please let me inform you that the sensor comes in active mode by default from the factory. That means that as soon as you connect the sensor for UART interface with your host mcu, the sensor will send 38 bytes almost every 1 sec. 

    If you check the format of the 38 byte frame you can get all readings as shown below:

    For example let's say that from the message you get bytes 26-27 are 0x2 byte 26 and 0xA byte 27. To convert this to temperature:

    int16_t temp_value =  ((byte26)|(byte27<<8));

    For the example values we mentioned : temp_value = 0xA02 which is in decimal 2,562.

    Then we multiply this with 0.01 as shown in the DS so the final temperature value is 25.62 Celsius degrees

    With the same way from UART you can calculate the rest of the data.

    In case of using I2C interface, please check section 5.2.0  of the datasheet. A format also for the I2C 38 bytes frame is provided for I2C in section 5.2.3.1

    Hope it helps.

    Best Regards,

    IK