Chat

Welcome to Flux

Treat Flux like your intern. Tell it what you'd like to build and it'll get to work. You can also ask it questions, brainstorm ideas, and teach it your preferences. Learn More

Explain project
Write a project description
Find schematic issues
Create a test plan
Simulate a circuit
Prepare for Manufacturing
Component Selection Workflow
New Subsystem Wizard
Write I2C initialization code
Generate firmware skeleton
Validated this working with U4 using this library. All GPIOs support I2S accordi...

Test Setup
Image

Image

https://cdn2.flux.ai/flux-comment-files/files/commentFileId-285354a2752d265e45229883cf3c83e49f3a0db2a2cb4702b8d7e1faff418e0f.jpeg?GoogleAccessId=graviton-mvp%40appspot.gserviceaccount.com&Expires=4863542795&Signature=ZQha%2Bn%2BCRuTp5AUfAM%2F7p1canBQ1nh0PK%2BETsIQbsyMNNX89UxD6mxfmiZvAlryDMPP67WW6FzKnZd5HaGOZuMqQxl722T%2B3IJ0DcH3LvURC97pnJ2ROE0ZKAs9X4mEWV27qE9bdNmJoz9hFd9QcO5rENkTzin226p2P4bgF%2BJCqS%2FXMearhf6c8boIBJnlPmZ3Y37Q33twyHDu8LIbhTzCGFS71mmlFmxZ46cmaSGFzbQvI7EAlpLCqKgDSZxMurpmMvdFvkKELDTiEehPCsdmhmfftC6jwr7vsqV%2BaI5Ay51iRBJgTdndNsziRrOIpchTRmocJJsOVSRZZVEsn4Q%3D%3D
2y
I2S Capture Result
Image

Image

https://cdn2.flux.ai/flux-comment-files/files/commentFileId-34eb5cefda489b5c745e9cc6a98f6b49d2fb66f8cd4a95d56d941c0d166817f3.png?GoogleAccessId=graviton-mvp%40appspot.gserviceaccount.com&Expires=4863542767&Signature=WoM7XM9rb2rL0bLR39L5wd5SQNYR8ky2ZoQz9eXiz7gTNurBMTe9WJSCpd%2FMP3UWq%2FdKhBh6mY1DPhcnZmUZoPKSsYqReNYCTrofPnRIQ2KSAAOLjLCZz%2FiVqdDcbd9cpGlRKFjsIYqKj0%2FAH8rBiw%2F4mbKEvGYTihRhm%2FUMqoLS7zDNhy68Bp%2Fq1Vfzsz95spqzZerHj5LhOBUWFmylRr24GWfYaQAP3fVd%2BvBefXSN7WPNpr7Ep8ZmVcHRTke0Tb14tFjCkCzoa6lNp50XswIJ3ndTnArTmya5MkZul8TkHSJuCk5PXdGbYWEjehA35fXYxd22kfxVYI5SbuG0lg%3D%3D
2y
Validated this working with U4 using this library. All GPIOs support I2S according to the datasheet.
2y
2
can you analyze the following test report? We're seeing some innaccuracies on th...

@copilot can you analyze the following test report? We're seeing some innaccuracies on the ADC readings of the battery voltage
Image

Image

https://cdn2.flux.ai/flux-comment-files/files/commentFileId-a9683abfd86276682a91976382e5b916b6677948125b09012cbf705a0df5e640.png?GoogleAccessId=graviton-mvp%40appspot.gserviceaccount.com&Expires=4863541688&Signature=H6pLV5uiKIqEx7PJ8NNkWmGV%2FJzP4pRillRm8VK%2Fz4JxPbzkT%2BN%2BdccdAu94Cyi4wm9JZkHXy%2FkPAW4raiSM5HubPbWS4a77tz%2FzJnkCmudY0IoQZls5KqjMoQKli73TVmvLvgT778LKZLeagSz4Q%2BBtKjreKuXnlUAv6RIol3ly2lvy%2F5l5Qgch67I%2BQsBzp%2FPK5doR81It1a9pWqpz0evBmWcb1kX2MRzWWmLGzWPXsyN1A%2BGr3eckSyW5HRtAIjEj%2FuhA0RLvy1s%2F4fpHW667wvd6ksfg7AOv0mGZdvCX2kRNlPKUVALu3NZV0WBibSBIHOhXfYwOXDnPp2xkog%3D%3D
2y
The test report contains information about the output voltage and ripple characteristics of a Buck-Boost converter under different input conditions and with a consistent load of 500mA. It also includes a measurement of the ADC reference voltage. Let's analyze the results:
  1. Buck Boost 1 output with a 2.8V source:
    • Result: 3.32 VDC mean, 250 mVpp ripple
    • Observation: The oscilloscope trace shows a significant transient spike upon load application, which settles to a steady-state after some time.
  2. Buck Boost 1 output with a 3.3V source:
    • Result: 3.28 VDC mean, 50 mVpp ripple
    • Observation: The oscilloscope trace shows a transient response with less overshoot compared to the 2.8V input condition.
  3. Buck Boost 1 output with a 4.2V source:
    • Result: 3.32 VDC mean, 150 mVpp ripple
    • Observation: The oscilloscope trace indicates a transient with more pronounced overshoot than with a 3.3V input, but less than with a 2.8V input.
  4. ADC reference voltage:
    • Result: 1.11 VDC mean, 10 mVpp ripple
    • Observation: The ADC reference voltage is stable and has a very low ripple.
Considering that the ADC reference voltage is stable and with low ripple, the inaccuracies in battery voltage readings may not stem from the reference voltage itself. However, there appear to be marked transients and varying levels of ripple on the Buck Boost output depending on the input voltage.
This could affect the accuracy of ADC readings in the following ways:
  • Transient spikes: When the ADC samples during a transient spike, this could lead to significant inaccuracies in the reading. It's important to ensure that the ADC samples once the voltage has stabilized.
  • Ripple voltage: High ripple can introduce AC noise into the ADC readings, leading to variance and inaccuracies. It may be beneficial to add filtering, such as a low-pass filter, to reduce the effect of the ripple on ADC readings.
  • Load regulation: The change in output ripple across different input voltages suggests that the Buck Boost converter's load regulation may be a factor in the observed ADC inaccuracies. If the load changes dynamically during microcontroller operation, this could further influence ADC accuracy.
In summary, the inaccuracies in ADC readings could be due to the transient spikes and the ripple present in the power supply voltage which is being measured. Recommendations to address this may include:
  • Implementing adequate filtering for the ADC input to smooth out the ripple.
  • Ensuring the ADC samples are taken during a stable period of the voltage (i.e., not during transients).
  • Checking the ADC setup, including the sampling rate and resolution, to ensure it's configured correctly for the task.
2y
1

No files yet

Documents

    Documents are markdown text files which describe project goals, capture details, or even simulation outputs.

    Assets

    Mark Wu.svg

    Mark Wu.svg

    Mark WuDefault
    FluxLogoTransparent.svg

    FluxLogoTransparent.svg

    FluxLogoTransparent

    Remote Constant Current Supply with Alerts

    Remote Constant Current Supply with Alerts thumbnail
    Remote Power Supply with built in monitoring and local sound based alarms.
    -4A CC output -2.5W Speaker Output

    Properties

    30000

    hours

    -55 ºC to 125ºC

    Pricing & Availability

    Distributor

    Qty 1

    Digi-Key

    $9.13–$12.61

    LCSC

    $4.84–$4.88

    Mouser

    $13.99

    Controls