Linear Graph Plotting Computer!
Β
This is a computer that i have created to plot linear line graphs. It works by using the equation y=mx+c where y is the y axis, x is the x-axis, m is the line gradient (how much it increments x by) and c is the y-intercept or offset value.
This means if you input an equation for a line and start the computer, itΒ calculates points on the graph and displays them on a 16 by 16 redstone lamp display.
This computer has 13 lines of code, 1.5 bytes or 3 cells of ram and a 4 bit adder and 3 bit multiplier ALU to power it.
Β
Β
INSTRUCTIONS TO OPERATE:
please refer to video at 14:19 for a full explanation and showcase as this will help visually.
First clear the display by pressing the button on the bottom left corner. this is optional as you can always plot multiple graphs if you choose.
Then go to the right side and input a gradient and a y-intercept
Then turn the computer on by hitting the on/off button labeled.
then turn the computers clock on by hitting the clock button
wait for like 10 minutes lol as it is quite slow and it should plot your graph.
Β
To Turn off β first hit the on/off switch to off and make sure the clock is still on. then wait a few seconds so the computer gets clocked again. then you can turn the clock off and input some new equations
Β
Hope you enjoy!
you can find similar redstone engineering content on my youtube channel at:
https://www.youtube.com/channel/UCpys05L9RBzPIpG87MowGsg
Β
Β
FOR THE NERDS LOL
Β
PROGRAM I USE
(kinda in my own language so u will have to interpret yourselves lol)
Β
y=mx+c
y=y coordinate
x=x coordinate
m=gradient
c=y-intercept
a=ALU register 1
b=ALU register 2
Β
Β 0) Write (0) to RAM (2)
Β 1) Write (m) to ALU register (a)
Β 2) Write (RAM 2) to ALU register (b)
Β 3) Write (a*b) to RAM (1)
Β 4) Write (RAM 1) to ALU register (a)
Β 5) Write (c) to ALU register (b)
Β 6) Write (a+b) to RAM (3)
Β 7) PLOT (X=RAM 2) (Y=RAM 3)
Β 8) Write (RAM 2) to ALU register (a)
Β 9) Write (1) to ALU register (b)
10) Write (a+b) to RAM 2 JUMP TO LINE (1)
Β
This computer has 13 lines of code, 1.5 bytes or 3 cells of ram and a 4 bit adder and 3 bit multiplier ALU to power it.
🙂
creator: https://www.youtube.com/channel/UCpys05L9RBzPIpG87MowGsg