I am working with HX711 and I am trying to interface with nrf52832. Should I proceed with SAADC example or UART or Twi Sensor
I am working with HX711 and I am trying to interface with nrf52832. Should I proceed with SAADC example or UART or Twi Sensor
Solved by turning on the optimizations. Interesting.
Droidik, the hx711_sample() function needs to be compiled with optimization to work when PD_SCK frequency is 1MHz. I suspect it would not have been necessary if I had rewritten this line "m_sample.value |= (nrf_gpio_pin_read(DOUT) << (23 - i));" to something more efficient.
Vidar Berg, once again thank you for your amazing work and support.
Hi Vidar Berg, This example is amazing. However, I am having issues using this example. I modified the "ble_app_uart" example from Nordic SDK, and included your portion of the code (As you have done), upon compiling, the nRF52832 DK does not advertise nor does it perform any other function. When I comment out the function "hx711_init(INPUT_CH_A_128, hx711_callback)" , code starts running smoothly, advertising is ok too. So what do you think seems to be the issue. Please help me. I am using Keil MDK-ARM 5, SDKv15.0.0, nRF52832 DK. Thanks
So what debugging have you done?
When I comment out the function "hx711_init(INPUT_CH_A_128, hx711_callback)" , code starts running smoothly
So that's clearly an area to focus your debugging: is it getting stuck, or crashing in that function ... ?