Jump to content



Photo
* * * * * 3 votes

LEDWIZ Clone on Arduino MEGA 2560 Rev.3


  • Please log in to reply
39 replies to this topic

#21 dsasa008

dsasa008

    Hobbyist

  • Members
  • PipPip
  • 43 posts
  • Location:Ottawa, ON

  • Flag: Canada

  • Favorite Pinball: Too many to list

Posted 23 September 2014 - 02:18 PM

Yes, it is empty. It would be great to have it running again... I've successsfully flashed my Arduino Uno, and got it as an USB input device. Is there a way that someone can explain to me how to get input and output signals and what do ID changes are for? I am mainly doing this beause I want to connect the shaker motor to my cab.

 

Any help will be appreciated!


Edited by dsasa008, 23 September 2014 - 03:14 PM.


#22 cyclemat

cyclemat

    Hobbyist

  • Members
  • PipPip
  • 23 posts

  • Flag: Germany

  • Favorite Pinball: Terminator

  • PS3 Gamer Tag: cyclemat
  • 360 Gamer Tag: cyclemat

Posted 14 October 2014 - 03:05 PM

the Id hange is for the LEDWIZ ID. when you use a orginal Ledwiz with the ID1 your Arduino must be have the 2

 

 

 

mean you mapping the input and outputs ? that must be made in the pinmap.h then compile and flash it.

 

when you mean how to connect buttons  GND and Digital Pin


UPDAAAAAAAAAAAAAAAAAAAAAAAAATE

14.10.14



#23 cyclemat

cyclemat

    Hobbyist

  • Members
  • PipPip
  • 23 posts

  • Flag: Germany

  • Favorite Pinball: Terminator

  • PS3 Gamer Tag: cyclemat
  • 360 Gamer Tag: cyclemat

Posted 11 October 2015 - 07:30 PM

https://onedrive.liv...hint=folder,pdf


Edited by cyclemat, 11 October 2015 - 07:30 PM.


#24 jreising326

jreising326

    Enthusiast

  • Members
  • PipPipPip
  • 73 posts

  • Flag: United States of America

  • Favorite Pinball: Firepower

Posted 06 November 2015 - 11:20 PM

Hi Folks,

 

I purchased a Mega 2560 off ebay and a USBasp but can't seem to get the firmware to burn.  I haven't used an Arduino before so that's part of the problem.  However after reading a bunch online it appears the Arduino clone I have is using the CH340 chip for USB to serial conversion, where an official Arduino Mega 2560 either uses "FTDI".  Is there a different set of firmware I can build for this Mega clone or do I need to order another Arduino with the proper chipsets?

 

I thought I bricked this one, but I've at least learned enough now about avrdude, flip, the arduino IDE to at least recover it as an Arduino.  The problem I have is once I flash it either times out or fails to be recognized as an LEDwiz in device manager.

 

Thanks in advance!

 

Joe



#25 cyclemat

cyclemat

    Hobbyist

  • Members
  • PipPip
  • 23 posts

  • Flag: Germany

  • Favorite Pinball: Terminator

  • PS3 Gamer Tag: cyclemat
  • 360 Gamer Tag: cyclemat

Posted 20 December 2015 - 08:54 PM

the MEga 2560 hat in Original A Mega 16u2 or Mega 8u2 chip as USB2Serial Converter all other clones with FTDI or F....ing china chips cant be used they are not writeable when you need help you find me on skype M.A.I.K



#26 Baronir2d2

Baronir2d2

    Enthusiast

  • Members
  • PipPipPip
  • 52 posts

  • Flag: Brazil

  • Favorite Pinball: Family addams

  • 360 Gamer Tag: Baronimg

Posted 07 January 2016 - 11:27 AM

Hello, excuse my lack of information .... I'm really trying to do my LWclone work in my cab.
I bought an Arduino Mega 2560 R3 and USBasp v2.0, used the .bat file to the main flasher chip. When I did this I had a mistake with FUSE but it looks like it worked perfectly, because then he asked me flasher the second chip with the file "16u2.hex".
I did not need to use the USBasp, I believe that my Arduino is genuine, what I did was connect the Arduino into DFU mode and recorded the file "... 16u2.hex" successfully using the FLIP software.
I'm believing that worked because along with LWclone2 configuration files came a file to change the LWclone ID, this file is recognizing my Arduino as a LEDWIZ ID 4, and I can perfectly modify any other ID from ID-1 and ID-16.
The program LEDblink my Arduino is also recognized as ledwiz ID-4.
Now I need to test the hardware to see if I really managed to create the LWclone in my Arduino Mega 2560.
That is where my biggest questions:
I use the Future Pinball and BAM, I add LWclone to be able to control the flasher LEDs and conctators and engine shaking, but still could not understand what pinnout the Arduino x ledwiz, ie which Arduino pin refers to which output of ledwiz.
I know I have to create a power driver to control contactors and motor, initially will make using shield relays, then I will use drive with Mosfets, but so I can continue I need to understand how to send command to the LWclone and which Arduino is output if the actual outputs of ledwiz.
I'm seeing the lists of pinmap.h who are here on the forum, do not understand how I edit and I upload to the Arduino.
Can you help me?
I'm really lost it, there is not much information about the lwclone, that there'm trying to understand.

Edited by Baronir2d2, 07 January 2016 - 11:32 AM.


#27 cyclemat

cyclemat

    Hobbyist

  • Members
  • PipPip
  • 23 posts

  • Flag: Germany

  • Favorite Pinball: Terminator

  • PS3 Gamer Tag: cyclemat
  • 360 Gamer Tag: cyclemat

Posted 07 January 2016 - 06:49 PM

For edit the config you must edit the pinmap.h in the source code and compile it. In the normal source
the upper row pin 2 - 21 are the controlls

the duble row pin 22 - 58 are the ledwiz outputs.

Analog 1 2 are x y for the axelometer analog ports aka joy x y

Analog Pin 3 is for z axis for the axelometer

Analog Pin 4 for the plunger

Digital Pin 13 is not used there is an led thats pull the port when you use it for controlls

Digital Pin 0 and 1 are the comunication ports rx/tx for the 16u2 and the atmega 2560

For test you can use for the keyboard controlls the cgkeyboard test or in german "cgtastatur tester"
For the ledwiz ports you can use the ledblinky test tool

The first test ist work the keyboard controlls when they didnt work your flash has failed
Flash back the 16u2 with flip or the dude then flash the 2560 chip over com and then the 16u2 with the ledwiz firmware

Try again the shit :)



Gesendet von meinem SM-G900F mit Tapatalk

#28 Baronir2d2

Baronir2d2

    Enthusiast

  • Members
  • PipPipPip
  • 52 posts

  • Flag: Brazil

  • Favorite Pinball: Family addams

  • 360 Gamer Tag: Baronimg

Posted 08 January 2016 - 10:37 AM

Cyclemate,
Man, thank you for the quick turnaround!
 
I will do hardware testing tomorrow, tomorrow is Saturday and I will have a few hours available to devote to the project, I promise to make a step by step and post here to help others with the same problem.
I understood that if the keyboard does not work is because the flasher did not work, if it occurs will revert to the 2560.hex and again will flasher with 16u2.hex.
 
When I was doing the flasher process, the first chip, it is normal to start to read and write data on the chip, and after a pair of dice happen error regarding the FUSE? this happened to me, but then I managed to put the Arduino in DFU mode and flasher with the FLIP program, ledblink is recognized as a unique LEDWIZ .... this can happen?
Now for the test, electronically speaking, LWclone outputs are at level 0 or 1? ... ... 0v or 5v?
I saw some CAB mounting photos, and I suggest that the output signal LWclone is level 0v because in contactors for example + v going directly connected to the contactor and the 0v out of a LWclone channel and triggers this contactor.
Am I correct in that?
If I am correct, all outputs are LWclone level 0v and should be linked electronically so?
 
I will now seek to do the keyboard test.
I wait for you to say something about what I wrote above, thank you, you have helped us a lot! :)
 
May the force be with you!


#29 Baronir2d2

Baronir2d2

    Enthusiast

  • Members
  • PipPipPip
  • 52 posts

  • Flag: Brazil

  • Favorite Pinball: Family addams

  • 360 Gamer Tag: Baronimg

Posted 19 January 2016 - 12:54 PM

For edit the config you must edit the pinmap.h in the source code and compile it. In the normal source
the upper row pin 2 - 21 are the controlls

the duble row pin 22 - 58 are the ledwiz outputs.

Analog 1 2 are x y for the axelometer analog ports aka joy x y

Analog Pin 3 is for z axis for the axelometer

Analog Pin 4 for the plunger

Digital Pin 13 is not used there is an led thats pull the port when you use it for controlls

Digital Pin 0 and 1 are the comunication ports rx/tx for the 16u2 and the atmega 2560

For test you can use for the keyboard controlls the cgkeyboard test or in german "cgtastatur tester"
For the ledwiz ports you can use the ledblinky test tool

The first test ist work the keyboard controlls when they didnt work your flash has failed
Flash back the 16u2 with flip or the dude then flash the 2560 chip over com and then the 16u2 with the ledwiz firmware

Try again the shit :)



Gesendet von meinem SM-G900F mit Tapatalk

 

Cyclemat, 

can you explain in more detail the process of returning the Arduino to the original firmware and then redo the flasher process for LW?
I'm in a lot of trouble here and I can not do properly.


#30 Baronir2d2

Baronir2d2

    Enthusiast

  • Members
  • PipPipPip
  • 52 posts

  • Flag: Brazil

  • Favorite Pinball: Family addams

  • 360 Gamer Tag: Baronimg

Posted 21 January 2016 - 09:49 AM

Okay, now I'm really starting to walk ....

Edited by Baronir2d2, 25 January 2016 - 12:24 PM.


#31 Baronir2d2

Baronir2d2

    Enthusiast

  • Members
  • PipPipPip
  • 52 posts

  • Flag: Brazil

  • Favorite Pinball: Family addams

  • 360 Gamer Tag: Baronimg

Posted 22 January 2016 - 11:19 AM

OK!!!
 
Did it !!!!

Edited by Baronir2d2, 25 January 2016 - 12:24 PM.


#32 emile

emile

    Neophyte

  • Members
  • Pip
  • 1 posts

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

  • Favorite Pinball: funhouse

Posted 21 April 2016 - 12:23 PM

Hi Cyclemat,

 

In first time a big THANKS. I use your works to made a ledwiz clone with an arduino Leonardo. That works. I just have an issue. My ledwiz clone works with simpleledtest but when I set the intensity to the max value that is like the O value. That is strange. I have read the source, and I would like to modify it, but now, my arduino is not... an arduino. I can't modify the firmware. I don't have serial port to send it. Do you know how I cant send HEX file into it now?

 

 

Again thanks for you work and if you don't know how I can do, that's not a big problem, don't worry I can live with that ;-)

 



#33 patpat

patpat

    Hobbyist

  • Members
  • PipPip
  • 14 posts

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

  • Favorite Pinball: kiss

Posted 07 September 2016 - 09:20 AM

Hi All,

 

I have a Arduino mega2650 and I can not for the life of me understand how to do this...yes im a dumb ass!! every time I read the "how to guide" it starts to become gibberish...

 

Will anyone out there be so kind on either making a quick video on how to do this or write up a very simple guide using small words  :bye2: PLEASE...



#34 Aetios

Aetios

    Neophyte

  • Members
  • Pip
  • 6 posts

  • Flag: France

  • Favorite Pinball: Jurassic Park

  • PS3 Gamer Tag: Aetios
  • 360 Gamer Tag: Aetios

Posted 08 March 2017 - 10:51 AM

Hi everybody,

 

I posted on an other forum topic to see if cyclemat is still active on this project, but with no response, I think he isn't.

That's a pity, because, i enjoy very much my new LWClone with arduino MEGA2560.

 

I made an "How To" but it's in french : http://www.pincabpas...clone-de-ledwiz

 

I read that he thought to upgrade the firmware to control adressable LED... so Cyclemate, if you read this please, may you continue ;)



#35 thembones

thembones

    Neophyte

  • Members
  • Pip
  • 4 posts

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

  • Favorite Pinball: terminator 2

Posted 12 May 2018 - 10:58 PM

Hi guys , im really interested in making this thing work , sonn im receiving my original arduino mega to start playing , i have always worked with chinese copies due to their ridiculous price. Aetios , im native spanish ,dont get a word of french but found your tutorial to be de most clear , so i will follow it and see what happens , hope you are still around in case i get lost and need some help . 

Thank you in advance !!!


Edited by thembones, 12 May 2018 - 10:59 PM.


#36 Aetios

Aetios

    Neophyte

  • Members
  • Pip
  • 6 posts

  • Flag: France

  • Favorite Pinball: Jurassic Park

  • PS3 Gamer Tag: Aetios
  • 360 Gamer Tag: Aetios

Posted 13 May 2018 - 08:41 AM

@thembones : I'm still working on it yes ;) Don't hesitate to contact me here or VPU or PincabPassion. That's the same pseudo ;)



#37 thembones

thembones

    Neophyte

  • Members
  • Pip
  • 4 posts

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

  • Favorite Pinball: terminator 2

Posted 21 May 2018 - 09:53 PM

@thembones : I'm still working on it yes ;) Don't hesitate to contact me here or *** or PincabPassion. That's the same pseudo ;)

Hi Aetios , after some issues I could flash my arduino with the help of an usbasp adapter , now I´m into getting the shield for the mosfets and darlingtons , do you think one of these universal boards could be suitable?? https://articulo.mer...-170-puntos-_JM.

Another question , is it possible to use the accelerometer MPU9250 or MPU6050 instead of the MMA8451 ??? here in uruguay havent seen it available however seen those first mentioned a lot , i guess they are used for drones since they have gyroscope also . Another question is if i can coneect an addressable ledstrip directly to the ledwiz clone or just the regular ones , and the last question i have is what do contactors are used for???. Sorry to bother you with so many doubts

 

Thank you!!!!



#38 thembones

thembones

    Neophyte

  • Members
  • Pip
  • 4 posts

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

  • Favorite Pinball: terminator 2

Posted 01 June 2018 - 05:38 PM

 

OK!!!
 
Did it !!!!

 

 

Hi Baronir2d2 , hope you´re still around , i´m having an issue like yours , i decided to apply the non DFU method , i mean , i did it all with usbasp programmer , only issue for me was a mesage from avrdude  "warning cannot set sck period, please check for usbasp firmware update.", think i had also something regarding the fuses , but everything went fine . windows recognized properly , can change ID and ledblinky recognizes it . 

but i can not make the keyboard work  no matter what i do , do you set to gnd to the input or do i need to go for a pull down resistor?? . 

Then i want to test ledblinky , i´m measuring voltage with a multimeter and get nothing in any output .

Don´t know what i´m missing here , i´m about to throw the towel .

If any of you help me please! 

 

Thank you !!!



#39 thembones

thembones

    Neophyte

  • Members
  • Pip
  • 4 posts

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

  • Favorite Pinball: terminator 2

Posted 01 June 2018 - 10:22 PM

 

 

OK!!!
 
Did it !!!!

 

 

Hi Baronir2d2 , hope you´re still around , i´m having an issue like yours , i decided to apply the non DFU method , i mean , i did it all with usbasp programmer , only issue for me was a mesage from avrdude  "warning cannot set sck period, please check for usbasp firmware update.", think i had also something regarding the fuses , but everything went fine . windows recognized properly , can change ID and ledblinky recognizes it . 

but i can not make the keyboard work  no matter what i do , do you set to gnd to the input or do i need to go for a pull down resistor?? . 

Then i want to test ledblinky , i´m measuring voltage with a multimeter and get nothing in any output .

Don´t know what i´m missing here , i´m about to throw the towel .

If any of you help me please! 

 

Thank you !!!

 

 

 

Hi guys , i think i may know where the problems is , i get this message when flashing 

 

"avrdude: verifying ...

avrdude: verification error, first mismatch at byte 0x1e000
         0xff != 0x0d
avrdude: verification error; content mismatch
 
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: safemode: Fuses OK
 
avrdude done.  Thank you." 
 
have tried everything and still not resolving it ,any ideas?? googled it but nothing applies .
 
 


#40 Aetios

Aetios

    Neophyte

  • Members
  • Pip
  • 6 posts

  • Flag: France

  • Favorite Pinball: Jurassic Park

  • PS3 Gamer Tag: Aetios
  • 360 Gamer Tag: Aetios

Posted 08 June 2018 - 04:20 AM


 
OK!!!

 

Did it !!!!

 

 
Hi Baronir2d2 , hope you´re still around , i´m having an issue like yours , i decided to apply the non DFU method , i mean , i did it all with usbasp programmer , only issue for me was a mesage from avrdude  "warning cannot set sck period, please check for usbasp firmware update.", think i had also something regarding the fuses , but everything went fine . windows recognized properly , can change ID and ledblinky recognizes it . 
but i can not make the keyboard work  no matter what i do , do you set to gnd to the input or do i need to go for a pull down resistor?? . 
Then i want to test ledblinky , i´m measuring voltage with a multimeter and get nothing in any output .
Don´t know what i´m missing here , i´m about to throw the towel .
If any of you help me please! 
 
Thank you !!!

If you use my firmware which is coded for MMA8451, you need to connect one to the mega otherwise Arduino can t work properly. In fact, at its start, it tries to connect to the MMA chip and it verifies if it's here... If it doesn't, it can t work.

If you want to test without MMA, you have to flash with cyclemat firmware with Adxl335 as accelerometer (maybe you can find one in Uruguay).

Adressable ledstrips don't work at all with the clone. If you want to test some Teensy effects, you can buy a cheap wemos mini d1 pro. It does the same work. Please, come to pincab passion to have more information (it s in French but nothing is impossible to understand with Google translate ;)

For the contactors, there are in the virtual pinball to simulate solenoid sound from a true pinball