How to add pressure sensors to sk_s7g2

Hi everyone

  I want to add pressure sensors to my sk_s7g2. But I don't know how to add it. My sensor is HX711. It seems that I need to write my own driver. I want to read the data through this sensor. I hope your can give me some routines or guidance. Thank you all here.

Best wishes

yyk

  • yyk,

    The HX711 is not a sensor - it's a 24 Bit ADC and a PGA used to connect to a load cell.
    You need to connect a load cell to S+ and S-, the MCU can connect to SCK & DOUT using a SPI_SCI or RSPI pins.
    I suggest that you get the data sheet for the HX711 to find out the commands and data format that's needed to operate the device. You can use the standard SPI HAL driver to send/receive data to the device.

    -Gary
  • In reply to garyj:

    hi garyj
    Thank you for your reply.Do you have a routine, please? Or a simple tutorial. I would like to thank you very much.I'm not sure how to use it.Because there may not be a driver in SSP.I don't know how to do it.Thanks again.
    Best wishes
    yyk
  • In reply to yyk:

    yyk,

    There are many examples of how to use the HAL driver for SPI on the Renesas web site and also in this forum.
    Please search for Module Guides and SPI.

    -Gary
  • In reply to garyj:

    Hi garyj
    Thank you very much. I will try.
    Best wishes
    yyk