Reading the Digital Computer Electronics eBook (third edition):
As some of you may know, Simon is working on building a real-life 8-bit computer from scratch, guided by Ben Eater’s tutorials (it’s a huge project that may takes months). He has also been enchanted by the idea to build the computer in a simulator as well, researching all virtual environments possible. The best simulator Simon has tried so far has been Circuitverse.org, although he did stumble upon a stack overflow error once, approximately half-way through (maybe the memory wasn’t big enough for such an elaborate circuit, Simon said). You can view Simon’s projects on Circuitverse here: https://circuitverse.org/users/7241
Link to the project that ended up having a stack overflow: https://circuitverse.org/users/7241/projects/21712
And here is a link to Simon’s new and more successful attempt to put together a SAP-1 (simple as possible) processor (work in progress), something he has been reading about in his new favourite book, the Digital Computer Electronics eBook (third edition): https://circuitverse.org/users/7241/projects/22541
Simon has also tried building an 8-bit computer in Simulator.io, but it was really difficult and time consuming:
The next hopeful candidate was the Virtual Breadboard desktop app for pc. Simon downloaded it about ten times from the Microsoft store but it somehow never arrived, most probably because our Windows version was slightly outdated but who knows.
And finally, Simon has also discovered Fritzing.org, an environment for creating your own pcbs with a real-life look. He may attempt actually making a hardcopy SAP-1 via Fritzing after he’s done with the Ben Eater project. Conclusion: sticking with Circuitverse for the time being.
Simon has been mesmerised by this book for a couple of days by now, the Digital Computer Electronics eBook (third edition). He has downloaded it online and has been reading about the so called “simple as possible” processors or the sap’s (he loves the name) one of which is like the 8-bit computer he is currently trying to build from scratch.
Parts 1 and 2 in Simon’s new series showing him attempting to build an 8-bit computer from scratch, using the materials from Ben Eater’s Complete 8-bit breadboard computer kit bundle.
Simon is learning this from Ben Eater’s playlist about how to build an 8-bit computer.
It’s all Ben Eater‘s fault! Simon is more of a software and pure math champion, but Ben Eater’s videos have sparked Simon’s interest in logic and electronics, anew. Back in mid July (yes, I know, I’m a little behind with the blog), while waiting for his Complete 8-bit breadboard computer kit bundle to arrive from the US, Simon was playing with virtual circuits that he built on two wonderful platforms: Circuitverse.org and Logic.ly. You can view Simon’s page on Circuitverse at https://circuitverse.org/users/7241
Simon’s favourite was building the Master-Slave JK Flip-Flop https://circuitverse.org/simulator/edit/20037
Simon gave me a whole lecture on the differences between Sequential and Combinational Logic: in the former, there’s a presence of a feedback loop (the output actually goes back to somewhere else in the circuit), and the latter has everything going in one direction (the inputs come in and the outputs go out).
It’s a little bit like the difference between a Feed Forward neural network where the output only depends on the input and a recurrent neural network where the output also depends on what the output was previously,
Here’s a problem with sequential logic circuits: they go crazy like this very often (confused NOR gate). That’s why most sequential logic circuits have a clock in them. A clock acts like a delay so that it won’t go crazy.
That’s the power of sequential logic: you can have the same input but a different output. This is useful for storing data: I release the input, but the data is stored. It can only be archived in sequential logic.
The delay comes in error detection (on the rising edge of the square wave).
The following circuits are buit in Logicly https://logic.ly/demo
We did two more experiments a couple days ago: Liquid Wires (creating a simple circuit using graphite and liquid glass, a sodium silicate solution) and making our own Zinc-Carbon Battery, a chemical source of electric current that relies on an oxidation-reduction (redox) reaction between manganese dioxide (MnO2) and zinc (Zn).
A redox reaction involves the transfer of electrons from one element (the reducer) to another element (the oxidizer).
Our battery is divided into two sections, separated by wadding: one section holds the oxidizer MnO2 and the other contains the reductant Zn. When the crocodile clips are connected to a diode, the circuit is closed and the reaction can begin: electrons start migrating from the zinc section to the manganese section (manganese dioxide mixed with graphite o make it a better conductor). We used ammonium chloride NH4Cl as the electrolyte.
Last week Simon suddenly unpacked his old electronics sets and completed several projects with Arduino, his old single-board friend that got him into coding a little over a year ago. Back then it was the most difficult stuff he had ever tried, his first “setups”and “draws”, his first dive into serious circuits. Now Arduino (and iCircuit) is something he does while taking breaks from the real studying/ coding. Amazing how skillful he has become in assembling the circuits, too. All those little wires. Especially considering he still isn’t an expert at tying his shoelaces.
Simon wrote a sketch in Sublime Text (a text editor) and uploaded it on to his Arduino. It didn’t work at first but he found the bug.
After he tried it during a Digisnacks group session last month Simon really wanted to have his own Lego WeDo set. The waiting seemed endless, Sinterklaas lost the parcel once and worried if it would reach Simon on time, but in the end everything worked out magically well. And even though the drag and drop programming seems to be too easy for Simon, we enjoy watching him complete the laborious projects all by himself. He didn’t use to be this dexterous with the tiny Lego pieces just a few months ago, his fine motor skills are improving by the day. In fact his piano teacher just told me exactly the same thing about his piano fingers yesterday.