Author Topic: Dip switch replacement  (Read 3531 times)

0 Members and 1 Guest are viewing this topic.

Offline Zerocool5878Topic starter

  • Newbie
  • Posts: 5
Dip switch replacement
« on: September 14, 2012, 06:23:10 pm »
So my project currently uses 3 sets of 6 dip switches. Mainly because they were easy to use and it got the job done with my limited experience. However I am about ready to have my board printed and I decided that I would love to replace them with a simple 3 position switch and maybe 3 ic's?

This might be a fantasy but this is how I picture it :) each postion of the 3 position switch provides one of the 3 ic's power which in turn makes them switch each connection of the 6 connections closed.


now maybe there is another way to do it and I would love to hear whatever options are out there.

Thanks in advance
 

Offline shebu18

  • Frequent Contributor
  • **
  • Posts: 309
  • Country: ro
Re: Dip switch replacement
« Reply #1 on: September 14, 2012, 06:30:52 pm »
Detail the project a bit. You could control a multiplexer with a 3 pin dipswitch.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16281
  • Country: za
Re: Dip switch replacement
« Reply #2 on: September 14, 2012, 06:36:46 pm »
What voltage, current and what are you switching. Important to know, as this determines the resulting solutions that can be offered.
 

Offline Zerocool5878Topic starter

  • Newbie
  • Posts: 5
Re: Dip switch replacement
« Reply #3 on: September 14, 2012, 06:47:44 pm »
Detail the project a bit. You could control a multiplexer with a 3 pin dipswitch.
Basically the concept is using a 28 pin socket to program a few different types of AT chips. each postion of the switch changes the pin outs of the socket.

If a multiplexer is totally addressable I actually could use one chip with 6 inputs and 8 outputs. instead of 3 chips

What voltage, current and what are you switching. Important to know, as this determines the resulting solutions that can be offered.
5v 50mA, switching 5v, gnd, and data
 

Offline Jon Chandler

  • Frequent Contributor
  • **
  • Posts: 539
    • Throw Away PIC
Re: Dip switch replacement
« Reply #4 on: September 15, 2012, 01:16:29 am »
I was recently looking at a part by one of the IC vendors, maybe TI or NXP - a programmable DIP switch IC.  It has an I2C interface and noun-volatile memory for maybe 3 configurations or it can be programmed on the fly via I2C for any configuration needed.  I thought it was very cool but couldn't think of an application for it.  Search on DIP switch on TI and NXP and you'll probably find it.

Its intended purpose is for voltage select pins on microprocessor cores.
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Dip switch replacement
« Reply #5 on: September 15, 2012, 03:13:58 am »
It sounds like you are trying to route 6 signals to one of a maximum of 3 pins.  If so then see the attached for one idea of how to do it.

The 74HC4052 can only handle a maximum of 25mA through any of the signal pins so that could be an issue if you really need 50mA.  I don't think programming an Atmel AVR takes that much current, however.

If you use something other than the 74HC4052 then be sure to use an analog mux/demux since you need bidirectional capability.  (Digital don't have this capability.)
 

Offline Rudolfo

  • Contributor
  • Posts: 30
Re: Dip switch replacement
« Reply #6 on: September 17, 2012, 08:13:45 am »
There are smart solutions out there with little hall encoder, like the iC-MP. There can be cascade in a daisy chain for read out with two lines. Here there are some applications: http://www.ichaus.biz/appnote_magneticsensors and the data sheet http://www.ichaus.biz/MP_datasheet_en.

Enjoy your design work!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf