Hey Team, as an Arduino newbie, can I please get some help / clarification ? I want to create the following project.
-Sensor A is held in hand.
-When A is moved, fast or slow, BT connected speaker B outputs audio file at a volume correlating to speed.
i.e
A moves fast = loud audio
A moves slow = quiet audio
Am I delusional for thinking this is relatively simple ?
And, is this possible in the Arduino space for a newbie who has the time to research, and basic coding knowledge ?
Thanks / Sorry if this is barking up the wrong forum tree so to say, any thoughts and feedback appreciated.
Conceptually, fairly simple. What sensor do you think will work the way you want?
The difficulty will stem from having little to no experience coding, as well as not being familiar with the Arduino language and ecosystem.
Bottom line, this is a doable project, just don't be in a hurry.
With my limited understanding, accelerometer ? Was hoping for guidance on what direction to take, re- logical sensor choice, then will be learning to code to get basic operational requirements. Have completed basic Arduino projects, but non that require engineering and code dev.
Have completed basic Arduino projects, but non that require engineering and code dev. Understand basics of coding enough to work in AR space in unity, but very basic.
When I want to make something like that, I Google something like Arduino accelerometer. Once you know the 'name' of the sensor, plug it into the Library Manager. Picking which library when there are several is more art than science. I look for big names like Adafruit, Arduino, or Sparkfun, but I've also come to know some authors who produce excellent work. Pick one and click 'Install.' Then, click the ... menu to view example code. Find an example that is most closely aligned with what you need. Now, go through the same process for the audio amp, and then figure out how to control the volume and interface it with the accelerometer. Now merge the 3 chunks of code.
Good luck.
That sounds like an interesting project! I think it could be a lot of fun! However, please keep in mind that we are not a free design or code-writing service. We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code, then post it along with an explanation of what’s not working properly. There is also a for hire section if you want to pay for it.
Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
Not a problem, looking forward to figuring out the coding part myself. Its the only part I have [slightly] more knowledge in! Cheers for the advice and links.
If you want to explore (or get stuck on reverse kinematics and PID control), try affixing a flex sensor to a bendable object. As you wave the object, the flex sensor will change resistance. The change in resistance can represent your change in pitch. Figure out how to change pitch with changing resistance.
Instead of using and accelerometer, how about a simple tilt switch. These are switches that contain a ball bearing, or a blob of mercury (not available in all parts of the world, but the best type to use).
Then it is a simple matter of timing how long the make and break intervals are. This will be proportional to how hard it is shaken.