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

Turning On/Off a Real Lamp Using a Redstone Switch and Arduino

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?

Want to master Microsoft Excel and take your work-from-home job prospects to the next level? Jump-start your career with our Premium A-to-Z Microsoft Excel Training Bundle from the new Gadget Hacks Shop and get lifetime access to more than 40 hours of Basic to Advanced instruction on functions, formula, tools, and more.

Buy Now (97% off) >

Other worthwhile deals to check out:


wow! That's really cool!

why dont you try to control the lamp with the ingame time? when it gets dark in the game, the lamp goes on :)

Scanning the log to turn on a, the concepts are limitless.

First thing that comes to mind is running a private server at home, and having the light come on when someone's connected that's not you...perhaps even flash for a minute.

Share Your Thoughts

  • Hot
  • Latest