Building a Luxafor Clone in under an hour

Posted on

After having the pleasure of using a Luxafor focus light for a few weeks, tragedy struck. My coworker, who is also my former roommate and the person who introduced the idea to our department, told me I had to pass it on to someone else to try out.

What is Luxafor? It’s a small LED device that attaches to your computer monitor. You can set it to different colors to indicate your availability to coworkers (e.g., red for “busy”, green for “available”).

Hearing this on Friday, only one thought came to mind for any sane person with too much time on their hands: “It can’t be that hard; I’ll just build my own over the weekend.”

At 20:02, I sent the following message to my coworker:

Luxafor Clone in 3 2 1

I already had all the things I thought I needed, so I began piling up electronic components on my desk.

After deciding on an Arduino Nano as my microprocessor, I grabbed a few LEDs and looked up which resistor I needed. Luckily, I had written the Ohm value on the packaging of the resistor; otherwise, I would have had to measure it myself.

At 20:28, I sent the following image along with a message to my coworker:

How much ohm is that again?

I was just joking; I tested it again to make sure past Robin hadn’t messed up or played a joke at my expense.

Inspired by the revolutionary fade example, I extended it to four LEDs (red, blue, green, yellow) and connected the circuit. I then had to assure my roommates that I wasn’t building a bomb and that I knew what I was doing.

The image depicts an Arduino Uno, which is a different model from the Arduino Nano I used in the project. However, the pin assignments for the RGB LED should still work, as both boards have similar pins.
The image depicts an Arduino Uno, which is a different model from the Arduino Nano I used in the project. However, the pin assignments for the RGB LED should still work, as both boards have similar pins.

https://www.tinkercad.com/things/7dWSkelaL4U-fantastic-wolt-wluff/editel?sharecode=0wMHIj7wv8QL4QKExafMtm0PTadmth-g0ccmTQbffYg

Then I uploaded this Arduino code (definitely not co-written by ChatGPT) to the Arduino Nano.

After that, I ChatGPT wrote the following Python code to control the device via a Tkinter GUI:

And that’s it; it works now. No bugs whatsoever. But don’t test it too hard.

At 20:53, I sent a final message to my coworker, attaching this video:

Done

Needed not even an hour

 

I’m looking forward to seeing their faces on Monday and hope I get through the security check at work. If this is my last post, you’ll know I didn’t make it.

All the code is available on Github: https://github.com/nahakiole/luxame

Update: Using the leftover time of the weekend (Wasn’t planning on doing anything anyway :D) I improved the design a bit and updated it to use a RGB led):

And here it is placed on top of the monitor in my office. (The text on the box says: “Why buy it for 30$ when you can spend hours building it.)

Discussion: Why So Few Open Design Devices?

Building this Luxafor clone got me thinking: why don’t we see more devices with open hardware and software? There are some examples, but they seem to be the exception rather than the rule. What do you think could be holding back the spread of open design?

Is it:

  • Regulatory challenges and red tape?
  • Developers’ concerns about exposing their code to criticism?
  • Potential security issues from open-sourcing device software?
  • Fierce competition making companies protective of their IP?
  • Something else entirely?

I’m curious to hear your thoughts! Let me know in the comments if you have any ideas or insights into why open hardware and software aren’t more commonplace.

Leave a Reply