Bassman Posted April 3, 2008 Report 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
seppoman Posted April 3, 2008 Report 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
Bassman Posted April 3, 2008 Author Report 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
Sasha Posted April 4, 2008 Report 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. ;)
Bassman Posted April 5, 2008 Author Report 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now