Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Velleman k8055 USB board
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Velleman k8055 USB board
Hi, I have now tried to make the plug-in "eg compliant" as best as possible. Could you check and give me comments on the structure etc.
Thanks in advance, Walter
Latest version always here: Previous version:
Thanks in advance, Walter
Latest version always here: Previous version:
Last edited by krambriw on Sat Feb 13, 2010 7:17 am, edited 7 times in total.
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Well, again... my plugin for Velleman k8055 USB board
Cheers for the plugin. this is just what i needed to get my K8055 project working (an i can see it saving a hell of a lot of time for anyone using the board).
However I'm having some trouble getting it working. I've got the card set at address 0 and it can detect it being plugged in and unplugged, but beyond that nothing seems to be working, telling it to output is doing nothing. it always reads the inputs as high and the counter wont increment. Is this plugin comparable with version 2.0 of the K8055D.DLL?
However I'm having some trouble getting it working. I've got the card set at address 0 and it can detect it being plugged in and unplugged, but beyond that nothing seems to be working, telling it to output is doing nothing. it always reads the inputs as high and the counter wont increment. Is this plugin comparable with version 2.0 of the K8055D.DLL?
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Well, again... my plugin for Velleman k8055 USB board
Good to hear, I have had it running since I uploaded it and it works just fine.
Do you use the latest beta of EG?
Did you copy the K8055D_C.dll to your system32 directory? This dll is necessary
I do not know which version it is but my dll files in system32 are
K8055D.dll from 2003-06-29 338kB
K8055D_C.dll from 2006-02-19 20kB
Is the demo app from Velleman working OK???
Best regards, Walter
Do you use the latest beta of EG?
Did you copy the K8055D_C.dll to your system32 directory? This dll is necessary
I do not know which version it is but my dll files in system32 are
K8055D.dll from 2003-06-29 338kB
K8055D_C.dll from 2006-02-19 20kB
Is the demo app from Velleman working OK???
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Well, again... my plugin for Velleman k8055 USB board
You did not mention but it would help if you could specify what windows operating system you are running. I'm guessing you are having problems with Vista. If you download the zip file from the Velleman link below, copy the dll-files to the system32 folder you will see that both EG and the provided demo apps will work
http://www.velleman.be/downloads/files/ ... v3_0_2.zip
http://www.velleman.be/downloads/files/ ... v3_0_2.zip
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Well, again... my plugin for Velleman k8055 USB board
Ahh, looks like i was using a different version of the DLL's
I think i was using revision two, you have revision three there. All updated now! I wont be able to test it until Sunday unfortunately
But i'm looking forward to wiring up the house =D
cheers again for the plugin and the speedy reply. and if it doesn't work i'll be sure to add more system info next time
(i have no idea why i didn't before, very unlike me, silly me).
I think i was using revision two, you have revision three there. All updated now! I wont be able to test it until Sunday unfortunately
cheers again for the plugin and the speedy reply. and if it doesn't work i'll be sure to add more system info next time
Re: Well, again... my plugin for Velleman k8055 USB board
Woo, its all working. got my house all wired up with a networked doorbell. =D
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Well, again... my plugin for Velleman k8055 USB board
EventGhost 0.4.0 update
I have updated the plugin with the mandatory GUID entry
I have updated the plugin with the mandatory GUID entry
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Analog in and out on Velleman k8055 USB board?
How do I read and write values to the analog ports of the K8055 board?
I┬┤m trying to build a retro controller to my HTPC, therefor I would like to use a traditional volume knob connected to the analog input of the board. I want to control the system sound level volume with this.
Also I am interested in connecting analog or digital VU-meters to the analog output, who either reads data from a file or from the other analog input. Is there a easy way to accomplish this?
I am totally new on using Eventghost, so any hints on how to achieve this would be great.
BTW I have no coding skills, so please be patient if my questions are dumb...any many thanks to all you developers who do all this great work!
Kind regards
Bj├Ârn, Sweden
I┬┤m trying to build a retro controller to my HTPC, therefor I would like to use a traditional volume knob connected to the analog input of the board. I want to control the system sound level volume with this.
Also I am interested in connecting analog or digital VU-meters to the analog output, who either reads data from a file or from the other analog input. Is there a easy way to accomplish this?
I am totally new on using Eventghost, so any hints on how to achieve this would be great.
BTW I have no coding skills, so please be patient if my questions are dumb...any many thanks to all you developers who do all this great work!
Kind regards
Bj├Ârn, Sweden
Re: Velleman k8055 USB board
It is really easy. Load the K8055 plugin. Add a new action, select K8055 Set Analog Channel On. In the pop-up, select which channel (1-2) and the value you want (0-254).
Re: Velleman k8055 USB board
Thanks mickelin, but I that will only give me a static value.
The problem is that I want:
1. Get the value from the analog input and control the sound volume
2. Write values to the analog outputs, for example temperature readings from files, or from the analog input of the board.
Is there anyway to, for example read the value that is presented on the eventghost log window, and "paste" it on to other actions?
The problem is that I want:
1. Get the value from the analog input and control the sound volume
2. Write values to the analog outputs, for example temperature readings from files, or from the analog input of the board.
Is there anyway to, for example read the value that is presented on the eventghost log window, and "paste" it on to other actions?
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Velleman k8055 USB board
This is also not too difficult but since you are a beginner, you will have to struggle a bit with trying to understand python and the concept of EventGhost. At the end, you will be happy you made the effort
Below are some sample python scripts. The first reads the analogue input channel and the seconds sets an analogue output value
The scripts doesn't give you the full solution but it is a start. You need to create a macro with those scripts and some other stuff inside to accomplish the following example
Connect the volume knob to an analogue input according to Velleman documentation and configure this input to give an event for any change. When you now turn the knob, an event with the value 0-254 should be generated.
This event needs to be captured by your macro and analysed in the python script. Inside the python script you can then generate a new event that sets the volume in your HTPC accordingly (using Soundcard actions) and also sets the analogue output on the k8055 to drive your vu meter
Thinking of the above makes me believe I need to change the plugin so that values are put into the payload of the events...
Anyway, you can start to play a bit with the scripts and the knob to check that you get the events as described above and that the k8055 works as expected
Best regards, Walter
Below are some sample python scripts. The first reads the analogue input channel and the seconds sets an analogue output value
The scripts doesn't give you the full solution but it is a start. You need to create a macro with those scripts and some other stuff inside to accomplish the following example
Connect the volume knob to an analogue input according to Velleman documentation and configure this input to give an event for any change. When you now turn the knob, an event with the value 0-254 should be generated.
This event needs to be captured by your macro and analysed in the python script. Inside the python script you can then generate a new event that sets the volume in your HTPC accordingly (using Soundcard actions) and also sets the analogue output on the k8055 to drive your vu meter
Thinking of the above makes me believe I need to change the plugin so that values are put into the payload of the events...
Anyway, you can start to play a bit with the scripts and the knob to check that you get the events as described above and that the k8055 works as expected
Best regards, Walter
Code: Select all
#ReadAnalogChannel(b, ai)
#b boardnbr 0-3
#ai analog input 1-2
p = eg.plugins.k8055.ReadAnalogChannel(0,1)
print p
Code: Select all
#SetAnalogChannel(b, ao, av)
#b boardnbr 0-3
#ao analog out 1-2
#av analog value 0-254
p = eg.plugins.k8055.SetAnalogChannel(0,1,64)
print p
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Velleman k8055 USB board
Okay, here is a solution that works here when I test it
There is a new version of the plugin, you need to download and install that one first
Then you can create a setup similar to the following picture
The content of the script is as follows
When I turn the knob (potentiometer on the k8055 board) I notice the master volume change accordingly and the reading on my voltmeter connected to the analog out follows as well
Best regards, Walter
There is a new version of the plugin, you need to download and install that one first
Then you can create a setup similar to the following picture
The content of the script is as follows
Code: Select all
p = eg.plugins.k8055.ReadAnalogChannel(0,1)
q = eg.plugins.k8055.SetAnalogChannel(0,1,p)
r = float(p)/2.54
print int(r)
eg.plugins.System.SetMasterVolume(int(r), 0)
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Velleman k8055 USB board
Thank you so much Walter, that was really easy. I am more and more impressed by the capabilities of Eventghost as a home control system.
However, it seems that I can only trigger(execute) macros manually from Eventghost now.
I controlled the starting and switching of application from the digital input buttons, they worked before the update of the plug-in. Did something broke, when you updated the plug-in?
Pressing a digital button or adjusting the analog volume knob, the event shows up fine in the eventghost log, but it does not trigger/start any macro nomore.
However, it seems that I can only trigger(execute) macros manually from Eventghost now.
I controlled the starting and switching of application from the digital input buttons, they worked before the update of the plug-in. Did something broke, when you updated the plug-in?
Pressing a digital button or adjusting the analog volume knob, the event shows up fine in the eventghost log, but it does not trigger/start any macro nomore.
Re: Velleman k8055 USB board
I also wonder if it is possible to make the plug-in less sensitive to changes on the analog input, as it is for now it fluctuates between nearby values? See attached screen dump.


-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Velleman k8055 USB board
I think I changed too much. All values are now in the payload of the event which has the effect that your old events will not appear anymore. Maybe I need to change back so values from digital inputs are in the event itself as before (I think this is the problem you experience)However, it seems that I can only trigger(execute) macros manually from Eventghost now.
Do you use that the status for inputs differently when they change from 0 to 1 and from 1 to 0 or doesn't it matter for you?
If I introduce a filter, it will also have the effect that the volume knob will be a little less sensitive. Would that be acceptable?
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM