Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPN/PNP/MOSFET Transistors (digital simulation) #180

Open
nt661974 opened this issue Sep 12, 2021 · 9 comments
Open

NPN/PNP/MOSFET Transistors (digital simulation) #180

nt661974 opened this issue Sep 12, 2021 · 9 comments
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features

Comments

@nt661974
Copy link

Would it be possible to add npn transistors to Wokwi? They are really useful for the creation of electronic switches.

@urish urish added the enhancement New feature or request label Sep 12, 2021
@urish
Copy link
Contributor

urish commented Sep 12, 2021

Thanks for the suggestions! Do you have a specific project in mind?

@nt661974
Copy link
Author

Sorry I found out my solution. Either ways, thanks!

@Koepel
Copy link

Koepel commented Feb 16, 2022

Now that there are relays, a transistor and a mosfet come into view, because they are almost the same as a relay.
There is no need for analog simulation.
As a start, I think it is okay to assume:

  • emitter of NPN transistor and the source of a n-channel mosfet is connected to GND.
  • emitter of PNP transistor and the source of a p-channel mosfet is connected to VCC.

A circuit where a transistor or mosfet drives a led or a relay is very common.
I was reading this topic at the arduino forum and I think that transistors and mosfets would be a good addition.

@urish
Copy link
Contributor

urish commented Feb 17, 2022

Thanks for the suggestion!

One major difference between relays and transistors are their response times (millis vs nanos). So with transistors, you'd be able to implement an oscillator that will crawl the simulation down to halt.

But I do see where they come into play when controlling LEDs and Relays. Other than the oscillator issue and the fact there's no real analog simulation, I think they shouldn't be too hard to implement.

@urish urish reopened this Feb 17, 2022
@urish urish changed the title Transistors NPN/PNP/MOSFET Transistors (digital simulation) Feb 17, 2022
@urish urish added the open for vote Vote at https://wokwi.com/features label Feb 17, 2022
@leftCoast
Copy link

This sure looks like a slippery slope to me..

@Koepel
Copy link

Koepel commented Feb 17, 2022

It will generate problems and we will have to explain that it is only a digital simulation. Could something be added to the symbol ? Perhaps a gray symbol ?

@urish
Copy link
Contributor

urish commented Feb 17, 2022

Gray symbol? What would it look like?

@Koepel
Copy link

Koepel commented Feb 17, 2022

With the two colors and the dotted circle, it shows that there is something special about it.
transistor

@urish urish mentioned this issue Jun 14, 2022
@oscar-unj
Copy link

It is very Important to add Transistors Llike BJT, FET, MOSTFETs Etc, Optocoupler, CI 555, Bare Atmega328p, OPAMs, Etc. like PROTEUS to have an Excelent Simulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features
Projects
None yet
Development

No branches or pull requests

6 participants
@urish @leftCoast @Koepel @nt661974 @oscar-unj and others