Computer Science Student Seeks Advice on Switches & Junctions

  • Thread starter Thread starter George Young
  • Start date Start date
  • Tags Tags
    Switches
Click For Summary

Discussion Overview

The discussion revolves around a computer science student's inquiry about designing a circuit for a simple robot that involves switching mechanisms to control multiple outputs based on microcontroller programming. The scope includes circuit design, component selection, and the use of transistors for switching.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • The student seeks advice on how to connect one wire to multiple outputs and vice versa, specifically for controlling sequences of flashing lights.
  • Some participants request more specific details about the components and the intended functionality of the circuit, suggesting that a schematic would help clarify the design.
  • One participant emphasizes the importance of identifying the logic output voltage of the microcontroller and the type of lights being used to select appropriate transistors.
  • Another participant points out that not all transistors are suitable for the application, indicating the need for careful selection based on specifications.
  • The student expresses uncertainty about how to implement the junctions in the circuit, indicating a need for further clarification on the wiring setup.
  • Participants suggest that the student should plan the circuit design before purchasing components to avoid confusion.

Areas of Agreement / Disagreement

There is no consensus on the best approach to implement the junctions or the specific components needed, as participants express differing levels of understanding and provide various suggestions.

Contextual Notes

The discussion highlights limitations in the student's understanding of circuit design and component selection, particularly regarding the specifics of the microcontroller and the types of lights being used. There are unresolved questions about the wiring and configuration of the circuit.

Who May Find This Useful

This discussion may be useful for students or hobbyists interested in robotics, circuit design, and the practical application of microcontrollers in controlling electronic components.

George Young
Messages
7
Reaction score
1
TL;DR
robot for cat
Hi, I'm a computer science student and not an electronics guy (so I may not know stuff that an electronics guy would) but I took mechanics and E&M at the college level. I've been on here before but I don't have Facebook anymore so I created a new account with my Google.

For part of my simple robot design, I want to go from one wire to one of several others depending on what I've programmed my microcontroller to do. So I have the microcontroller wired up to several switches in my design - I'm guessing I could use transistors or something for those.
The microcontroller controls which switches are on to let current flow and which ones are off.

In two places I have one wire connected to many. For the above switched wires the current only goes through one at once but I'm not sure how to connect one wire to many like that.

So my first question is about how to do the junction from one wire to many or many wires to one. The second question is about whether transistors should work for the switches I described - will they, or is there a better device or method? The third question is what I should use for three way switches - A, B, or C depending on what signal the microcontroller sends out, or similarly for two way switches.
 
Engineering news on Phys.org
This is rather difficult to make sense of. Sorry. Can you be a bit more specific in what you are switching and what you are using to control the transistor(s)? It seems you understand part of your project (or at least think you do) and yet do not understand a different yet closely related part. Have you started with a schematic of some sort that you could post?
 
  • Like
Likes   Reactions: George Young
Averagesupernova said:
This is rather difficult to make sense of. Sorry. Can you be a bit more specific in what you are switching and what you are using to control the transistor(s)? It seems you understand part of your project (or at least think you do) and yet do not understand a different yet closely related part. Have you started with a schematic of some sort that you could post?
I'm just trying to figure out what parts I need to buy. I am pretty sure I can use transistors for the switches, so I no longer need an answer to that.

I just want to make my robot able to communicate with different sequences of flashing lights, but only one at a time. So, the electricity goes through one wire and will then go through whichever wire is switched on by the microcontroller.

So, the switches takes care of which wire will let current through but I need a way to make one wire branch out to multiple. There is probably a better way to do this.
 
George Young said:
I just want to make my robot able to communicate with different sequences of flashing lights, but only one at a time. So, the electricity goes through one wire and will then go through whichever wire is switched on by the microcontroller.

What do you mean by communicate ?

You need to sit down and draw a schematic of what you think you need

You should be doing this planning BEFORE deciding which components to buy

Then people here may be able to interpret it, hopefully, and guide you to what you really need
 
  • Like
Likes   Reactions: George Young and Averagesupernova
George Young said:
I'm just trying to figure out what parts I need to buy. I am pretty sure I can use transistors for the switches, so I no longer need an answer to that.
That is like saying I'm going to write a sentence. I'm pretty sure I can use words, so I no longer need to worry which words.

In other words, not all transistors are alike.
 
  • Like
Likes   Reactions: George Young and Averagesupernova
Welcome to PF.
We need numbers to design your circuit and select the transistor switches.
What is the logic output voltage of your microcontroller, 3V or 5V?
The switches could be N-channel logic level MOSFETs, driven directly by microcontroller, all with source tied to zero volts, ground.
What type of lights? Filament or LED? AC or DC?
What is maximum light current, what voltage is required?
What light power supply is available?
All LEDs connect to + supply, but each to a different MOSFET drain through a current limiting resistor.
 
  • Like
Likes   Reactions: George Young
Here is a guess at the circuit you will need. Components not yet identified.
guess_1.png
 
  • Like
Likes   Reactions: George Young
Thanks guys. I was temporarily away. I have a design and I think I can build the circuit now. I ordered some parts yesterday but now I realize I forgot about the junction thing. I'll be back if I have more questions.

As a CPS guy my focus will be on programming the micro-controller - good experience I think.
 
I'm still not sure how to do the wire junctions.

So I have circuit elements A, B, C, ...

Electricity goes only to one at a time based on the microcontroller, and then each wire goes back to the battery.

The drawing illustrates how the microcontroller switches each of the transistors so the outgoing current only goes through one at a time.

The first junction (outgoing) is one wire to many. The second junction (current back to battery) is many to one. I'm not sure how to do either. For each junction, only one out of the many wires should be on at once though I might complicate it a little bit more.
junctions.png
 
  • #10
You have not identified your lights, your switch transistors, or your supply voltages. How and where you mount those components will make a big difference to the wiring needed.

The diagram in post #7 shows symbolically what is required. The battery or power supply terminals are +supply and –supply. Each light is represented by an LED and a limiting resistor. Each switch is an NMOS transistor.

Please identify the microcontroller module you will be using.

How do you access the external I/O ports on the controller? Is there a header? or do you solder to the PCB? Are you connecting the components with wires and solder? with screw terminals? or with a plugboard?
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 42 ·
2
Replies
42
Views
6K
Replies
24
Views
3K
Replies
37
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
21
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K