'Reversed' DIP Switch

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ever DIP/DIL switch that I've seen has been numbered from Left to Right...

 

 

 

...which is fine unless you are using it to set a numeric value when it feels back to front. If you use the left-hand switch for your LSB then the whole value doesn't read in a natural order; if you use the right-hand switch for the LSB then the numbers don;t really make sense.

 

So, my question, has anyone ever seen a switch numbered in the other direction?

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you want numbers, could you not just use one like this:

Image result for dip switch Image result for dip switch Image result for dip switch

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

If you want numbers, could you not just use one like this:

 

The problem with those is cost. If I want to set a number between 0 and 999 (for example) a 10-way DIP switch will cost me 69p whereas 3 BCD switches will add £4.92 to the BOM. On a commercial product, using normal rules of thumb, that adds around £13 to the list price.

#1 This forum helps those that help themselves

#2 All grounds are not created equal

#3 How have you proved that your chip is running at xxMHz?

#4 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand." - Heater's ex-boss

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

In the olden days some machines had bit0 as the msb. I suppose Joe Average doesn’t do binary, so the switch numbering is inconsequential. Just give him a table of switch numbers, on and off combinations and what they do and you should be fine.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

depending of the rest of the function, but that is what you write to a eeprom in the micro. (if nothing else any number can be programmed with a switch and LED, can even be on same IO if you are really cheap)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Brian Fairchild wrote:
If I want to set a number between 0 and 999 (for example) a 10-way DIP switch will cost me 69p
How do the legends 10..1 or 1..10 actually help in this case? Presumably if I really did want to enter 999 on the DIP switches I need to convert this to 11 1110 0111 so I would now be setting:

 

1 2 3 4 5 6 7 8 9 10

1 1 1 0 0 1 1 1 1 1

 

or with reversed legend:

 

10 9 8 7 6 5 4 3 2 1

  1 1 1 1 1 0 0 1 1 1

 

but in no sense does this really convey "999" to the user. So the legends are more of a hindrance than a help aren't they? Also as I guess they really represent 2^n more accurately it should be:

 

9 8 7 6 5 4 3 2 1 0

1 1 1 1 1 0 0 1 1 1

 

Meanwhile three BCD rotaries labelled 0..9 really would allow 9-9-9 to dialled in.

 

I suppose it depends how good you think the user is at decimal to binary conversions? ;-)

Last Edited: Fri. Feb 23, 2018 - 01:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
in no sense does this really convey "999" to the user

Indeed.

 

I suppose it depends how good you think the user is at decimal to binary conversions? 

Indeed.

 

But they must be pretty old-school if they're happy with DIP switches.

 

Nowadays, the kids  would expect BLE or NFC or suchlike - so they can do it from their phone ...

 

Yes, BLE would be expensive.

 

Not sure how NFC works out - you can get EEPROMs that can be writted direct from NFC ...

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Maybe use a non-marked switch & label the PCB as desired (if the user can view the pcb).    If there is some sort of display, maybe use a pot and/or store the adjustment (pots can slip).  Producers probably stick to the "standard" to avoid confusion when second-sourcing (set SW8 to enable bandsaw, set SW1 to enable speaker).

When in the dark remember-the future looks brighter than ever.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've done this kind of thing in the past:

 

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"Read a lot.  Write a lot."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Rotate the switch 180 degrees :=)

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

ka7ehk wrote:

Rotate the switch 180 degrees :=)

Or add a tiny mirror? smiley

 

 

But how much would a sticker cost? Or labeling on a cover. Or using one without markings (if it exists) and using silkscreen on PCB?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You're not the only one...time for a committee to "address" this issue

Image result for "dip switch"  sideways

When in the dark remember-the future looks brighter than ever.