Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 03:21 07 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : E100 - DIP Switch CLICK...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 06:01pm 12 May 2017
Copy link to clipboard 
Print this post

Hi folks.

I just whipped this up, cos I find I often need to have some user-set options, and rather then needing GUI controls or solder-blob pads, this little board would probably be handy. It is designed to plug directly into CLICK socket #2 on the E100, leaving Click #1 for normal use.





In your code, you use the PULLDOWN option, so that any switch that is set, can be determined with the nice IF PIN(POLE1) THEN type syntax(leaving out the '=1' bit on the end of the IF command). Note that I am using the internal pulldowns, and the DIL switch pulls the pin high for that reason. You can't use the syntax above if the pin is already one, and you pull it down with the switch.

The numbers on the silkscreen represent the pin numbers on the E100, so you can easily setup constants for those pins for checking, such as:


CONST POLE1=69
SetPin POLE1,DIN,PULLDOWN

...

IF PIN(POLE1) THEN.....


The PCB itself will be free - you only need to pay postage, which is US$2 to Australia, or US$2.50 to anywhere else on the planet. As many boards as can fit in an envelope for that same postage cost.

Anyone interested, please let me know by posting on this thread, cos then I will know if I should panellize this board and get more then the handful I was planning on.Edited by Grogster 2017-05-14
Smoke makes things work. When the smoke gets out, it stops!
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 911
Posted: 06:15pm 12 May 2017
Copy link to clipboard 
Print this post

Grogs, I would be interested in a couple.
Graeme
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 06:16pm 12 May 2017
Copy link to clipboard 
Print this post

Hi Grogs
please sign me up for this.
See PM for contact info.
Bob
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 07:48pm 12 May 2017
Copy link to clipboard 
Print this post

Okey dokey.

I will leave this thread for a few days to see if we get anyone else wanting any.

In case anyone is interested, the 5-pole DIP switches are a dime-a-dozen on Aliexpress:

Link to 5-pole DIP switches... Edited by Grogster 2017-05-14
Smoke makes things work. When the smoke gets out, it stops!
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 05:54am 13 May 2017
Copy link to clipboard 
Print this post

You have lots of room to put on 5 resistors and make it use a single analog port. :)

Microblocks. Build with logic.
 
Bill7300
Senior Member

Joined: 05/08/2014
Location: Australia
Posts: 158
Posted: 01:46pm 13 May 2017
Copy link to clipboard 
Print this post

I'll certainly take a couple, with or without Microblock's resistors suggestion.

Bill
Bill
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 09:13am 14 May 2017
Copy link to clipboard 
Print this post

I will take a few

Jman
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 10:50am 14 May 2017
Copy link to clipboard 
Print this post

Put me down for one, thanks.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024