I'd like to know how to make an encoder with the arduino. Being more precise, I wanna work with gray code. So I will have 12 serial inputs and for each input combination I'll have a different output.
That's my problem!! If you can help; me I'be very greatfull.
Summarising
What I need is:
12 serial inputs;
for each binary input code and different output;
show in a liquid cristal display a number for each output code;
for example: using 12 serial inputs I'd have a code like 010111110001 one pulse for each input. And then, every pulse together will make a code as I showed you. Reading this code made by 12 bits I wanna have a output signal, but for each different combination a new code, just like this:
You still have not told us how the pulses get to the Arduino. That is likely to be where the difficulty lies. Interpreting the bit patterns as numbers is trivial.
Okay, sorry about my poor explanation.
Yeah, it'll be like a decoder.
I'll need to have 12 digital inputs and each one will receive a binary pulse by another electronic circuit. Then it will be formed a number like 100010011101 and I want to make the arduino notice this composed binary number and proporcionate me a different output for each different number and for each different output signal it needs to show a number in a display, such as:
101001111011 = 10
111110000011 = 200
000000000001 = 01
these number are just examples
Messi_Silva:
Okay, sorry about my poor explanation.
Yeah, it'll be like a decoder.
I'll need to have 12 digital inputs and each one will receive a binary pulse by another electronic circuit. Then it will be formed a number like 100010011101 and I want to make the arduino notice this composed binary number and proporcionate me a different output for each different number and for each different output signal it needs to show a number in a display, such as:
101001111011 = 10
111110000011 = 200
000000000001 = 01
these number are just examples
How will all these 12 inputs be synchronised? And how is your arduino to know when they're all setup and ready to read?
i did some same thing for my cb radio PLL , it uses paralell bits ,, then it wil lock to the pll freq ,,
and display example 00000101 = ch 13 ..on display ,,
do you mean this way ?
:o paralel way to read things and convert it to a digit !