Hello! I know nothing about electronics and joined this forum just to ask this question. I am a martial artist. I want to make a punching bag with multiple lights. I need each light to light up one at a time at random So I can use them as targets for striking. How hard would this be to do and how would I go about doing it. I would appreciate any help or advice on the matter.
Hi,
First, you do not need a true random number generator for this you can use a pseudo random number generator, and that is one using digital logic.
The way these are done is with a sort of digital polynomial, which can be generated with simple exclusive OR gates (XOR gates). You just wire up the gates in a certain way and the output is a random string of 1's and 0's.
Using a microcontroller is very common these days and not too hard to learn, and it makes things very easy. If there is a built in function for generating a random number you can use that as others have mentioned. If not, no big deal, you can create code that looks like exclusive OR gates (XOR) and arrange it to output a random number of any number of digits. That way would allow you to start with ANY microcontroller you want with no boot loader or anything like that, and with some simple code, start generating random numbers. You can even create a white noise generator doing it that way.
Good luck with your new makiwara board (that's the Japanese name for it although it may not have actually originated in Japan)
