Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors for arduino - Microphone #55

Open
matititam opened this issue Jan 16, 2021 · 5 comments
Open

Sensors for arduino - Microphone #55

matititam opened this issue Jan 16, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features

Comments

@matititam
Copy link

do we already have a microphone as the simulated element?

can we use the PC/mobile microphone to emulate real microphone on wokwi?

I would like to try adding the mic to fastLED projects!

@urish urish self-assigned this Jan 16, 2021
@urish urish added the enhancement New feature or request label Jan 16, 2021
@urish
Copy link
Contributor

urish commented Jan 16, 2021

That would be a cool idea!

One challenge is that the simulation does not always run at 100%, so if we stream real-time microphone data, it might get distorted (frequency skew). But maybe it's still better than nothing?

@TomasHubelbauer
Copy link

Could also be cool to allow selecting a pre-recorded audio file or when placing the microphone, show a UI for recording a sample to store for later replay, so that the read from the microphone/sample playback could happen in sync with the simulation.

@matititam
Copy link
Author

@TomasHubelbauer That is indeed a good idea..

@atuline
Copy link

atuline commented May 9, 2021

Even if you can't run FFT, let's say due to distortion, you can get a LOT done with volume and peak detection.

@urish urish added the open for vote Vote at https://wokwi.com/features label May 10, 2021
@urish
Copy link
Contributor

urish commented May 11, 2021

First prototype: https://wokwi.com/arduino/projects/298333297784652296

There's still no user interface element, but it should capture the audio and turn the LED on when there are peaks (also plot the waveform to the Serial Plotter)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features
Projects
None yet
Development

No branches or pull requests

4 participants