ComputerCraft Tutorial - Tank Liquids Monitoring System v3 (MC 1.7.10)
This system will monitor a tank behind it, and constantly send the liquid type and amount to a main computer as well as show status next to the tank. Remember that OpenPeripherals is required for this to function (addon to ComputerCraft)!
Update: I made a slight upgrade to support hysteresis (two control levels). More details about that in this video:
http://youtu.be/lspzsQ-lslE
This is an updated version of my old Liquid Monitor system, it shows status more clearly and is much easier to implement than the first version! This is the third version of it, made for 1.7.10, but it is equivalent to the updated v2 made for 1.6.4.
Link to the version for 1.6.4 (FTB Monster v.1.1.2)
http://youtu.be/G24i4Lbtau0
Link to the version for 1.5.2 (FTB Unleashed v1.1.4)
http://youtu.be/X-owrYlGCXI
Here you can study the codes before downloading:
tank latest: http://pastebin.com/XeHKVry4
No update in function, only smarter readout.
tank original: http://pastebin.com/RACyx1FQ
main: http://pastebin.com/wYPwGgpm
Detailed Instructions:
Begin with the tank computer, place it so the valve is behind it. Monitors on top and lamp on the right side. Wireless modem on the bottom side. If you want to use other sides you need to change the code! It is of course possible to only run it locally (no modem), but you need to disable the sending parts then. If you only want the computer and modem it is also possible, just disable the monitor print functions in the code.
pastebin get XeHKVry4 tank
Edit startup and type:
sleep(2)
shell.run("tank")
Next step is to change channel to send on. This also corresponds to the row on the main computer monitor. If you want to, you can change the warning level as well.
The tank computer is finished now, so place your main computer within range, it can be altered in the same way as the tank computers. But standard issue is Wireless Modem on the back and advanced monitors on top.
pastebin get wYPwGgpm main
Edit startup and type:
shell.run("main")
No sleep in the main computer, it should be up and running before the slaves. Edit the main program and "unlock" all channels you want to use. Again, they correspond to the row number on the screen. If you want to use other channels (higher than 12), you can of course do that, but you need to modify the code further down where I set the cursor on specific rows based on the channel.
Now everything works! Note that slaves only send values if they have updated. And default sleep time is always 10 seconds except for when value is changing and is between 0 and warning level.
It is really that easy! :)
---
If you like what you see, please make me aware of it in form of a like or a comment. If not, then tell me what you think I should improve. And of course, subscribe if you want to see more.
I can be found on both Twitter and Facebook as well, for video announcements and updates. They are also the preferred ways to send a non-video related question or comment. Sometimes I do things on Twitch as well, place a sub and be prepared!
http://twitter.com/therealtkh
https://www.facebook.com/therealtkh
http://www.twitch.tv/therealtkh/
http://plus.google.com/+therealtkh
Game details:
http://minecraft.net
Using vanilla launcher with Forge (10.13.1.1232)
I have more mods loaded, but the important ones for this video are:
ComputerCraft 1.65
OpenPeripheral-1.7.10-AIO-1
Railcraft_1.7.10-9.4.0.0
Music:
"Wisps of Whorls"
by Kevin MacLeod (incompetech.com)
Other Videos By TKH
Other Statistics
Minecraft Statistics For TKH
There are 9,657,296 views in 450 videos for Minecraft. His channel published over 4 days worth of content for the game, or 57.62% of the total watchable video for Minecraft on TKH's YouTube channel.