Header Banner
WonderHowTo Logo
WonderHowTo
Minecraft World
wonderhowto.mark.png
Gadget Hacks Next Reality Food Hacks Null Byte The Secret Yumiverse Invisiverse Macgyverisms Mind Hacks Mad Science Lock Picking Driverless

My Minecraft-Controlled Light: Turning On/Off a Real Lamp Using a Redstone Switch and Arduino

Person playing a video game while sitting at a desk with a lamp.

I've had this idea in my head for almost a year now. I knew what I wanted to do, but wasn't sure if it would work. After a long time of armchair-engineering, I decided that the best way to test my idea was with a soldering iron and a screwdriver.

Impressive? :)

Guess you're wondering how it was done.

I used an Arduino and a cheap remote-controlled outlet I found for about $15. I disassembled the remote control and connected it to the Arduino. If you want to try something similar yourself, never NEVER ever mess with the part that is connected to the power outlet. High voltage is not something you want to play with.

Anyway... the redstone lamp in the game is connected to command blocks that write to the server-log when activated. On the computer where the server is running, there is a small script that checks the logfile for the on/off events, and when it see one, it will send a message to the Arduino. The Arduino will then parse that message and send signals, emulating a button press, to the remote which will turn the lamp on or off.

So what can it be used for? I have no idea. Maybe some kind of virtual reality home automation?

Apple's iOS 26 and iPadOS 26 updates are packed with new features, and you can try them before almost everyone else. First, check Gadget Hacks' list of supported iPhone and iPad models, then follow the step-by-step guide to install the iOS/iPadOS 26 beta — no paid developer account required.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!