Author Topic: Max measurement speed that the CurrentRanger could send to PC over the serialUSB  (Read 163 times)

Bakyt

  • Newbie
  • *
  • Posts: 5
Once the issue of sending the measurement data to PC over the USB cable has been resolved, I am a bit curious about the maximum speed that the CurrentRanger can measure and send the data to PC/iMac over the serialUSB.
If somebody has already done, I would appreciate if you can share how you have done that.
Thanks in advance

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5813
  • Country: us
    • LowPowerLab
SerialUSB doesn't have a speed. It's USB speed.
Compared to the traditional UART, its like lightning speed ;)
Try changing the SerialUSB.begin( to anything you want ), it does not matter. Open it in the Serial monitor, and that baud setting can again be anything, it does not matter.
SerialUSB comes through packets, not bitbanging like traditional UART, or like simulated UART through FTDI like adapters.

Anyway, it will be much much faster than you will ever need.

Your limitation will be the ADC sampling speed, and that depends how it is configured. Right now for OLED display purposes, there is quite a bit of oversampling and averaging done in the ADC itself, before taking a reading.
« Last Edit: February 15, 2019, 11:38:48 AM by Felix »