LowPowerLab Forum

Hardware support => CurrentRanger => Topic started by: Bakyt on February 11, 2019, 03:37:43 AM

Title: Max measurement speed that the CurrentRanger could send to PC over the serialUSB
Post by: Bakyt on February 11, 2019, 03:37:43 AM
Once the issue of sending the measurement data to PC over the USB cable  has been resolved (https://lowpowerlab.com/forum/currentranger/currentranger-connection-to-imac-through-serial-header/), 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
Title: Re: Max measurement speed that the CurrentRanger could send to PC over the serialUSB
Post by: Felix on February 14, 2019, 09:39:36 PM
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.