This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Cloud Ninja's profile picture

Who would be interested in an emulator on the raspberry pi but would allow real world communication?

Started by Cloud Ninja, 25 July 2015 - 12:58 AM
Cloud Ninja #1
Posted 25 July 2015 - 02:58 AM
Im planning on coding (with help from some friends) to make a computercraft emulator that allows people the ability to push communication out of the ethernet ports as WELL as GPIO pins. I would love to be able to make a real life computercraft computer. It will be a lua interpreter with craftOS stuff built on top, but with python as a backend for pushing communication out to the real world. I feel like i can do it but if not enough people are interested, i will not be doing it. I may start up a kickstarter with it to raise funds for it as well.
Anfred #2
Posted 25 July 2015 - 04:02 AM
I too would like a real world CCOS. You should use lua instead of python though. I wpuld love to see an esp8266 wifi board being programmed with a cc emulator!
Cloud Ninja #3
Posted 25 July 2015 - 04:03 AM
I too would like a real world CCOS. You should use lua instead of python though. I wpuld love to see an esp8266 wifi board being programmed with a cc emulator!
Everything the user is gonna be coding in is lua, but all the real world interaction is python.
flaghacker #4
Posted 25 July 2015 - 12:13 PM
Will the user have to program real-world interaction in python? Or will something similar to the redent/moden api be backed by python?

I think trying to raise funds for something like this may be a bit too much, but it definately looks like a cool project! Here is a similar project that died not long ago though…
Anfred #5
Posted 25 July 2015 - 06:03 PM
You mentioned that you would like to control GPIOs. What board would you like to control? I highly recommend the recently released esp-12E. This new wifi board can be programmed over wifi, instead of usb, eliminating the need for drivers! It is also cheap ($9), uses lua, and there is open source software to help connect it to your project. Combining CCOS and micrcontrollers would be pretty amazing! I imagine hackaday.com would write an article about it, and possibly Make Magazine too.

The world is headed into the "internet of things" era. Yet, most boards are still programmed in C. Computer Craft could be a great way to change that. Also, one thing that would really make this new project unique, is if you had full-screen command option. Just type "fullscreen on" or "fullscreen off" to switch at the command prompt. I have been fiddling with the Mimic code (web CC emulator) to get fullscreen. I am not sure why nobody has made CC fullscreen yet.
Anfred #6
Posted 25 July 2015 - 06:52 PM
http://www.computercraft.info/forums2/index.php?/topic/23781-my-custom-lua-scripting-engineapi/page__fromsearch__1
May have a similar goal.
Cloud Ninja #7
Posted 25 July 2015 - 07:28 PM
Will the user have to program real-world interaction in python? Or will something similar to the redent/moden api be backed by python?

I think trying to raise funds for something like this may be a bit too much, but it definately looks like a cool project! Here is a similar project that died not long ago though…
The user will only be doing Lua on their end, but redstone and stuff will be pushed out from the GPIO pins (the user MAY be able to specify which pin as well!) and rednet and modem will be pushed from the Ethernet port. If its on an original gen pi A edition, it will not be able to use rednet or modem APIs due to not having ethernet.

It will have the DJ functionality, being able to play whatever music is on the pi! You'll be able to CD around the actual pi itself and find files you want. But, rm will not be able to mess with pi files, as it could be dangerous.

peripheral API will most likely NOT be a function anymore, as wrapping a monitor would be very very weird.

All in all, the user end will be using lua, but in the back end of it it will be java, and python.
クデル #8
Posted 26 July 2015 - 08:49 AM
I wrote something like this in bash a while ago, I rigged up a few transistors that disable/enable a single led.
Cloud Ninja #9
Posted 26 July 2015 - 06:19 PM
I wrote something like this in bash a while ago, I rigged up a few transistors that disable/enable a single led.
Exactly, this will allow you to do it using computercraft API's and do a ton of stuff you can do in computercraft to then interact with the real world.
cyanisaac #10
Posted 26 July 2015 - 08:38 PM
I am not sure you can do a kickstarter for it if it is a CraftOS emulator.

However you may be able to if you had it an ORIGINAL project that perhaps included a CraftOS interpreter somewhere in it.

This sounds very neat, I have little experience in python but I wish you the best of luck, and hey if ya need a little lua help come to me :P/>
H4X0RZ #11
Posted 26 July 2015 - 09:28 PM
You mentioned that you would like to control GPIOs. What board would you like to control? I highly recommend the recently released esp-12E. This new wifi board can be programmed over wifi, instead of usb, eliminating the need for drivers! It is also cheap ($9), uses lua, and there is open source software to help connect it to your project. Combining CCOS and micrcontrollers would be pretty amazing! I imagine hackaday.com would write an article about it, and possibly Make Magazine too. The world is headed into the "internet of things" era. Yet, most boards are still programmed in C. Computer Craft could be a great way to change that. Also, one thing that would really make this new project unique, is if you had full-screen command option. Just type "fullscreen on" or "fullscreen off" to switch at the command prompt. I have been fiddling with the Mimic code (web CC emulator) to get fullscreen. I am not sure why nobody has made CC fullscreen yet.

There is one emulator you can run in fullscreen. It's CCLite's single-computer version. You just have to add
love.window.setMode(1920,1080,{fullscreen=true})
at the top of love.load, and change the terminalSize stuff in the config a bit, and then you have a fullscreen emulator.

You should change the resolution though, if you don't have a 1920x1080 screen. Also, if you have one, you can use CC 60 cells high and 160 cell wide :P/>
Cloud Ninja #12
Posted 26 July 2015 - 09:45 PM
You mentioned that you would like to control GPIOs. What board would you like to control? I highly recommend the recently released esp-12E. This new wifi board can be programmed over wifi, instead of usb, eliminating the need for drivers! It is also cheap ($9), uses lua, and there is open source software to help connect it to your project. Combining CCOS and micrcontrollers would be pretty amazing! I imagine hackaday.com would write an article about it, and possibly Make Magazine too. The world is headed into the "internet of things" era. Yet, most boards are still programmed in C. Computer Craft could be a great way to change that. Also, one thing that would really make this new project unique, is if you had full-screen command option. Just type "fullscreen on" or "fullscreen off" to switch at the command prompt. I have been fiddling with the Mimic code (web CC emulator) to get fullscreen. I am not sure why nobody has made CC fullscreen yet.

There is one emulator you can run in fullscreen. It's CCLite's single-computer version. You just have to add
love.window.setMode(1920,1080,{fullscreen=true})
at the top of love.load, and change the terminalSize stuff in the config a bit, and then you have a fullscreen emulator.

You should change the resolution though, if you don't have a 1920x1080 screen. Also, if you have one, you can use CC 60 cells high and 160 cell wide :P/>
For now its just going to be a terminal based thing, very simple, but allows the user to use redstone.open(GPIO Pin, [boolean true/false])
flaghacker #13
Posted 27 July 2015 - 09:32 AM
redstone.open(GPIO Pin, [boolean true/false])

Thats not how redstone works at all :D/>. You probably meant redstone.setOutput
Cloud Ninja #14
Posted 27 July 2015 - 09:01 PM
redstone.open(GPIO Pin, [boolean true/false])

Thats not how redstone works at all :D/>. You probably meant redstone.setOutput
XD oops, was talking about rednet as i was typing that with a friend, so yes, i meant .setOutput
ironmountain #15
Posted 19 August 2015 - 04:46 AM
This sounds like a great project. I'd be willing to throw 5 or 10 dollars at it on kickstarter if you do this.
secret6timb1 #16
Posted 05 September 2015 - 09:12 PM
No ones going to kickstart a thing for computercraft…

Theres a difference between real life and minecraft.

Although I would like to see this, But honestly it shouldnt be so hard to make that you need a kickstarter… It should be actually free if you already have a raspberry pi.