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

Arduino - Programmable Arduino board in Minecraft!

Started by jv110, 24 December 2014 - 09:59 PM
jv110 #1
Posted 24 December 2014 - 10:59 PM
There's no ComputerCraft buildings section in this forum, so I guess this is the most appropriate section to post this.



I searched the Internet for an Arduino programmable board in Minecraft, didn't found one, so I made it myself! :)/>/>/>

It REQUIRES Project Red Lighting because of the built-in LED (the one in port 13) is a green light, also Project Red's wires are highly reccommended as it is a lot easier to make circuits with them.

Screenshots:
SpoilerTop view


USB Port (It's actually a computer to program the board)


USB Port (Computer)'s UI


Built-in LED blinking


Digital ports


Always-on ports

Download:
https://www.dropbox.com/s/rktrz4b2t9bmbu8/Arduino.zip?dl=0

The setup() and loop() functions are there, but you can't set one port on and off on the same loop() time, so the original LED blinking example doesn't work…
The board comes with a modified version of the blink example that doesn't need setup().

The ONLY current function is digitalWrite(port, HIGH or LOW)! You can't do digitalRead(), analogRead() or pinMode()!
Every time you turn on the board (it is on when the usb port's computer is on and off when the usb port's computer is off), you need to Upload, else it will keep waiting for the computer to upload a program to the board's microcontroller. And there's a bug where whenever you quit the editing, CraftOS will be started, you need to type "startup" or "reboot".

Any feedback is welcome!
Edited on 25 December 2014 - 04:23 AM
Lyqyd #2
Posted 24 December 2014 - 11:41 PM
Your link gives a 403 Forbidden error. Please provide a correct link. A direct pastebin link to the program used on the computer would be a good idea as well.
jv110 #3
Posted 25 December 2014 - 05:17 AM
Sorry, fixed! Also, it uses multiple computers to control the entire board.
Yevano #4
Posted 27 December 2014 - 12:13 AM
This makes me want to simulate a CPU and do hardware links between computers to each act as hardware devices!.
jv110 #5
Posted 27 December 2014 - 02:36 AM
This makes me want to simulate a CPU and do hardware links between computers to each act as hardware devices!.
Lol :P/>
jv110 #6
Posted 27 December 2014 - 10:15 PM
Working on digitalRead(), analogRead() and maybe even analogWrite()! And, of course, those analog input/outputs! (Ha!) :)/>