Jump to content



Photo
- - - - -

LEDWIZ clone on Arduino Pro Micro, 18 ports available


  • Please log in to reply
29 replies to this topic

#21 Benoit33

Benoit33

    Neophyte

  • Silver Supporter
  • 7 posts

  • Flag: ---------

  • Favorite Pinball: black roses

Posted 02 April 2024 - 01:48 PM

 

hello and congratulations on your work.

can we add 74hc165 to add MPU-6050 input for the accelerometer and PCA9685 for 16 output. for example

https://github.com/p...l-pinball-board


Edited by Benoit33, 02 April 2024 - 01:48 PM.


#22 lololol

lololol

    Enthusiast

  • Members
  • PipPipPip
  • 58 posts

  • Flag: France

  • Favorite Pinball: dracula

Posted 10 April 2024 - 04:37 PM

Good morning. does it work like a leswiz or kl25z? I please need to operate 10 contactors. knocker shaker gear. Does it work well as a pinscape? THANKS you know that we can't find a KL25z on sale.



#23 digitalarts

digitalarts

    Pinball Fan

  • Members
  • PipPipPipPip
  • 737 posts
  • Location:Bavaria

  • Flag: Germany

  • Favorite Pinball: Judge Dredd (have the real one); all virtual EM's

Posted 10 April 2024 - 04:46 PM

It's a "ledwiz clone" - so it works as a ledwiz
And don't forget: always power your toys through a separate PSU!

Edited by digitalarts, 10 April 2024 - 04:47 PM.


#24 lololol

lololol

    Enthusiast

  • Members
  • PipPipPip
  • 58 posts

  • Flag: France

  • Favorite Pinball: dracula

Posted 14 April 2024 - 12:24 PM

Good,

its working like kl25z NUDGE and plunger? potentiometer 10K OHm



#25 digitalarts

digitalarts

    Pinball Fan

  • Members
  • PipPipPipPip
  • 737 posts
  • Location:Bavaria

  • Flag: Germany

  • Favorite Pinball: Judge Dredd (have the real one); all virtual EM's

Posted 15 April 2024 - 02:45 PM

do you know a "ledwiz" ?

like the original, this arduino based clone has OUTPUTS. Digital PMW outputs. Nothing more, nothing less.

NO accelerator for nudging, NO analog input for plunger poti 

 

(of course, this could be done, but not with THIS script, and only with additional hardware)

 

I think what you search for, is a complete replacement for kl25z/pinscape. So search for Arnoz "Dude's Cab" hardware



#26 machineboy

machineboy

    Neophyte

  • Members
  • Pip
  • 2 posts

  • Flag: Norway

  • Favorite Pinball: Addams Family

Posted 17 April 2024 - 08:35 PM

First of all, thanks to Kodel for making this available.

 

I'm trying to convert an Arduino Leonardo to a LedWiz, but has not been successful so far. I have followed the steps here, and have previously programmed this device to act as an xbox controller so the bootloader should be ok. The pins and cpu should be the same as the pro micro, so I was hoping it would be possible to reuse this board.

 

However I get the Unknown USB device after the project has been uploaded. I'm still fairly new to Arduino programming, but if anyone has done this with a Leonardo unit I would be grateful for any more information on what to try to make it work.

 

Or should I just order a Pro Micro board and try that instead?



#27 playcade

playcade

    Hobbyist

  • Members
  • PipPip
  • 38 posts
  • Location:Argentina

  • Flag: Argentina

  • Favorite Pinball: Harlem Globetrotters on Tour, Black Knight, Seawitch

Posted 07 September 2024 - 01:46 AM

First of all, thanks to Kodel for making this available.

 

I'm trying to convert an Arduino Leonardo to a LedWiz, but has not been successful so far. I have followed the steps here, and have previously programmed this device to act as an xbox controller so the bootloader should be ok. The pins and cpu should be the same as the pro micro, so I was hoping it would be possible to reuse this board.

 

However I get the Unknown USB device after the project has been uploaded. I'm still fairly new to Arduino programming, but if anyone has done this with a Leonardo unit I would be grateful for any more information on what to try to make it work.

 

Or should I just order a Pro Micro board and try that instead?

 

First of all, thanks to Kodel for making this available.

 

I'm trying to convert an Arduino Leonardo to a LedWiz, but has not been successful so far. I have followed the steps here, and have previously programmed this device to act as an xbox controller so the bootloader should be ok. The pins and cpu should be the same as the pro micro, so I was hoping it would be possible to reuse this board.

 

However I get the Unknown USB device after the project has been uploaded. I'm still fairly new to Arduino programming, but if anyone has done this with a Leonardo unit I would be grateful for any more information on what to try to make it work.

 

Or should I just order a Pro Micro board and try that instead?

You should do all this stuff with a PRO MICRO board, and not with the Leonardo. They are similar, but if you read the whole explanation from above, we have to download the boards definitions, so that "promicro" boards appears in the arduino IDE. Normally,The pro micro boards can be programmed beeing recognised as ARDUINO LEONARDO, but for this project in particular, the board must be choosen as PRO MICRO in the arduino IDE.

 

I made it work last year. The promicro can drive up to 40mA each pin. You have to use a relays board to handle more power.

Besides this, the promicro pins are normally LOW, and go to HIGH when they are triggered.

 

The real ledwiz has the pins normally HIGH, and go LOW when triggered. But this is because of the ULN2803 CIs.... The real Ledwiz microcontroller works the same manner as the promicro (normally LOW and goes HIGH when triggered), Then, the onboard ULN2803´s INVERTS the pins states, so the pins are normally HIGH (in the screws), and goes LOW when triggered.

 

So, returning to the promicro, we can add ULN2803 to the promicro pins, not only to invert the pins states, but also to be able to drive more current, lets say 500mA each pin, instead of 40mA


Edited by playcade, 07 September 2024 - 01:51 AM.


#28 boppyman

boppyman

    Neophyte

  • Members
  • Pip
  • 6 posts

  • Flag: ---------

  • Favorite Pinball: RF2

Posted 15 December 2024 - 01:45 PM

Hi guys, can we use this for RBG buttons?
 
If so does the mean the Pro Micro would only be able to output 6 RGB buttons at a time as RBG uses 3 pins for each one?  Expanding from that could we use any other controller that has more pins?


#29 karlson18

karlson18

    Enthusiast

  • Members
  • PipPipPip
  • 94 posts

  • Flag: Germany

  • Favorite Pinball: Strikes and Spares

Posted 24 July 2025 - 02:52 PM

hi all,

try to install the code on a micro pro board. Did all he changes that needed, installed nicoHood hid-Project from https://github.com/NicoHood/HID and soft-pwm from

Found the rawhid.h in C:\Users\user\Documents\Arduino\libraries\HID-Project\src\SingleReport

Error meassage every try:

In file included from c:\users\kalle\documents\arduino\libraries\hid-project\src\hid-apis\KeyboardAPI.h:29:0,
                 from c:\users\kalle\documents\arduino\libraries\hid-project\src\hid-apis\defaultkeyboardapi.h:27,
                 from c:\Users\Kalle\Documents\Arduino\libraries\HID-Project\src\MultiReport\ImprovedKeyboard.h:30,
                 from c:\Users\Kalle\Documents\Arduino\libraries\HID-Project\src\MultiReport\ImprovedKeyboard.cpp:24:
c:\users\kalle\documents\arduino\libraries\hid-project\src\keyboardlayouts\improvedkeylayouts.h:54:21: note: #pragma message: Using default ASCII layout for keyboard modules
     #pragma message "Using default ASCII layout for keyboard modules"
 
board choos Arduino Micro:

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = " "; type =  
    Software Version = i.

Sparkfun Pro Micro:

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = " "; type =  
    Software Version = i.

 

Have anyon an advice? I'm on Adruino IDE 2.3.6.

 

greetings

Kalle


Edited by karlson18, 24 July 2025 - 03:05 PM.


#30 karlson18

karlson18

    Enthusiast

  • Members
  • PipPipPip
  • 94 posts

  • Flag: Germany

  • Favorite Pinball: Strikes and Spares

Posted 25 July 2025 - 02:17 PM

Hi again,

Can anyone help? 
I could see the board as a game controller. After making changes to the files, it is displayed as a serial device and not as Ledwiz by koen. Is that correct?
Some people have got the board working. Could someone please help?
Greetings,
Kalle