Jump to content

Led Wiz Pwm Bug


Spektre

Recommended Posts

Posted

This appears to be a bug in the LEDWiz implementation, but perhaps it could be fixed in DOF.

 

The LEDWiz allows 48 levels of PWM for its outputs.   Unfortunately level 48 is not 100% on.  (My guess is it is 1/48 "off", 47/48th "on"). 

 

Email to Groovy Game Gear confirmed constant on is actually level 49.

 

(I have shades of Spinal Tap in my head going to 11....) 

 

The problem with this of course is when LEDWiz devices are turned "ON" in game, they are not completely on and have the associated transient on/off noise constantly.  Protection diodes can get pelted with 100s of back EMF spikes, during a flipper hold in game.  Other toys experience the noise also.  With my contactors, if you listen closely you can hear the chattering.

 

One "solution" is to turn off PWM to the LEDWIZ but that has the negative effect of loosing all but the primary and complementary colors on LEDs.

 

Swisslizard, could you look into this and see if it is possible to end the LEDWIz a "49" when toys are supposed to be on?

 

Thanks.

Posted

Some of the documentation is written that way and that was the original intent, but there is a bug in the LEDWiz firmware.

 

0-48 are all still PWM levels with 48 being almost completely on.  Level 49 is completely on, so 48 <> 49.

Posted

How is best to fix this?  Would it be easiest just to change the profiles in the config tool (does the DOF application do range checking on the PWM value?)

  • Content Provider
Posted

Dont change anything in the configs. The value range in the configs is limited to 0-48, which is internaly scaled up to 0-255 while the conig is beeing loaded. When data is sent to a device the values are scaled down to the actual vale range of the output controller. This is the place where this peoblem has to be fixed. If I'm not completely mistaken, I only need to chamge one line of code.

Posted

Understood.

 

I'm curious when you went to the new profiles why you picked 0-48 instead of 0-255?  Compatibility with older profiles?

 

Thanks for looking into this.

  • Content Provider
Posted

Yes, the 0-48 range for the ini file has been choosen to ensure compatibility with the old ini files.

 

However, the next DOF release will allow to use the full value range from 0-255 and also the 0-48 range. 0-48 range has to be specified in deicmal writing (e.g. I48) and the full range has to be specified in hex notation (e.g. I#ff). Like that old settings still work as they should, but newer settings with a finer value range are possible as well.

  • 1 month later...
Posted

OK.. so this is why I am getting a humming noice in my cab?  it's mostly coming from my under-cab RGB's... while showing yellow, green, and purple...

 

Wait for a fix or?  

Posted

It's possible but LEDs don't normally hum even when given a PWM signal.

 

You can check if this is the cause by using the LEDWIz test tool.  Tell it to send a very slow square wave.  During the on portion of the square wave it is truly on ( no PWM).

  • Content Provider
Posted

What are your RGB LED strings connected to?  Ledwiz directly, Relays, RGB amp, Zeb booster board?

Posted

It's weird, my RGBs to my undercab  is directly hooked to the ledwiz...  I can not pull the colors purple, green, or Yellow without a humming noise coming from cab.  

 

I have used the LED tester from groovy game gear, and turning them on one by one, doesnt cause this effect only when I am running DO..

  • Content Provider
Posted

What kind of powersupply are you using to power your ledstrips?

 

Ledstrips can draw a lot of power and that can one some power supplies generate some noise when to much power is drawn.

  • Content Provider
Posted

5m LED string can draw 6A max (2 Amps per color).  Hooked up directly to LEDwiz (let's say limiting to 400mA max), the LEDwiz should be able to handle strings up to 1.2m. If you have one string going around the cab you are probably over that length

  • 8 months later...
Posted

Sorry about the old thread revive, I think I might be experiencing something along the PWM bug with my shaker motor. 

 

Its being driven by a replay thats connected to an LEDWiz output. When the shaker motor is supposed to be on the relay chatters and the shaker motor doesnt really get up to speed (sometime it doesnt even start). If I directly ground the relays drive signal the relay does not chatter and the shaker runs perfectly.

 

Again, sorry about the old thread revive. I'm trying to get this figured out and its driving me insane. 

  • Content Provider
Posted

Well, relays arent the best thing to connect to a Ledwiz output. You can never be 100% sure that there is no PWM signal on a Ledwiz output (there are quite a few things if DOF which can influence that). When there is a PWM signal, your relay will react unhappy resp. react a bit unpredicatable.

 

Yor best bet is to get rid of the relay and use some booster circuit (e.g. something with a mosfet) to drive the shaker. This will also allow for proper PWM support for the shaker.

 

Alternatively you can go over all table configs in the config tool and edit the private settings for the shaker, so the shaker is always fully on when it gets activated.

 

Merry Xmas Animated-Xmas-tree-animation.gif

and all the best

 

Tom / Swisslizard

Posted

Contactors and relays will chatter when fed a PWM signal.  In general, contactors and relays should not be powered with a PWM signal.  (Though they are often specified in the profiles).

 

1.  Make sure you are running version 2 of DOF.

 

2.  In the config tool, on the "Port Assignments" page, set the Shaker motor's MIN and MAX intensity to 48.  This should ensure the shaker motor turns completely on or off.

 

3.  Regenerate your config file and install it.

 

Alternately, you can wait for the new Advanced Config Tool to be released which allows you to shut off PWM signals on a pin by pin basis.

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...