Jump to content

Using Core AIN J5 for Pots or Switch without AIN Module


Bassman

Recommended Posts

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.

Thanks

Keith

Pots.jpg

Switch.jpg

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...