- Notifications
You must be signed in to change notification settings - Fork0
Designed for changing computer volume with potentiometer.
License
mguluerler/VolumeChangerArduino
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Summary: Designed for changing computer volume with potentiometer.
1) Make your Arduino connections as I show in thepictures.
2) If you use different analog input don't forget to change Arduino code.
3) In python import the project (also you can use the program with running VolumeChangerArduino.py but this is not recommended):
fromVolumeChangerArduinoimportVolumeChangerArduino
4) Assign the class object to your variable:
yourVariable=VolumeChangerArduino(port,baudrate,sleeptime)
port:Arduino port as string. (port="COM6")baudrate:Arduino baudrate as int. (baudrate=115200)sleeptime:Waiting time before passing next loop to get serial input in seconds as int. (sleeptime=0.001)
5) Run the app:
yourVariable.run()
yourVariable.useWidget(widget_latency=10,position="brb",taskbar_thick=0.03,size=0.08,transparency=1,margin=0)
widget_latency:Widget refresh rate in ms. (widget_latency=10)position:Which side of your screen? (position="brb")1st char for b:bottom, t:top;
2nd char for r:right, l:left;
3rd char for where is your taskbar? b:bottom, t:top, l:left, r:right.
taskbar_thick:Ratio of taskbar to resolution. This value should be: (taskbar_thick=0.03)If your taskbar at left or right: taskbar_thick = (taskbar width)/(width of desktop resoulution)
If your taskbar at bottom or top: taskbar_thick = (taskbar height)/(height of desktop resoulution)
size:Widget size. Source code: (size=0.08)
ifsize<=1:fontsize=math.floor(height_of_desktop_resoulution*size)else:fontsize=math.floor(size)
transparency:Widget transparency. (transparency=1)transparency must be between 0 and 1.
margin:Screen edge-widget margin in pixel. (margin=0)
1kOhmconstant resistor used|100kOhmpotentiometer used.
InDevice Manager go toPorts (COM & LPT) then find your Arduino port.
Because if single function used, it's error rises too much as shown in the picture.
About
Designed for changing computer volume with potentiometer.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.




