Completely new to this! Please help!

Hey, Grumpy_Mike has given me a fair bit of advice already but I've a few wee things.

I'm attaching an analogue switch (4066) across a keyboard to control it using an arduino.

Pretty much I'd never even heard of an arduino before a few days ago. Anyway, I've bought an arduino uno, with the power lead and usb lead. I need to buy the switch and the keyboard, but what else is there for me to buy? Do I need resistors or breadboards or anything? And I'm not 100% sure how to wire it... Is it all a series circuit?

And finally... is there any way to introduce a false randomness to the timing? I have the parameters that it needs to be in between. I know true randomness is very hard to achieve, but it just needs to be in a sequence that doesn't have a pattern for the first few thousand values. The last question isn't as important because I can always just write the full code out (but that'd take agggesss!)

digitalWrite(pin, HIGH);
to press the key and
digitalWrite(pin, LOW);
to release it.

Thanks for any advice/tips in advance!

And finally... is there any way to introduce a false randomness to the timing? I have the parameters that it needs to be in between. I know true randomness is very hard to achieve, but it just needs to be in a sequence that doesn't have a pattern for the first few thousand values.

The search for randomness is a holy quest for some, the best randomness I know of can be downloaded from - http://www.random.org/ - so you need to buy an ethernet shield :slight_smile:

Check - http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1294239019 - in post #13 I show a sketch to fetch a random number from random.org.

Hope this helps,
Rob

Thanks so much for your reply. Is it possible to set limits that the random number is between using this method?

Check out the random function built into the arduino. It's not true random but I think it will serve your purpose.