This desk lamp mechanically adjusts its brightness utilizing AI on an Arduino UNO


This desk lamp mechanically adjusts its brightness utilizing AI on an Arduino UNO

Arduino GroupJune seventh, 2024

Whenever you hear about the entire superb issues being completed with synthetic intelligence as we speak, you most likely assume that they require an enormous quantity of processing energy. And whereas that’s typically true, there are machine studying fashions that may run on the sting — together with on low-power {hardware} like microcontrollers. To show that, Shovan Mondal constructed this AI-enhanced desk lamp.

Mondal’s purpose with this challenge was to reveal that AI (particularly machine studying) will be straightforward to implement on inexpensive and environment friendly {hardware}, corresponding to an Arduino UNO Rev3 board. Right here, the ML mannequin adjusts the brightness of the lamp’s LED proportionally to the ambient gentle within the space as detected by an LDR (light-dependent resistor). The lamp physique is heavy cardstock paper. 

It might be doable to program this conduct explicitly with set thresholds or a manually created method. However a educated ML mannequin can do the identical job with out specific directions. The coaching course of is just subjecting the lamp to completely different lighting circumstances and manually adjusting the brightness to go well with them. That produces a collection of information pairs consisting of the LDR and LED brightness values. 

In CSV format, that knowledge can be utilized to coach a linear regression mannequin supplied with scikit-learn. That then produces a method and values that may reproduce the information seen within the coaching set. The output can then set the LED brightness. 

On this case, that method could be very easy, as a result of it solely has to account for 2 variables with a direct relationship. However far more complicated relationships are doable, as are ML fashions that carry out duties tougher than linear regression.



Recent Articles

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox