I got everything almost all wired up. I downloaded arduino, but I’m sure I’m not doing something correctly. How do you access the configuring program? I saved the .ccp, .pde and .h file, plugged up the programmer to sparky jr, got some blinky lights and some error messages. Almost positive I missed something or don’t have the drivers in correctly, but i’t’s doing something. SCreenshots tomorrow. Have some unfortunate wiring I need to fix first…
nice, nice and one of art’s tek cases ftw…must be devs project your are working on…did you drill the madcatz pcb in order to mount it to the pcb holder? thas a great idea i might have to do that as well…thanx for posting these pics, since i plan on getting a tek case as well…gives me good visual indicators of how stuff will fit in there and space available
hey there
can you give a little more insight into the error. is it a script error or an uploading error.
first thing you should do before uploading in the arduino IDE is under the tools menu
under board -> you should choose the one with atmega328
second is under the serial port, it should be something like port 4 or 5
lastly, if you are still having issues, the arduino ide download comes with FTDI drivers for vitrual com ports
let me know, more than willing to help as long as i get all the info
hey there
can you give a little more insight into the error. is it a script error or an uploading error.
first thing you should do before uploading in the arduino IDE is under the tools menu
under board -> you should choose the one with atmega328
second is under the serial port, it should be something like port 4 or 5
lastly, if you are still having issues, the arduino ide download comes with FTDI drivers for vitrual com ports
let me know, more than willing to help as long as i get all the info
Yep, I drilled 3 holes in the pcb holder to mount it with 4-40 screws. Used a countersink bit to make sure the screw heads don’t touch the board. I’d use flathead screws if I had a choice. There are a total of 4 boards in there. The MC C and Sparky Jr are up top, the MasterStrike and 360 fightpad on the bottom. I can unsnap the entire holder to access the Masterstrike (not much needs to be accessed for the 360 board once piggybacked). Just make sure you figure out what you need to access and what direction the PCBs will face once mounted inside the case. Took a while to sort that out, and I still need to go back and rewire a few things
I think it may be a script error I was getting. I downloaded the virtual com ports and think I had it running thru COM4, not the serial port. I selected one of the boards with the ATMEGA328, but can’t remember which now. It was late and the misses needed some tending to, so I didn’t get a chance to dig into it. That and I have a wiring issue to address (don’t even want to talk about it). I’ll try again this evening and post up my screenshots of what’s going on.
sounds good. keep me posted.
if it is a script error, try to compile (the play arrow) before upload.
it will automagically try to highlight the line row with the error.
Will do. I know I hit the play button and the arc eyes did it’s light show thing, but I did see some error message in red at the bottom. Didn’t notice if anything was highlited though (but didn’t look either). Since I couldn’t figure out the configurator (sp?) I made the changes by hand like you did in your video. I also used the stock lighting setup that was on the page. However, that wiring issue I was having probably prevented me from testing to see if it sent anything down (again, don’t want to talk about it just yet…)
So, the computer recognises the programmer and some signal was sent to Sparky. So something is working. Just not sure what is and what isn’t.
OK… went to tools. Set it for Arduinio pro 5v w. atmege328 (also tried the duelaminove w/328). Control panel shows an FTDI device on COM3. Opened up sparke.pde. Lights cycle. When I hit the run button, I get this:
Sparky:36: error: stray ‘#’ in program
Sparky:36: error: stray ‘#’ in program
Sparky:37: error: stray ‘#’ in program
Sparky.cpp:42:13: error: invalid digit “9” in octal constant
Sparky:37: error: stray ‘#’ in program
Sparky.cpp:42:21: error: invalid suffix “FF00” on integer constant
Sparky:38: error: stray ‘#’ in program
Sparky.cpp:43:13: error: invalid digit “9” in octal constant
Sparky:38: error: stray ‘#’ in program
Sparky.cpp:43:21: error: invalid suffix “FF” on integer constant
Sparky:39: error: stray ‘#’ in program
Sparky:39: error: stray ‘#’ in program
Sparky:40: error: stray ‘#’ in program
Sparky:40: error: stray ‘#’ in program
Sparky:41: error: stray ‘#’ in program
Sparky.cpp:46:13: error: invalid digit “9” in octal constant
Sparky:41: error: stray ‘#’ in program
Sparky.cpp:46:21: error: invalid suffix “FFFF” on integer constant
Sparky:42: error: stray ‘#’ in program
Sparky:42: error: stray ‘#’ in program
Sparky:43: error: stray ‘#’ in program
Sparky:43: error: stray ‘#’ in program
Sparky:44: error: stray ‘#’ in program
Sparky:44: error: stray ‘#’ in program
Sparky:190: error: stray ‘#’ in program
Sparky:197: error: stray ‘#’ in program
Sparky:198: error: stray ‘#’ in program
Sparky:266: error: stray ‘#’ in program
Sparky:266: error: stray ‘#’ in program
Sparky:296: error: stray ‘#’ in program
Sparky:314: error: stray ‘#’ in program
Sparky:314: error: stray ‘#’ in program
Sparky:315: error: stray ‘#’ in program
Sparky:315: error: stray ‘#’ in program
Sparky:321: error: stray ‘#’ in program
Sparky:323: error: stray ‘#’ in program
Sparky:323: error: stray ‘#’ in program
Sparky:324: error: stray ‘#’ in program
Sparky:324: error: stray ‘#’ in program
Sparky:324: error: stray ‘#’ in program
Sparky:324: error: stray ‘#’ in program
Sparky:343: error: stray ‘#’ in program
Sparky:431: error: stray ‘#’ in program
Sparky:431: error: stray ‘#’ in program
Sparky:448: error: stray ‘#’ in program
Sparky:467: error: stray ‘#’ in program
Sparky:468: error: stray ‘#’ in program
Sparky:468: error: stray ‘#’ in program
Sparky:469: error: stray ‘#’ in program
Sparky:469: error: stray ‘#’ in program
Sparky:545: error: stray ‘#’ in program
Sparky:546: error: stray ‘#’ in program
Sparky.cpp:551:15: error: invalid suffix “FF00” on integer constant
Sparky:547: error: stray ‘#’ in program
Sparky.cpp:552:15: error: invalid suffix “FF” on integer constant
Sparky:548: error: stray ‘#’ in program
Sparky:549: error: stray ‘#’ in program
Sparky:550: error: stray ‘#’ in program
Sparky.cpp:555:15: error: invalid suffix “FFFF” on integer constant
Sparky:551: error: stray ‘#’ in program
Sparky:552: error: stray ‘#’ in program
Sparky:2: error: variable or field ‘serialEvent’ declared void
Sparky:2: error: expected `)’ before 'port’
Sparky:3: error: ‘import’ does not name a type
Sparky:4: error: ‘Serial’ does not name a type
Sparky:10: error: ‘Sparky’ does not name a type
Sparky:18: error: expected unqualified-id before ‘[’ token
I’ll check to see if there were 3 files or 4 in the folder. Can’t remember now. I tried it two ways, once making the changes to the colors, and once opening a new window running the program as coded with no changes.
It did open other files, but I think it was only 3, not 4. I’ll make sure the Sparky folder has all 4 tonight and try again.
I did get most of my wiring problem sorted out. Still one or two things I need to do to get it right. Need to chcek something on the masterstrike and the MCC
Hey spenz
Upon further inspection there are no files it references called Sparky.cpp in arduino folder. Not sure what that is about
2 things I can think of is a missing bootloader on the chip ( try burning a new one from the tools menu)
Or the second being that you are attempting to run the processing files in the arduino IDE. The only reason I am guessing at this is seeing the error on the serialEvent line. This is part of the arduino/firmata library for processing IDE
I have been unable to reproduce this error.
Shoot me an email
Okay, i have confirmed that the only way one would get those errors was using the wrong IDE for the wrong files.
In this instance it was Processing Sparky.pde was opened and attempted to compile in Arduino IDE
FYI. for those not familiar with Processing. It’s whats used to build the interface portion of Sparky Jr. (See first page)
Also, Processing is free to download Download \ Processing.org which is different but similar to Arduino IDE Arduino - Software
To all following this, please note your results should be different from mine. I always have these issues, half becaise my computer hates drivers, half because of me! I’ll report once I have good news.
Well, the good news is the programmer seems to work! With the correct files it uploaded the sketch to Sparky. The bad news is it doesn’t look like the LEDs correspond with what the program says is supposed to light. I need to redo the RGB chain tomorrow so I’ll double check everything again and reload.