[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself


View post   

File: 109 KB, 480x363, ArduinoNG.jpg [View same] [iqdb] [saucenao] [google]
27592 No.27592 [Reply] [Original]

Hey Mc/diy/vers.

I need some help for an art project I'm working on, and I'm a complete rookie when it comes to electronic. Anyway, I nned to wire a laptop to a camera which will be filming a blank panel, what I need is that when I paint a certain color, it launches a certain type of drone sound.

As an example, let's say I paint a tint of red, I want it to release a high-pitched sound. I've been told to use Max/MSP/Jitter along with an Arduino device.

Is it possible in any way?

>> No.27606

A webcam on Linux or OS X (Windows as well I'm sure) could do it without having to involve an Arduino..

>> No.27615

>>27606
This.

>> No.27645

>>27615
Then what can I use in order to translate color into sound?

>> No.27668

if this thread is still up in 8 hours ill have some source code for you. guy in my class made a camera that could detect red pixels and set off an alarm. i think it was a 16f887 he programmed it with

>> No.27669

Bump for OP. This interests me...

>> No.27671

>>27645
If you want to process an image from a webcam, and look for colour changes, processing.org is the place to start. IMHO.

Or you could check out OpenCV if you want it more advanced.

>> No.27672

>>27645
RBG information
just do a math formula that maps RGB info captured from a webcam with pitch (a midi note, maybe with pitchbend for microtonal shit). You can do this without Arduino.
Arduino can be used as a simplified hardware interface for "physical computing", meant for getting info from basic electronic circuits (most times analog circuits) and sending them to a computer for processing (a button, a potentiometer, a touch sensor, a photocell, temperature sensor...). And viceversa, from the computer to the circuit (maybe just a led array).
Obviously Arduino can do computation itself, nothing comparable to what a PC can do but interesting stuff can be done considered that it can be programmed with an high level language unlike most microcontrollers..

>> No.27680

>>27672
And after having MIDI information you can play the note on any VST synth on your PC. You are not bond to the shitty general midi player in multimedia player

>> No.27686

>>27671
well MAX-MSP + Jitter (the video part) is much more powerfull than processing
JUST SAYING

>> No.29317

>>27668
Bump for hope.

>> No.29474

lol its not that easy
better try something else first if you have at least programming knowledge look into openCV with it you can easlily extract the cam information, then use a min filter to extract the information on a scale maybe use a visual LP first

>> No.29485

>>27672
bullshit without filtering it will trigger all the time

>> No.29488

I am not sure what you are trying to do here? You are filming a blank canvas? And then while you paint it will change noises depending on the paint color?

>> No.29491

Don't listen to Anon18:44 this is totally that easy. Just have it analyze the visual data and execute it instead as audio output. When you get down to anything in a computer it's just numbers. I say don't even associate hues with sounds at all. Just let the computer output whatever happens. It would be much more interesting that way.
>>29485
What's wrong with that?

>> No.29494

>>29488
Let's just be frank he'll fail.It's a quite advanced project and without any idea of informatics he will failt

>> No.29500

>>29491
a normal webcam has a huge fucking noise because they use cheap sensor arrays(the old shit no MOSFET arrays) without preprocessing its just unusable

>> No.29502

SNR of the cam plz

>> No.30364

>>29491

>Don't listen to Anon18:44
>Anon18:44

ROFL I guess you dont understand how the reply function works... all you do is click the POST NUMBER when you want to respond to someone elses post

noob

>> No.30573

listen anon this isn't that hard

I've got the source code I wrote his year tthat could do this

but it's in vb4

basically what you want to do image side is every sample read each pixel and analyze the R the G and B component of the pixel add them all up having one variable for each pixel then divide each of your R G and B variables by the pixels in your image.

this gives you the average color value for each

you then went to have the program set that as your base , then set a threshold meaning that anytime the average of any of these components is more different then a certain percentage (that you set) then the music is triggered

music side you need to convert your RGB numbers into one number representing a continues spectrum that is into a number that represents it's frequency as visible light( there's a formula for that look it up)

you'll then take this frequency number's high and low and calibrate it to the frequency range of audio you want