I'm currently using two ADC's on the tinyIOX for pressure sensors.
So in the TinyIOX settings, I have only activated the ADC channels and in MS I have just grouped ADC0-3.
Now I also want to add a ground switch for table switching (failsafe for water/meth injection).
So I guess I have to enable Digital I/O in the main TinyIOX settings.
That opens up the port settings window where I have port 1,2,3
How do ports 1,2,3 correlate to the ADC channels?
If I have grouped ADC0-3, what do I use for the first digital ground switch input?
Also, is this "Activate Low Input" circuit what I need to build for this? Does it need the pullup etc?
TinyIOX adding ground switching beside analogue - MS2
Moderators: jsmcortina, muythaibxr
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: TinyIOX adding ground switching beside analogue - MS2
The ADC channels and the digital I/Os are 2 different and independent things. The pressure sensors connect to ADC inputs on the TIOx and are transferred to the MS2 using the CAN ADC groups. The switch inputs are connected to digital inputs on the TIOx and are transferred to the MS using the ports polling. You also need to enable the digital I/Os on the TIOx and set the ports as digital inputs.
For example, you can connect your switch to PTE2 and set port 3 to 8 digital inputs with channel 1 set to PTE2 (leave the channels unassigned on all ports until you need them). On the MS2 enable ports polling, set the ports direction to 3 inputs and the ports to digital (8 signals). Then in table switching use remote port 3 bit 0 as the switch location.
And yes, use the active low input circuit as shown, including the pull up.
Jean
For example, you can connect your switch to PTE2 and set port 3 to 8 digital inputs with channel 1 set to PTE2 (leave the channels unassigned on all ports until you need them). On the MS2 enable ports polling, set the ports direction to 3 inputs and the ports to digital (8 signals). Then in table switching use remote port 3 bit 0 as the switch location.
And yes, use the active low input circuit as shown, including the pull up.
Jean
-
- Super MS/Extra'er
- Posts: 1275
- Joined: Thu Apr 07, 2005 11:23 pm
- Location: Sydney, Australia
- Contact:
Re: TinyIOX adding ground switching beside analogue - MS2
Thanks Jean - sorry for the stupid questions. It all makes sense now... this is my first IO extender project.
-
- Super MS/Extra'er
- Posts: 1275
- Joined: Thu Apr 07, 2005 11:23 pm
- Location: Sydney, Australia
- Contact:
Re: TinyIOX adding ground switching beside analogue - MS2
Works perfect, thanks Jean.
-
- Super MS/Extra'er
- Posts: 9130
- Joined: Sun May 02, 2004 6:51 am
- Location: Quebec, Canada
- Contact:
Re: TinyIOX adding ground switching beside analogue - MS2
Good to see that. And by the way, those are not stupid questions; a lot of that is not intuitive and not well documented on the TIOx side.
Jean
Jean