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 ZealandPosts: 9066 |
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. Smoke makes things work. When the smoke gets out, it stops! |
||||
OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 911 |
Grogs, I would be interested in a couple. Graeme |
||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
Hi Grogs please sign me up for this. See PM for contact info. Bob |
||||
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9066 |
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... Smoke makes things work. When the smoke gets out, it stops! |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
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: AustraliaPosts: 158 |
I'll certainly take a couple, with or without Microblock's resistors suggestion. Bill Bill |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
I will take a few Jman |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1805 |
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 |