Adjusting Laptop Brightness Via Flowstone!

by Mjtrinihobby in Circuits > Software

643 Views, 3 Favorites, 0 Comments

Adjusting Laptop Brightness Via Flowstone!

temp_935705302.jpg
For an embedded automation system I'm creating, I need to adjust the screen brightness quickly via a touchscreen interface. The computer is actually a touchscreen netbook that can flip right around. I won't have access to the keyboard to press the hotkeys that alter brightness.

Read on for how I achieved this in a very diy fashion.

Nircmd.exe

temp_-334554211.jpg
This neat program allows me to easily change screen brightness via the command prompt. To use it, just download from its homepage and run nircmd.exe.

It will ask you to copy to the Windows directory and you should allow it to.

Implementing in Flowstone.

temp_-1386844271.jpg
temp_-472950188.jpg
temp_1597728520.jpg
I used a Slider in Flowstone to give a float value from 0 to 1. Using some maths I made this into an integer from 0 to 100. In the screenshots you will see the command prompt to allow nircmd to change screen brightness.

At the top of the slider the netbook screen will go fully bright. At the bottom the back light will be off. Very cool and versatile!

Auto Brightness.

temp_-1320968424.jpg
Using a labjack u3 hv, I used a photocell to allow dynamic adjustment of the screen so I don't have to manually adjust the slider.

Very cool!