-
Notifications
You must be signed in to change notification settings - Fork 277
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
feature: analog multiplexer #76
Comments
So it would be bidirectional, right? That wouldn't be hard, although it's not as easy as this. pins[___].current is just for reporting purposes. Modifying it does not change the circuit behavior. I'd have to get rid of the voltage source for the output (change getVoltageSourceCount()) and instead connect the output directly to the inputs, probably using stampResistor() with a small value for the "on" input and a large value for all the "off" inputs. |
Thank you for answering! Yes, it would be bidirectional, I guess. [edit] added 'bi' before 'directional' |
Anyway could it be compatible with something like |
I will update the comment above (incl. the TXT file links). Updated the original comment. If anything more is wrong, please let me know. |
(sorry for the delay) @AgainPsychoX thank you so much! However, I'm not quite sure I understood how to use a subcircuit in circuitjs, even after searching through "directions" on the falstad.com site... How to add one of your circuit into my own and use it? |
(Sorry for late response, I missed the e-mail). Here are instructions:
That's should be it. Extra notes:
Let me know if anything is unclear, I will try to help if I can. |
@AgainPsychoX Sorry I saw your answer the other day but could not find the time to implement it... Thank you so much, these are very clear explanations, that might deserve being put somewhere on the circuitjs website, so that others can find them easily... Thanks to your explanation, I could create the part in a subcircuit and use it in another circuit. Your design is not exactly what I expected (it seems there are two input, while I only have one in the part I want to simulate), but I can adapt yours easily I think. Many thanks again! |
Hello,
the currently available Multiplexer is digital-only: the output is the "High Logic Voltage" if the selected input pin's value is True.
It would be nice to have an analog option, that would basically transfer the selected input pin's voltage/current to the output.
Maybe something like this in
MultiplexerElm.java
, though I'm not sure how the internals of CircuitJS work:I hope this makes sense!
(And congrats for this excellent software!)
The text was updated successfully, but these errors were encountered: