Bassman Posted April 3, 2008 Report Share Posted April 3, 2008 Is it possible to connect pots and/or switches to the Core J5 (A or B) directly, without using AIN Module? Something like the two diagrams below, the Switch version would just be useful for any controller that only Min or Max was needed.ThanksKeith Quote Link to comment Share on other sites More sharing options...
seppoman Posted April 3, 2008 Report Share Posted April 3, 2008 It is possible to use J5 without AIN module, but I'm sorry to tell you that these pics are completely wrong :) you wired the pots as if they were encoders. With pots you need to connect the outer pins to Vs and Vd and the middle pin to one of the A pins.The second pic is also wrong - wired like this, one of the analog pins would be not connected to anything as long the button isn't pressed, i.e. you'd get random readings. the other pin would read Vd regardless of the switch state.I don't think it makes much sense to use J5 for "Min/Max" buttons, you could do that the normal way. If you really want to do that, use a double pole switch (that connects one pole to one of two other poles) that switches either Vd or Vs directly to one A pin.S Quote Link to comment Share on other sites More sharing options...
Bassman Posted April 3, 2008 Author Report Share Posted April 3, 2008 Thanks seppoman,I know the switch idea is probably not useful. I just wanted to get my head around the possibilities as I only want 2 pots. Now I realise how the AIN ports work. thanks again,Keith Quote Link to comment Share on other sites More sharing options...
Sasha Posted April 4, 2008 Report Share Posted April 4, 2008 If you need only 2 pots, you can connect it directly to some of J5 pins, but you need to edit main.asm to work in unmultiplexed mode and recompile the code. Of course all unused analog inputs must be connected to the ground. ;) Quote Link to comment Share on other sites More sharing options...
Bassman Posted April 5, 2008 Author Report Share Posted April 5, 2008 Thanks Sasha,Hopefully I can do that, I've seen the comments in main.asm so I think I know what to do. thanks again,Keith Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.