Automated Redstone

Automated Redstone

145k Downloads

Circuit Help

duncanwebb opened this issue ยท 11 comments

commented

What I did:

I would like to implement a couple of circuits and am having trouble.

What I would like to implement is a clock (Astable Multivibrator Circuit) https://www.electronics-tutorials.ws/sequential/seq_3.html and have set up the circuit as follows
astable

The second circuit is a Basic JK Flip-flop (or SR FLip-flop) https://www.electronics-tutorials.ws/sequential/seq_2.html as shown below
jk

What happened:

With the JK flip flop then signal just followed the input, the same happened with a SR flip flop

jkrunning640

What should have happened:

I would have expected the output to stay on when the signal has been removed.

Personal ideas, notes, suggestions, etc. (optional)

If you have another source for circuits that you tested then I'd be very pleased to know. I must be doing something wrong but can't figure out what.

Used Versions:

  • Minecraft-1.12.2
  • AutomatedRedstone-1.12.2-6.1.4
  • CD4017BE_lib-1.12.2-6.2.7
  • forge-1.12.2-14.23.5.2768-universal
commented

Your Astable Multivibrator Circuit doesn't work because it inverts the signal twice, effectively turning it back into exactly the state it started at, so nothing will ever happen.
You probably got confused by the additional Not-gate + capacitor part in the "real life" circuit diagram that only serves to delay the signal. However, first there are no capacitors here because everything is just pure logic and not electronics and it is also not required because these circuits will automatically introduce delays in orange colored connections of exactly the interval specified in the Circuit GUI.

And by the way: duplicating inputs on NOR-gates has no effect (except maybe slightly increasing the load on your CPU simulating the game), better use NOT-gates.

And for the JR-Flip Flop the circuit diagram shows NAND-gates but you've used NOR-gates and setting the clock input to constant 0 may also cause additional issues.

commented

Thanks very much, you were very fast.

I noticed that the connectors are different colours but am not sure what the colours mean. I'm by no means an expert in redstone logic or logic circuits, so apologies for messing up the gates.
I think these are better.

Can I still use not gates instead of nand gates? I think they only accept one input.

clock

notclock

sr

srrunning

Do these look correct?

commented

You may want to check out these example circuits. I already made them some time ago but somehow forgot to push them earlier.

commented

Thank you very much for the circuits, they helped me understand what is going on better.
Are the colours of the connections documented anywhere? I've been searching but not found anything.
Thanks.

commented

Yes it is documented: If you hover the cursor over the blue info icon in upper left corner of a GUI it will show a information about how to use the device. These are multi-page, click or scroll to switch pages.
The simulation mechanics was I guess, on the second page of the Circuit Designer's documentation.

commented

Interesting: Your second Not-Gate circuit (the one that didn't work), I think it actually crashed.
Because if you look closely at 15:05, the circuit tooltip says ERROR Invalid Code wich usually means that my code that should emulate the circuit crashed while trying to do so. Unfortunately I have no idea why it could have crashed because I wasn't able to reproduce this bug on my side so far.

Do you still have the log files from that play session?

commented

Alright, after following your steps precisely as in the video now I "successfully" got it to crash too.
And it actually wasn't the circuit, but the cable next to it that caused the problem: May have gotten a block update a bit too early after placement.

commented

Thanks, I'd seen the tool tips but had never noticed that you can click or scroll them, slightly unusual but neat feature.

commented

I made a video before asking you about what I was doing incorrectly, I reckon that I'll add a bit at the end with what you told me. https://youtu.be/XB2VC_rC07c If watch it and if there is something I should include pleas let me know.

commented

Yes I have the logs and I could reproduce it again. This time I placed a redstone line of 2 at the output and a lever and redstone at the input. When I moved the lever so that it is one block behind then it failed and moving it back in a direct line it worked again. I didn't notice the tooltip message. I guess that you don't need the logs any more but if you do I can post them.

commented

BTW In the last page of the circuit designer tips the spelling of numeric is written as nummeric.

Thanks four your help and all your efforts that you have put into the mod.