ajitnayak
Junior Member level 2
- Joined
- Feb 22, 2013
- Messages
- 21
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,447
4 for operation selector-> init ,manual, automatic,use defined.
Use analog for this with only 1 analog you can take all 4 swicth
USe R , 2R , 4 R, 8R, 16 R in serie, and put each button in paralell with the resistor, You can know easily what buttom is pressed just checking the bits on AD
MCP23017 I2C I/O Expander
The use i2c comunication, This means your pins will be serialed coded and decoded by software
4 for speed selector like 100,200,300,400,600in rpm using potentiometer
4 for motion control selector fw,rv,stop using potentiometer
2 for motor drive
2 for analog sensor
2 RTC pin
2 for GPS
4 for operation selector-> init ,manual, automatic,use defined.
Hello!
Just for my understanding:
I don't get it: you want to use digital inputs or a potentiometer?
In case of digital inputs, if you remove just one selection, then you can deal with 2 bits:
00 -> 100rpm
01 -> 200
10 -> 300
11 -> 600
If your really need 5 values, then you need 3 bits, and there will be 3 unused positions.
-> 3 bits
Again, I don't get it. Forward / reverse is 1 bit. And go / stop is another bit.
-> 2 bits
If it's a plain DC motor, you can drive it with a single bit. (including forward / reverse.
-> 1 bit
Is it a I2C device?
-> Ok for 4 bits
UART?
-> Ok for 2 bits
I guess you cannot have simultaneously manual and automatic. This will be 1 bit/
Init, yes, maybe. Use defined, do you mean user defined? Anyway, this is 3 bits
-> 3 bits
-> Total: 15 bits. Should be OK for 16 GPIO.
Dora.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?