02-17-2015, 06:34 PM
(This post was last modified: 02-17-2015, 06:36 PM by martin of redwall.)
(02-17-2015, 05:39 PM)The Magical Gentleman Wrote: In this case, couldn't you encode the inputs as 7-bit numbers? (90 would fit in a 7-bit value)i tried to find a way to turn binary into output but have no idea programming and binary/hexadecimal is out of my ability as i don't have any training or schooling in this area. i only have a very high education in electrical and electronic diagnostic on automotive and diesel engines. (which now a days is pretty complex) if you have a youtube video or diagram i could fallow to get an idea of how to do it that would be great. i know logic gates and simple computer components. any help is welcome thanks
You could then connect the 2-3 7-bit numbers together as a 21-bit unique value which represents the input state.
you could encode the inputs from the values 0000001 to 1011010 (1 to 90)
and you could treat no input as value 0000000
Then you can create codes like this, treated as 21 bit values:
2, 4, 90: 1011010 0000100 0000010
6, 32: 0000000 0100000 0000110
note that the numbers are pushed in from the right, so that in a 2-input combination it will be nice and neat with the leading zeroes