Introduction: Adjusting Laptop Brightness Via Flowstone!

Picture of Adjusting Laptop Brightness Via Flowstone!

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.

Step 1: Nircmd.exe

Picture of Nircmd.exe

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.

Step 2: Implementing in Flowstone.

Picture of Implementing in Flowstone.

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!

Step 3: Auto Brightness.

Picture of Auto Brightness.

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!


mosix (author)2016-02-01

I didn't know flowstone, many thanks!

Mjtrinihobby (author)mosix2016-02-01

Your welcome!

About This Instructable




Bio: As of April 2017 I have decided to no longer post on instructables. The fact that several of my published works have been removed without ... More »
More by Mjtrinihobby:External Light Sensor Night Light.Replacing a Toilet Tank Float Valve. How to Make Pig Feet Souse!
Add instructable to: