Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: LED-Wiz USB LED and Output Control Device now available. *Blinky lights*  (Read 122583 times)

0 Members and 1 Guest are viewing this topic.

seanp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 83
  • Last login:January 05, 2015, 12:48:13 pm
  • Dreamcast / PC Mame in progress
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #200 on: December 22, 2005, 10:50:32 am »
Awesome.  The video looks great.  I've got the LED-Wiz lighting buttons, but haven't gotten motivated to do any animation stuff yet - your video may give me the impetus I need to get going!
Clones are people, two.

quarterback

  • King Of The Night Time World!
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3089
  • Last login:February 26, 2025, 12:22:43 pm
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #201 on: December 22, 2005, 11:04:25 am »
Fiber optic emitter for the side art lighting.
This will drive about 200 fibers that will come from inside the cabinet through holes on the side.  The fibers will be trimmed flush with the cabinet.

That's going to be HOT!   I've contemplated a 'star field' ceiling but I'm afraid it's one of those projects that I'll never get around to.  How much did your fiber optic setup cost?
No crap, don't put your kids in a real fridge.
-- Chad Tower

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #202 on: December 22, 2005, 01:23:08 pm »
The fiber optic emitter is a Supervision.

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #203 on: December 22, 2005, 02:48:04 pm »
That's cool.  You're a great dad.  I imagine Christmas is going to be pretty exciting.

MYX

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1527
  • Last login:September 18, 2020, 05:00:22 pm
  • Even Jesus loves Donkey Kong!
    • MYX Digital Blog
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #204 on: December 22, 2005, 03:37:43 pm »
Now THAT is a kids room. I have to imagine that if you want your kid to be highly creative, that is the kind of environment you put him in. We put a jungle theme in my sons room. He thought it was really cool when we did it. Now, I am not sure he even notices. I guess we will find out when he grows up.
M    Y    X

BLACKOUT  - Finally rewritten - http://blog.myxdigital.com/
Original BLACKOUT thread - http://forum.arcadecontrols.com/index.php?topic=48239.0

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #205 on: December 22, 2005, 10:13:05 pm »

MYX

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1527
  • Last login:September 18, 2020, 05:00:22 pm
  • Even Jesus loves Donkey Kong!
    • MYX Digital Blog
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #206 on: December 22, 2005, 10:19:03 pm »
Skycraft is great. I used to shop there while I was going to school. You can loose hours going through there. You can find everything from giger counters to diodes.
M    Y    X

BLACKOUT  - Finally rewritten - http://blog.myxdigital.com/
Original BLACKOUT thread - http://forum.arcadecontrols.com/index.php?topic=48239.0

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #207 on: December 22, 2005, 10:21:17 pm »
Are or were you in Orlando?  What school?

MYX

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1527
  • Last login:September 18, 2020, 05:00:22 pm
  • Even Jesus loves Donkey Kong!
    • MYX Digital Blog
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #208 on: December 22, 2005, 10:45:20 pm »
Full Sail. It is in WinterPark about a 10 minute drive from Skycraft.
M    Y    X

BLACKOUT  - Finally rewritten - http://blog.myxdigital.com/
Original BLACKOUT thread - http://forum.arcadecontrols.com/index.php?topic=48239.0

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #209 on: December 22, 2005, 10:48:51 pm »
Full Sail. It is in WinterPark about a 10 minute drive from Skycraft.

Yup.  Gary, the guy who owns Full Sail lives in my neighborhood.  I work about 3 miles from there by UCF.  I went to UCF after the military and like the area so I stayed.  I work for ATI.  We have a couple Full Sail guys working for us.  Full Sail has grown like crazy in the last couple years.  It has taken over the entire shopping center east of where it used to be.  Plus it still has the old facilities.

MYX

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1527
  • Last login:September 18, 2020, 05:00:22 pm
  • Even Jesus loves Donkey Kong!
    • MYX Digital Blog
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #210 on: December 22, 2005, 10:55:55 pm »
Gary Pratt?
Yup, They took out my favorite Mongolian BBQ place to build on to the school.
For as fancy as that place is, they could have left the Mongolian BBQ place and it would have fit right in. Part of their school is to learn how to make video games. They have their own arcade all set to free play. It is a way to cool off but still stay focused on the main objective.   
M    Y    X

BLACKOUT  - Finally rewritten - http://blog.myxdigital.com/
Original BLACKOUT thread - http://forum.arcadecontrols.com/index.php?topic=48239.0

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #211 on: December 22, 2005, 11:04:23 pm »
Gary Jones.

MYX

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1527
  • Last login:September 18, 2020, 05:00:22 pm
  • Even Jesus loves Donkey Kong!
    • MYX Digital Blog
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #212 on: December 22, 2005, 11:29:08 pm »
I was there 92-93. I went for sound. After I graduated I became a junkie for knowledge of sound and tech stuff. I was working at a church up till about 6 months ago. They more or less forced me to learn video editing several years ago. They needed a video about once a month. I took to it like (insert cliche here). It was everything creative I loved about sound, but visual. I am now the senior video editor for Primerica's TV station EPN.  They are part of CitiGroup.
I got a friend of mine interested in FS and he just started going there last month. This is how I heard about all the changes.

BTW I really have to thank Hunter Menning. He was the head of the studio Maintanence course at FS. He is the one who got me into electronics. I bet he would be all over this stuff. 

M    Y    X

BLACKOUT  - Finally rewritten - http://blog.myxdigital.com/
Original BLACKOUT thread - http://forum.arcadecontrols.com/index.php?topic=48239.0

markrvp

  • ARGHHHHHHHHHHHHH!!!!!!!!!! True Genius!
  • Wiki Contributor
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3353
  • Last login:September 14, 2020, 10:19:57 am
  • NFL Expert
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #213 on: December 22, 2005, 11:40:15 pm »
ENUFF!!!   Light the fiber optics on the cabinet  ;D

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #214 on: December 23, 2005, 01:28:52 am »
I've got to get the side art printed and applied first.  I'm not done with the art yet.

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #215 on: December 23, 2005, 02:15:04 am »
Sorry it has been so long since I've updated.  My grandmother passed away suddenly Sunday.  I have both control panels up and running.  I am still stuck using the basic program Randy provided and  I will have to wait patiently, as I have no clue on the programing end of things.  I will post some video of the Boston cabinet as soon as I get a chance.  I am currently setting it up in Easthampton, MA.  It's weird, because yesterday, I was in Southern Kentucky at the funeral and I live near Columbus, OH!  I'm a little road weary to say the least.  Mike, it looks freakin' awesome.  I can't wait to see more as it develops.  Sorry I can't be more help on the software end.  If you guys know anything about t.v.'s, take a look over in the monitor forum, as I am having a problem with the t.v. in the Boston cabinet.  It has the rainbow effect going on.

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #216 on: December 23, 2005, 11:55:58 pm »
mccoy,

Sorry to hear about your loss.  Hope all is well.

What mame package do you run?  With a little work I could probably get my setup running on your cabinet.  It would allow me to make the thing a little more user friendly.  I have some code that is specific to my setup that I would need to make configurable.  My setup is based on Mame32.  Not sure you could use this or not.  I think some front ends are more mame friendly and don't like mame32.

I recently setup my system to only illuminate coin acceptors that are recognized by the game.  Donkey Kong for instance doesn't register anything dropped in coin2.   I setup my input parser to look for the supported coin doors.  The random flashing routine is also specific to my setup.  I'm in the process of creating a lighting queue and lighting sequences so things like the random routine are also configurable.

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #217 on: December 23, 2005, 11:57:53 pm »
This thread has been going all over the place lately and I'm wondering if we should move off this topic so we don't pollute Randy's LED-WIZ thread.

Any thoughts from anyone?

mccoy178

  • It's hard to work with a straight jacket on
  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3127
  • Last login:September 03, 2021, 10:23:42 am
  • Go Bucks!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #218 on: December 24, 2005, 04:29:52 am »
The thread is fine I think.  Randy should make a statement in big bold letters on the first post and place all new major updates and software there.  Kind of like the mamemovie thread.  Only interested folks would then read all our stuff.  I would start a new thread about your software.  It seems to be something, that if made for universal use, would be of great interest. 

On another note, I am finally back in Ohio.  32 hours of driving in the past few days is enough to last me awhile.  I can't think straight right now, so I will respond with an intelligent thought in a day or two.  I need some sleep!

Roughy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 258
  • Last login:July 01, 2009, 09:33:20 pm
  • Easily impressed.
    • UserGlue
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #219 on: December 24, 2005, 02:34:48 pm »
I'm jumping in waaaaaaaay late here, and I apologize way in advance for any snafus I may/will make here.  I've been skimming through a bunch of this, and my interest in piqued as I'll be putting together most of my cab/cp this upcoming week and it wouldn't be too tough to make a modification now as opposed to then.

What I'm most interested in would seem to be simple to me:

All lights on while in the front end.  When the game becomes operational, only the lights that are for actual items that can be used will be lit.

Have I missed where this is/can be done?

Thanks for your patience.

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 27, 2025, 01:58:08 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #220 on: December 24, 2005, 05:22:35 pm »
Here's a little Christmas present for the folks wanting to talk to the LED-Wiz from their own programs;

I just finished a little OCX for use with the Visual languages.  Usage is simple.  Drop the control onto your main form and set the "Command" property of the control to the command you want sent to the LED-Wiz.  No more clipboard control required if you can use an OCX.

The archive includes some updated docs and a very simple demo app in VB.

Download it here

As usual. let me know if anything is really out of whack.

RandyT

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #221 on: December 24, 2005, 08:06:48 pm »
I'm jumping in waaaaaaaay late here, and I apologize way in advance for any snafus I may/will make here.
« Last Edit: December 24, 2005, 08:08:36 pm by MikeQ »

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #222 on: December 24, 2005, 08:09:47 pm »
Here's a little Christmas present for the folks wanting to talk to the LED-Wiz from their own programs;

I just finished a little OCX for use with the Visual languages.

Roughy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 258
  • Last login:July 01, 2009, 09:33:20 pm
  • Easily impressed.
    • UserGlue
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #223 on: December 24, 2005, 08:58:32 pm »
I'm jumping in waaaaaaaay late here, and I apologize way in advance for any snafus I may/will make here.

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #224 on: December 24, 2005, 10:05:49 pm »
I totally dig that--any way you'd be willing to:

a) share?
b) tell me what it "requires" to make it work?
c) tell me what you coded in?

Thanks--great stuff!

Roughy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 258
  • Last login:July 01, 2009, 09:33:20 pm
  • Easily impressed.
    • UserGlue
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #225 on: December 24, 2005, 11:50:06 pm »
Hrm...

Then, that begs the next question:

In theory, it sounds as if I should be able to run all of my LEDs through the LEDWiz and not have LEDWiz controlling anything at all.

Then, when LEDWiz gets some appropriate software that I can use, simply "turn it on" and let 'er rip and run as it's meant to, and in the meantime, everything simply lights up.

Make sense?  Worth the LEDWiz purchase risk even though it's not finalized?

Wienerdog

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 569
  • Last login:December 08, 2020, 06:28:51 am
  • If it's worth doing, it's worth overdoing
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #226 on: December 26, 2005, 11:45:54 am »
Download it here

Thanks, now I feel bad that I didn't get you anything!  I can't wait to play around with this...

Finish my cab... play with my LED-wiz... finish my cab... play with my LED-Wiz...  I can't decide.
This opinion was created from 100% post consumed information.

webgeek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:August 08, 2006, 07:05:10 pm
  • I want to build my own arcade controls!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #227 on: December 27, 2005, 10:25:53 pm »
Many thanks to Randy for all the work he has put into this. I recieved my LED Wiz from him today. I've since wired it up to an RGB LED for experimenting. Many things have worked great, but I'm having trouble when I try to really get into it via code. First, I attempted to use the clipboard capabilities from C#. My code looks something like this (note that this is all badly hacked together for testing and then hacked more to take as little room as possible in here):
Code: [Select]
for(int r = 0; r < 48; r++) {
for(int g = 0; g < 48; g++) {
for(int b = 0; b < 48; b++) {
String command = "LWZ-RGB:1," + r + "," + g + "," + b;
Clipboard.SetDataObject(command, true);
Thread.Sleep(500);
}
}
}

I'm a server-side developer, not a GUI-guy so it's possible I've hosed something with my clipboard usage but it appears to be correct. Basically, this would throw an exception at some point due to the clipboard call. I believe it choked when the LED-Wiz software was reading the clipboard at the same time. I tried various delay differences, but it never really worked properly.

Rather then get hung up here, I just re-wrote the whole thing in Java. Looks something like this:
[code]
package com.testing;

import java.awt.datatransfer.*;
import java.awt.*;

public class LedGlowieThingee implements ClipboardOwner

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 27, 2025, 01:58:08 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #228 on: December 27, 2005, 11:07:39 pm »
Ok, the first thing is the clipboard.  You can't have it when something else is using it.  Instead of waiting 500ms between sending commands to it, check the status of the clipboard (with error trapping just in case) and only send a new command if the clipboard is empty.  The resident software empties the clipboard when it finds and acts on a valid command.  Your problems should go away after that.

Also, make sure the resident software isn't running when you are playing with the OCX.  They are mutually exclusive.

On the other hand, if you can, just use the OCX and skip the clipboard.


Next problem.

The Profile commands are primarily for setting up the outputs, not turning them on and off.  If you are looking for fast animation, use the state commands. 

You can use the "profile" commands for animation, but don't try to send them at the same rate as you would a state command.  The "profile" commands send 4x the data as the "state" command does.  And when ever possible, use the commands labeled as "most efficient" in the docs. 

The individual output manipulation commands are provided for convenience and will work great for fast and simple output manipulation.  But if you want to control the states and settings of every one of the 32 outputs with one fast command, stick to the SBA and PBA commands.

Also, "0" is not a valid brightness setting.  And if you set output 1 to a level of "20", don't forget to actually turn on the output so you can see it:)

This may sound a bit odd at first, but in doing things this way, you can send a profile down to the LED-Wiz that will set up all the buttons to be specific colors (or pulse settings) and then very quickly manipulate them with the simple and fast state commands.

Let me know if any of this helps your situation.

RandyT
« Last Edit: December 27, 2005, 11:13:29 pm by RandyT »

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #229 on: December 27, 2005, 11:09:26 pm »
Many thanks to Randy for all the work he has put into this. I recieved my LED Wiz from him today. I've since wired it up to an RGB LED for experimenting. Many things have worked great, but I'm having trouble when I try to really get into it via code. First, I attempted to use the clipboard capabilities from C#. My code looks something like this (note that this is all badly hacked together for testing and then hacked more to take as little room as possible in here):
Code: [Select]
for(int r = 0; r < 48; r++) {
for(int g = 0; g < 48; g++) {
for(int b = 0; b < 48; b++) {
String command = "LWZ-RGB:1," + r + "," + g + "," + b;
Clipboard.SetDataObject(command, true);
Thread.Sleep(500);
}
}
}


I don't use c# so I can't say for sure, but under WIN32 api, you must lock access to the clipboard before setting or getting data.
« Last Edit: December 27, 2005, 11:18:11 pm by MikeQ »

webgeek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:August 08, 2006, 07:05:10 pm
  • I want to build my own arcade controls!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #230 on: December 27, 2005, 11:31:03 pm »
Thanks for all the input everyone. The clipboard problem was simply that my code wasn't respecting any other programs access to the clipboard. I was able to fix it easily enough but I like the OCX more. Now that I understand that you have to enable the output first before you can use it, things are working great :)

My new OCX code executes this first (for one RGB LED):
LWZ-SBA:7,0,0,0,1

Then I execute this:
LWZ-PBA:20,20,20,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1

This does what I expect now. Assuming I wanted to make my RGB LED from one color to another, it seems that I would be required to use profiles or am I missing something? Thanks for a great product and all the help!

Mike

webgeek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:August 08, 2006, 07:05:10 pm
  • I want to build my own arcade controls!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #231 on: December 27, 2005, 11:47:45 pm »
Doh! I take it back, at first glance, it seems to work but I'm certainly having problems still. Here is the OCX code:
Code: [Select]
LED_Wiz1.Command = "LWZ-SBA:7,0,0,0,1";
Thread.Sleep(50);

for(int r = 1; r <= 48; r++) {
for(int g = 1; g <= 48; g++) {
for(int b = 1; b <= 48; b++) {
LED_Wiz1.Command = "LWZ-PBA:" + r + "," + g + "," + b + ",1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
Thread.Sleep(500);
}
}
}
This KINDA works. Most the time, the LED has all of it's colors at the lowest setting except every couple of iterations, it will blink temporarily to the correct color and then go back to 1,1,1 (at least that's what it looks like). Changing the sleep delay has some impact but not that much and no matter what I set it to, it never works as I would expect. Anyone have any ideas with what I've got screwed up now? Thanks :)

Mike

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 27, 2025, 01:58:08 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #232 on: December 28, 2005, 12:55:20 am »
Forgive my ignorance to the language you are using, but are the integer variables r, g and b actually resolving to a string the way that is written?  And if so, are they coming through without extra spaces?

Also, by putting the thread to sleep, how is it affecting the rest of the code?  You may wish to re-write that using timers rather than stalling the thread.

RandyT

*edit*

I just knocked out a VB version of that program using the OCX and it works perfectly.  I set up the LED-Wiz command and RGB increments inside a timer with a 20ms interval.  Currently cycling through all 100,000+ color possibilities :)

*edit2*

Just modified the program to send a random number between 1 and 48 to each of the outputs at 15ms intervals.  Trying to push the OCX and the hardware.  Been working fine like this for the last 15 minutes.  Looks like 32 independently flickering candle flames. 
« Last Edit: December 28, 2005, 02:17:36 am by RandyT »

Roughy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 258
  • Last login:July 01, 2009, 09:33:20 pm
  • Easily impressed.
    • UserGlue
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #233 on: December 28, 2005, 02:21:53 am »
Stop it until you're ready to share and let me do what I want via a GUI front end.

I want this damn thing so bad and hate you all.

(seriously, though... keep up the good work!)

[Edit]
Oh, and ummm... I'm kind of a design/usability guy.  I'm happy as hell to really help with a GUI for this type of thing.
« Last Edit: December 28, 2005, 02:23:39 am by Roughy »

webgeek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:August 08, 2006, 07:05:10 pm
  • I want to build my own arcade controls!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #234 on: December 28, 2005, 07:38:01 am »
Gah! I'm still not having any luck at all. I re-wrote the OCX program a bit to use a timer instead of pausing the event thread. Still no go, the effect is the same. I then coded it up so I can actually flag which commands appeared to work and which didn't. Currently, it sends this command initially:

LWZ-SBA:7,0,0,0,2

And then when you push the "start" button, it kicks off the timer and starts sending random values (1-48) for the first three inputs. I have another button that I push to flag a command as one that appeared to work. This let me generate a list of good commands and bad commands. One sample run looks like this:

Good Commands
5. LWZ-PBA:3,34,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
11. LWZ-PBA:27,48,26,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
16. LWZ-PBA:44,40,36,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
26. LWZ-PBA:20,45,38,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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,1,1,1,1,1,1,1
29. LWZ-PBA:35,6,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
30. LWZ-PBA:44,31,23,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
31. LWZ-PBA:15,48,20,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
32. LWZ-PBA:40,1,38,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
33. LWZ-PBA:27,17,33,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
34. LWZ-PBA:7,38,41,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
35. LWZ-PBA:17,14,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
37. LWZ-PBA:46,1,43,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
38. LWZ-PBA:19,21,19,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
39. LWZ-PBA:39,39,35,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
40. LWZ-PBA:19,25,31,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
42. LWZ-PBA:45,15,37,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
43. LWZ-PBA:27,20,21,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1

The number to the left is what order the command was attempted. No, that number isn't being sent to the OCX. To make things more interesting, I went ahead and wrote another program that only sends commands that worked before and were flagged as such. No luck there either. The success rate was about the same. It doesnt appear that the specific values have any effect at all, it just sometimes works but usually doesn't.

BTW: This program is written in C# with .NET 1.1. Personally, I hate VB, but if that's what I have to use, so be it.

Randy, are you using VB.NET for your code? And if so, what version? I'm wondering if the problem occurs when .NET wrappers the ActiveX control...

Thanks!

Mike

[Edit]
Just noticed the VBP file under the OCX folder. I've gone ahead and let Visual Studio migrate it to .NET 1.1 automatically. Same problem. The PBA commands sometimes work and sometimes don't, just as before. Looks like the wrappering .NET uses for the OCX might be the problem. Sadly, I'm very inexperienced in this regard as I'm primarily a server-side developer (and not even in .NET ;)). Looks like it's back to the clipboard for me unless someone can shine some light on this. Thanks!
« Last Edit: December 28, 2005, 07:50:17 am by webgeek »

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 27, 2025, 01:58:08 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #235 on: December 28, 2005, 09:21:43 am »

Sorry Mike, I'm not sure what to tell you. 

I'm using VB6 and that little 10 min. program I wrote to approximate your code has been running without a hiccup for the last 7 hours.

Based on your numbers, it looks like 1 out of every 5 commands makes it through.  Why that is, I don't know.  Just for kicks, try the same program with a 5x delay from what you tested at last.  Any better success rate?  That shouldn't be necessary, but it might help to track down what the problem is.

BTW, I have heard that .NET doesn't do very well at dealing with OCX's or automatically porting code from VB6.  There might be solutions out there on the web, but I'm not a .NET person, nor do I expect to become one soon.

RandyT

webgeek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:August 08, 2006, 07:05:10 pm
  • I want to build my own arcade controls!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #236 on: December 28, 2005, 09:37:23 am »
Well crap :(
I'm having no luck with the clipboard program either. Java can monitor when a message it put on the clipboard has been removed. I've got the program up and running so it does that properly. I can watch the LED Wiz control panel pull the commands from the clipboard properly and I still get intermittant results with the LED. I'm starting to think hardware problem of some sort...

As I can't get it to work properly in any language is there a way you can run one of these tester programs on your machine to see if it works? I can provide a tiny little .NET exe easily enough... I want to see if it's something on my machine (WinXP Pro) or .NET in general. You just need to have the framework installed and an RGB LED (or just three seperate LEDs) set up starting at output 1. Or I can provide a Java version for the command line as well?

Also, are you willing to provide the source-code for the OCX? I'd be more then willing to port it into .NET and/or Java directly? Once it's in .NET, it can be used with any of the .NET languages, which is a real plus. Thanks!

Mike

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 27, 2025, 01:58:08 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #237 on: December 28, 2005, 09:50:22 am »

Are you running the LED-Wiz through a hub? It may not like that depending on the hub being used.

Maybe we should take this to email, unless someone else wants to assist in troubleshooting.

RandyT


webgeek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 115
  • Last login:August 08, 2006, 07:05:10 pm
  • I want to build my own arcade controls!
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #238 on: December 28, 2005, 10:06:47 am »
Email it is. Thanks for all the help!

Mike

P.S. MikeQ: when you get your library finished, will you post it online?

MikeQ

  • Guest
  • Trade Count: (0)
Re: So, it's blinky lights you like, eh? - ALMOST READY! LEDWiz
« Reply #239 on: December 28, 2005, 10:10:07 am »
I'm running through a hub and have no problems doing so.

Have you tried using standard monochromatic LED's and not RGB ones?