Hello, I'd like to start off saying I'm not so experienced in electronics, but I have some basic knowledge of how things work. I might get some terminology wrong (please correct me if I made any mistakes)
The project that I have to work on is the following: I basically have a PCB with an 8 pin dip switch on it. The thing that needs to be done is to be able to control pin #2 to turn it on and off whenever needed.
From what I've thought, I need to connect 2 wires ( just like in the attached photo ( sorry I had to blur out the pcb because of security reasons )). The logic that I though of is that the pin will be on 1 always and when needed, the pin will be set to 0 by the arduino ( is this possible, have I though of something that can't be done?). What will I need besides the arduino? A transistor? A relay? I've searched the internet and found out that those two are the most common, but I haven't found something related to what I need to do.
If what I've thought is not correct, is there another way to do it?
Sorry about that (confidentiality stuff is annoying). I figured that only the dip switch was necessary.
Again, is this feasible? Or am I wasting my, and your time?
kessler1223:
Sorry about that (confidentiality stuff is annoying). I figured that only the dip switch was necessary.
Again, is this feasible? Or am I wasting my, and your time?
Thanks!
Something to consider is that this is a forum to help amateurs learn about electronics and micro-controllers. Those of us helping do so FoC in our own time because we want to help others. I don't know what your 'security reasons' are but I guess this is a commercial project, in which case you are asking for free help for a commercial project. Some people will refuse to help at all. My own view is more relaxed; I don't mind helping but I don't like it when people refuse to share all related information. If you won't provide the information then I can't / won't help. Maybe someone else will be more relaxed still.
If this is a commercial project I suggest you click 'report to moderator', ask them to move this to 'gigs and collaborations' and indicate how much you are willing to pay. If someone offers to help you can have a commercial agreement with them that allows you to provide whatever information they ask for in commercial confidence.
kessler1223:
Sorry about that (confidentiality stuff is annoying). I figured that only the dip switch was necessary.
Again, is this feasible? Or am I wasting my, and your time?
Well, a relay will clearly do the job. An opto-coupler most likely would also.
The point is if you can illustrate the part of the circuit where the DIP switch connects, and whether it is appropriate for your board and the one to control it to share a common ground, or even common supply, then we can advise on whether a direct connection or a single transistor (plus resistor) will do the job.
"What will I need besides the arduino? A transistor? A relay?"
Any reason you haven't tried using a transistor? Something you should be able to try your self. You can simulate a relay by just touching two wires together.
If we knew what the dipswitch was connected to it would help.
Typically they are used for address selection or configuration.
Since it's unlikely you can post the schematic, and since you have not taken any
voltage measurements on the dipswitch pins, it is really not possible to recommend
mosfets or transistors, despite the fact that they probably would work. Without
any schematic information, the only foolproof method is relays.