Hi again,
I think I'm going to go ahead and try to turn this project into something. I've not touched an Arduino before and mucking with electronics isn't something I'm terribly familiar with, so I'm sure to fumble around and make mistakes.
I think I need to get two Arduino Nanos, two terminal adapters, and a potentiometer to start with. I have a 750W power supply with clean 12v and 5v outputs that I can use for power and a pwm controllable fan that I can wire up to 'learn to drive with'. Here's an outline of the steps I think I should take to see this through.
0) Take a look at the ide/devkit with an eye for compat with my system. Download, install, and run it. Sign up on the forum. I've done this much already.
0.5) Order the 2x Arduinos Nanos + terminal adapters. I can make a trip to Fry's for the pot and some wires.
Question: Where's a good place to buy a Nano?
0.7) Run some wires to connect the psu + 1 nano + pot + fan. Run a usb cable from the nano to my pc.
Question: Should I do anything special to ensure my workstation and my experiment's psu share a common ground? I intend to plug them into the same power strip, is that commonly ground enough?
0.8 ) Make sure serial io between the IDE and the device looks good.
// Finally we get to more fun parts
1) Figure out how to generate a pwm signal. Learn to drive by controlling the fan, ramping the speed up and down with the pot. Figure out how to generate 2 pwm signals with different duty cycles at the same time. Being able to produce two signals will come in handy in step 2.
2) Figure out how to read a pwm signal. Use the first device to generate the input signals to read. Then figure out how to read two signals concurrently.
3) Write production code that samples two pwm input signals and produces a third with a duty cycle of std::min(100, in_1+ in_2). Hook that output up to the fan and debug things. Hopefully the coding/debugging part should be fairly straight forward for me, sw development is what is what I do for a living.
4) Solder the leads on the 'production' device after deciding upon connectors and wire lengths for all the inputs and outputs.
5) Package it into a small box, leaving the mini-usb port accessible.
6) Install the device up in my old gaming rig as a test to see that nothing blows up.
7) Install it into my new pc.
8 ) Edit to taste the resulting duty cycle calculation to get the fan speeds where I want them. I can't do this fine tuning earlier because the 'production' fans are busy elsewhere, they're cooling my new pc.
9) Have a beer, very important step.
10) Game on without concern for heat build up.
Any feedback or guidance on that plan would be welcome.
I've got a couple specific questions already and I'm sure I'll have piles more as I dig into the details. Right now I'm blocked on figuring out where to order the Arduino Nanos. They're not available in the store here? I see some on newegg and ebay and amazon? What's a good manufacturer for these things?
Grazie e ciao!