Jump to content

Led Wiz Pwm Bug


Spektre

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Content Provider

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.

Link to comment
Share on other sites

  • Content Provider

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.

Link to comment
Share on other sites

  • 1 month later...

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).

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

  • Content Provider

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

Link to comment
Share on other sites

  • 8 months later...

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. 

Link to comment
Share on other sites

  • Content Provider

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 years later...

Archived

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

×
  • Create New...