I'm trying to create a project using this project as a base but I want to change it so that the rotary switch is a sound sensor, issue the code seems to be very insistent on needed those 2 extra inputs to do anything. The sound sensor Im using has a charge, ground, and then an output. any advice on how to edit the code or should i just scrap it?
We both know that a rotary switch is not and can never be a sound sensor, so what you really trying to do?
Are you planning to use the sound sensor to replace the color changing function of the rotary encoder?
just make it so instead of the rotary switch, it uses a sound sensor
Good luck.
i know but is there a way i could edit the code from the original to make it so that instead of the rotary switch its a sound sensor
If you need to ask this question, then the answer is -NO-.
Start over with a real sound sensor of your choice.
I think you're "on your own". You'll need to understand how the software works and then you can adapt it to a sound sensor and you'll have to decide what you want to do with the audio information.
The output part of the software that operates the servo and LEDs can probably be the same but the input part of the software will have to be completely different.
It looks like the switch has 4 outputs and these will be digital (on or off).
Audio sensors usually have ONE output, but audio can contain lot's more information than 4 switch outputs.
There are (at least) 4 kinds of sound sensors, and some have a combination of functions-outputs -
The most common sound sensor puts-out an analog audio signal (biased because the Arduino can't read the negative half of an AC audio waveform). It's fairly easy to extract the "loudness" and FFT or FHT libraries can extract the frequency information.
Some are binary digital that put-out a binary 1 or 0 when the sound is above or below a threshold. These always have a potentiometer to adjust the sensitivity.
Some put-out a varying DC voltage proportional to loudness.
Some put-out digital audio (usually I2C). You'll need the I2C library to read the data and again you can optionally use FFT/FHT if you want the frequency information.
OP only asks questions, does not answer them.
For the sake of discussion, I read the description of the referenced project and the function of the rotary encoder (with pushbutton on-off switch) is to scroll through the available colors on the RGB "wheel". One could, in some version of reality, use a sound sensor to select different colors based on the frequency content of the sound. We'll never know what OP's version of reality includes though.
More likely I2S.
okay okay..... hmmmm ill figure some things out then..... thank you!
the one i got i think might be bianary as a project ive found that uses the same sensors i have had it where the if it was high or low sound it did something.
aha..... hm ....
This posting is very unclear.
What is "the one"?
what is this for a project that "you have found"?
what are these for sensors thar are "the same sensors" you have had?
what is "it" that was high or low ?
And what is the "did something"?
"the one" i got are called "DAOKI".
"I found" this project that ran similar to how i wanted
The project shows that the high and low featuyre works with the "Daoki" sensors.
the "did something" is it turned servo motors
i figurted this information wasnt really important so i shorted the answer.
Of course, OP linked to a completely different project in their first post.
If the information is really irrelevant don't even post the information
What is a "DAOKI" ?
similar to how I wanted
as it is only similar what are the differencies between this project you linked to and how you want to have it?
what is "it"????
change your writing-style to clearly say the real names that clearly specify what you mean.
Example
I found this sound-location-finder-project which uses two microphone-modules with digital output
stop snap-chatting and follow these
tips how to improve your posting style
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.