toreautomation.blogg.se

Cockroach simulator on scratch
Cockroach simulator on scratch





The upcoming plan is to use the gates to build a processor that only uses diodes, resistors, and capacitors. You can even see a smooth sine wave propagating through the LED chaser, which is typically built with ICs or transistors but in this case is built simply with LEDs, LDRs, resistors, and capacitors. The current state of the project is a working sequencer and counter. From there, with some size reductions, a Master-Slave J-K Flip Flop, similarly using NAND gates and inverters, can be built. The next step was to build a S-R latch using the NAND gates and inverters, which holds some basic memory. With the two diodes reversed and a 910 Ohm resistor removed, a NOR gate is created. Adding two 1N914 diodes and an AND gate ahead of the inverter create a two-input NAND gate. The output is initially 4.5V for logic 1 and 1.5V for logic 0. The schematic from the very first test shows the slight modifications made to incorporate light into the logic gate using a 910 Ohm, output LED, and an LED and LDR in parallel. The challenge was to reduce the number of transistors.

cockroach simulator on scratch cockroach simulator on scratch cockroach simulator on scratch

Traditional inverters – NOT gates – are already made with diodes (typically not light-emitting), resistors (typically not light-dependent), and bipolar transistors. has since built AND, NAND, OR, NOR, XOR and XNOR gates, as well as a buffer, incorporating light into every logic gate. figured out a way to create an inverting NOT gate from just one LED and two resistors (one being a photo-resistor). What’s the weirdest computer you can think of? This one’s weirder.







Cockroach simulator on scratch