ArduinoCraft
A mod that converts a redstone signal into Arduino's digitalWrite() and vice versa.
介绍
ArduinoCraft
A Minecraft Fabric mod that allows redstone signals to interact with an Arduino and vice versa.
Please note that this was my first mod, and I’m still learning how to make mods, so there might be some bugs or issues. If you have any issues or questions, DM me on Discord @jamicah.
This mod is not only limited to Arduino. It should work with any microcontroller that supports Serial UART communication over USB.
NOTE: This mod requires a bit of knowledge about Arduino and Serial communication. If you are new to Arduino, I recommend checking out tutorials on Arduino and Serial communication first.
Features
- Convert redstone signals to Arduino digital signals
- Convert Arduino digital/analog signals to redstone signals
TODO:
- A GUI menu for closing/opening communication with Arduino
How to use
Upload a sketch
You can choose an example sketch and upload it to your Arduino using the Arduino IDE (or whatever you use to upload ig). I’d recommend starting with the digitalRead/digitalWrite example to see how the communication works. Images for wiring are also included in the example folders.
Start
In Minecraft, place down the Arduino Block (from the redstone creative menu),
plug in your Arduino and run the command
/arduino start <arduino port> output <baudrate>. Redstone to Arduino/arduino start <arduino port> input <analog/digital> <baudrate>. Arduino to Redstone
NOTE: If you’re not on Windows, you need to use quotes around the port name. For example, on Linux or MacOS, you might use /arduino start "/dev/ttyACM0" output 9600.
Stop
You may use the command /arduino stop to close the port. The mod will also stop when you quit the game.
How does it work?
ArduinoCraft communicates with the Arduino using Serial communication over USB.
When you use input, the mod will send a signal to the Arduino everytime the block receives redstone power to write high or low to the pin.
When you use output, the mod will check the pin and send a matching redstone signal to the block.
It is highly recommend that you look into the example sketches to see how the communication works.
常见问题
ArduinoCraft 支持哪些 Minecraft 版本?
ArduinoCraft 支持 Minecraft Java 版 1.20.4–1.20.6,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
ArduinoCraft 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Jamicah 的其他作品
查看全部 →
Simple Info Display
A simple, yet customizable, mod that can display some useful infos on the HUD, similar to the one in Lunar Client.
Simple Info Display
A simple, yet customizable, mod that can display some useful infos on the HUD, similar to the one in Lunar Client.
评论
登录后评论和评分