DiyLightAnimation

Hardware => Panther DMX Player => Topic started by: TexasStingray on February 26, 2014,

Title: Any issues?
Post by: TexasStingray on February 26, 2014,
Just wanted to check and see if anyone has had any build or running issues with the Panther V2 from the first coop.
Title: Re: Any issues?
Post by: sabie on February 26, 2014,
none here
Title: Re: Any issues?
Post by: twooly on February 26, 2014,
No problems here either, running a dmx to spi for some tm1809 nodes
Title: Re: Any issues?
Post by: golights on March 04, 2014,
Mine worked fine after build.  I would like to thank you for all the extra work you did on this coop.  It was nice to have the test files loaded on the  SD card.  You started this project just a year ago and you should be proud to see your vision become reality. I hope this inspires others to push forward with their ideas.   

Ken
Title: Re: Any issues?
Post by: deplanche on March 04, 2014,
My hardest problem right now is finding the instructions, since they seem to be in multiple files in multiple threads.  Is there anyway to put them in one location, like the wiki? 
Title: Re: Any issues?
Post by: Beanbag109 on June 19, 2014,
Got my player going, but on power up, I get 7 green flashes. I opened the CONTROL.TXT and i saw:

0,0,0,0,0

5 zeros

Reading the instructions, i saw that it should be only 4 zeros (0,0,0,0), so I changed it.

Im still getting the 7 green flashes.

Any Ideas?
Title: Re: Any issues?
Post by: tbone321 on June 19, 2014,
You may need to reformat the SD card and place the files back on it.  Make sure not to change the block size.
Title: Re: Any issues?
Post by: TexasStingray on June 19, 2014,
If you leave the SD Card out and power up you should get 1 or 2 blink lights. Also did it write the FIRMWARE.TXT file to the SD Card it should do this before attempting to read the CONTROL.TXT file.

Scott
Title: Re: Any issues?
Post by: Beanbag109 on June 20, 2014,
Reformatted the SD card, and  put the files back in.

No SD card installed, I get 1 green flash - pause - 1 green flash

w/SD card 7 flashes

Pulled the card, no FIRMWARE..TXT

Title: Re: Any issues?
Post by: TexasStingray on June 20, 2014,
At this point it has to be the SD card. I use an 8gig SanDisk class 4 sdhc. I believe that it's formated for fat32. See if you can get a hold of another SD card.
Title: Re: Any issues?
Post by: Beanbag109 on June 20, 2014,
Okay, i will try that. I was using the SD card that came with the coop.
Title: Re: Any issues?
Post by: TexasStingray on June 20, 2014,
It should have worked. I tested all the SD Cards from the coop and loaded the test files to them.
Title: Re: Any issues?
Post by: Beanbag109 on June 20, 2014,
Should the CONTROL.TXT contain only the 4 values (i.e. "0,0,0,0" ), not the 5 it came loaded with ("0,0,0,0,0")?
Title: Re: Any issues?
Post by: Beanbag109 on June 20, 2014,
Tried a new SD card, 7 flashes

Put in my other Card reader and chips from my unassembled panther, still 7 flashes
Title: Re: Any issues?
Post by: TexasStingray on June 20, 2014,
It needs at least 4, I added 5 as I was testing additional features. Do you have one of the suggested programmers to re flash the firmware?
Title: Re: Any issues?
Post by: Beanbag109 on June 20, 2014,
yes, I have both the USBasp Programmer, and Converter you had listed on the "What it is" post.

Do you have a "Dummies Giude" that will walk me thru the re-flash?
Title: Re: Any issues?
Post by: TexasStingray on June 20, 2014,
Read this post for instructions. http://diylightanimation.com/index.php?topic=13198.0
Title: Re: Any issues?
Post by: Beanbag109 on June 21, 2014,
well Scott,

I was awake until 3am trying to figure this out. I tried to follow the instructions the best I could but could not even get AVRdude to run. I watched 6-7 youtube videos, but they were of no use.

I'm not getting something. I don't know what it is, but something just isn't clicking in my head.

I couldn't even get the USBasp to install (kept getting "no driver found" even on the internet.)
Title: Re: Any issues?
Post by: TexasStingray on June 21, 2014,
If you want to ship it back to me, I'll take a look at it and fix it. I have a couple of extras that I can pull parts from.
Title: Re: Any issues?
Post by: Beanbag109 on June 21, 2014,
Hey, Vrey nice offer!

I think the best case is for me to learn what I need to do (get it into my thick skull), that way I might help someone else in the future.

If all else fails, ya, I'll send them to you...

You're the best!
Title: Re: Any issues?
Post by: TexasStingray on June 21, 2014,
Sounds good. Tomorrow I'll measure voltage at various points and post pics. This way you can test the points.
Title: Re: Any issues?
Post by: TexasStingray on June 22, 2014,
If you would like to do a meeting with team viewer, and Skype I would be willing to assist you in getting Arduino software and the programmer working, just let me know?
Title: Re: Any issues?
Post by: Beanbag109 on June 22, 2014,
I watched your youtube videos, and that helped a bit.

In your instrustions for flashing the PICs, it said:

**********************
Using the AVRDude bundled with Arduino. Will create a windows batch file that will contains the command to burn the firmware to the PDMXP. Call it "PDMXPFirmware.bat" and copy the below code into it and save it.

***********************

How do I make this file? Do I start Arduino first, then make the batch file ?
Title: Re: Any issues?
Post by: TexasStingray on June 22, 2014,
using any text editor: just save it as "PDMXPFirmware.bat" windows know .bat extensions as a set of instruction to execute.
Title: Re: Any issues?
Post by: Beanbag109 on June 23, 2014,
COOL!

We might get this done!!! I can't do much more until I get home Tuesday, but this helps my understanding a lot!
Title: Re: Any issues?
Post by: Beanbag109 on June 24, 2014,
Sorry, I fell asleep as soon as I got home.

Okay, I made the batch file, and the newest version of Arduino is installed.

What next? Here is what I understand (I know it is wrong, but these are the "type" of instructions I need)

With the computer on:

Start Arduino
Plug in USBAsp to computer
Plug USBAsp into PDMXP
Drag the Panther hex onto Batch file
  Then the chip gets programed

This does not work... I know
Title: Re: Any issues?
Post by: TexasStingray on June 24, 2014,
I'm assuming you are using a windows machine. You created the batch (bat) file and edit it so that it has the full path to where avrdude is located. When you plug the programmer into the computer the windows device manager should find it. At which point you can plug the other end into the panther. Once you have all this done all you should have to do is drag the hex file onto the batch file at which point it should start loading the program onto the panther. If windows device manager does not find it the you will have to install a USBAsp driver for you version of windows. You should be able search Google for the driver.
Title: Re: Any issues?
Post by: Beanbag109 on June 25, 2014,
cool, I have the USBasp driver installed, connected to the PDMXP.

I draged the "PantherDMXPlayerV200" hex file and placed it on the batch file, and got this error:

'C:\program' is not recognized as an internal or external command, operable program or batch file.

My batch file contains this:

C:\program files\arduino\hardware\tools\avr\bin\avrdude -c usbasp -p m328p -b 19200 -U flash:w:%1:i -U lock:w:0x0f:m
pause
Title: Re: Any issues?
Post by: twooly on June 25, 2014,
Need to put double quotes because of the space in program files.

"C:\program files\arduino\hardware\tools\avr\bin\avrdude" -c usbasp -p m328p -b 19200 -U flash:w:%1:i -U lock:w:0x0f:m
pause
Title: Re: Any issues?
Post by: TexasStingray on June 25, 2014,
You are not allowed to view links. Register or Login
Need to put double quotes because of the space in program files.

"C:\program files\arduino\hardware\tools\avr\bin\avrdude" -c usbasp -p m328p -b 19200 -U flash:w:%1:i -U lock:w:0x0f:m
pause

+1, I agree
Title: Re: Any issues?
Post by: Beanbag109 on June 25, 2014,
okay guys,
I am so close!   ;D  and I'm not depressed, because I am getting a better understanding. Thanks to everyone so far!

I put in the  quotes, tried again and got in the command prompt:


C:\Users\Owner\Documents\MY DOCS\Xmas lights\Panther Sequence Builder>"C:\progra
m files\arduino\hardware\tools\avr\bin\avrdude" -c usbasp -p m328p -b 19200 -U f
lash:w:"C:\Users\Owner\Documents\MY DOCS\Xmas lights\Panther Sequence Builder\Pa
ntherDMXPlayerV200.tex":i -U lock:w:0x0f:m
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""

C:\Users\Owner\Documents\MY DOCS\Xmas lights\Panther Sequence Builder>pause
Press any key to continue . . .

re-reading the instructions, I saw that it said to drop the HEX file on to the batch file. I was using a TXT file for the PantherDMXPlayerV200 file. So I saved it as a HEX and tried it again. Same response (other that it saying PantherDMXPlayerV200.hex).
Title: Re: Any issues?
Post by: TexasStingray on June 26, 2014,
Not sure exactly what you have in your bat file but it should look something like this

"D:\Arduino\arduino-1.0.5\hardware\tools\avr\bin\avrdude" -c usbasp -p m328p -b 19200 -U flash:w:%1:i -U lock:w:0x0f:m
pause


Note there are only 2 double quotes
Title: Re: Any issues?
Post by: tbone321 on June 26, 2014,
I believe that he is showing you the output from the batch file that he was running.  The %1 in the batch file would be replaced with the fully pathed file name which is enclosed by the second set of quotes.  Is there a limit on the size of file name that avrdude works with since that file name is huge and really doesn't need to be so.  Another thing to look at is what you are creating the file with and how you are saving it.  Make sure that if you are using a Windows program that you save it directly as a hex file or as other.  If saved as text an you give the file a .hex extension, windows in its brilliance will still add the .txt extension to it.  Windows, also by default, hides common known extensions so the file you saved as file.hex may really be saved as file.hex.txt with the .txt extension hidden.  I would also shorten that file name to a Linux type 8.3 file name to eliminate any possible issues there. 
Title: Re: Any issues?
Post by: Beanbag109 on June 26, 2014,
Wow, a lot of info...

I havent had a chance to fiddle a bit, but with windows explorer, I see the file IS a HEX type file, as described by the explorer. is it safe to assume that it is truely a hex file?

Should I move the Arduino folder someplace less "deep" ie C:\Arduino\...\... ?

I have the batch file on my desktop, and drop the hex file onto it from explorer (it too, is buried deep into folders). Should I move them?
Title: Re: Any issues?
Post by: TexasStingray on June 27, 2014,
Ok, lets try this.

1.) copy the hex file to the below folder and give it the name of pdmxpv200.hex

C:\program files\arduino\hardware\tools\avr

2.) open a command window aka a dos prompt window.

3.) type the below command or copy and paste this into the command window and then press the enter key aka return key

CD C:\program files\arduino\hardware\tools\avr

4.) type the below command and press the enter key.

DIR pdmxpv200.hex

5.) verify the the file pdmxpv200.hex did get displayed.

6.) type the below command or copy and paste it exactly in the command window,  DO NOT press the enter key until you have verified everything is typed exactly. Note the below text may appear on multiple lines in this post, but it should be typed as 1 line, also note that as you type or paste this it may wrap to multiple line in the command window, This is perfectly fine.

.\bin\avrdude -c usbasp -p m328p -b 19200 -U flash:w:pdmxpv200.hex:i -U lock:w:0x0f:m

7.) post your results.

Scott
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,


avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Owner>CD C:\program files\arduino\hardware\tools\avr

C:\Program Files\Arduino\hardware\tools\avr>DIR pdmxpv200.hex
 Volume in drive C is Gateway
 Volume Serial Number is C07F-D317

 Directory of C:\Program Files\Arduino\hardware\tools\avr

06/25/2014  09:38 PM            55,068 pdmxpv200.hex
               1 File(s)         55,068 bytes
               0 Dir(s)  103,168,069,632 bytes free

C:\Program Files\Arduino\hardware\tools\avr>.\bin\avrdude -c usbasp -p m328p -b
19200 -U flash:w:pdmxpv200.hex:i -U lock:w:0x0f:m
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""

C:\Program Files\Arduino\hardware\tools\avr>
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
From a dos windows execute this command so we can see what version of avrdude is installed.

"C:\program files\arduino\hardware\tools\avr\bin\avrdude"

Thanks
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
Can you post a photo of how you have the cables connected to the Panther DMX Player.
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
avrdude version 5.11
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
is there an avrdude.conf file located in the below folder?

C:\program files\arduino\hardware\tools\avr\etc

Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
yes, avrdude.conf is there
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
set up
Title: Re: Any issues?
Post by: tbone321 on June 28, 2014,
It sounds like the system path has not been set. 
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
Try this command from the same directory
.\bin\avrdude -c usbasp -p m328p -v

Post your results.
Title: Re: Any issues?
Post by: twooly on June 28, 2014,
You are not allowed to view links. Register or Login
It sounds like the system path has not been set.

+1





Do this in the command prompt

Set Path = %PATH%;"C:\program files\arduino\hardware\tools\avr\etc";"C:\program files\arduino\hardware\tools\avr";"C:\program files\arduino\hardware\tools\avr\bin"

CD "C:\program files\arduino\hardware\tools\avr"

DIR pdmxpv200.hex

.\bin\avrdude -c usbasp -p m328p -b 19200 -U flash:w:pdmxpv200.hex:i -U lock:w:0x0f:m
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
You are not allowed to view links. Register or Login
Try this command from the same directory
.\bin\avrdude -c usbasp -p m328p -v

Post your results.

in which directory?
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
twooly,

C:\Program Files\Arduino\hardware\tools\avr>Set Path = %PATH%;"C:\program files\
arduino\hardware\tools\avr\etc";"C:\program files\arduino\hardware\tools\avr";"C
:\program files\arduino\hardware\tools\avr\bin"

C:\Program Files\Arduino\hardware\tools\avr>CD "C:\program files\arduino\hardwar
e\tools\avr"

C:\Program Files\Arduino\hardware\tools\avr>DIR pdmxpv200.hex
 Volume in drive C is Gateway
 Volume Serial Number is C07F-D317

 Directory of C:\Program Files\Arduino\hardware\tools\avr

06/25/2014  09:38 PM            55,068 pdmxpv200.hex
               1 File(s)         55,068 bytes
               0 Dir(s)  103,187,685,376 bytes free

C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>.\bin\avrdude -c usbasp -p m328p -b
19200 -U flash:w:pdmxpv200.hex:i -U lock:w:0x0f:m
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""

C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login
Try this command from the same directory
.\bin\avrdude -c usbasp -p m328p -v

Post your results.

in which directory?
C:\Program Files\Arduino\hardware\tools\avr
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,


C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>
C:\Program Files\Arduino\hardware\tools\avr>.\bin\avrdude -c usbasp -p m328p -v

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is ""
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""

C:\Program Files\Arduino\hardware\tools\avr>
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
Ok edit your batch file and add this in after the avrdude and before the -c. Note this one is upper case C. Also be sure to leave a space after avrdude and before the -c. Also this should not be in the " after avrdude.
-C "C:\program files\arduino\hardware\tools\avr\etc\avrdude.conf"


Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
I think that did it?

C:\Program Files\Arduino\hardware\tools\avr>"C:\program files\arduino\hardware\t
ools\avr\bin\avrdude" -C "C:\program files\arduino\hardware\tools\avr\etc\avrdud
e.conf" -c usbasp -p m328p -b 19200 -U flash:w:"C:\Program Files\Arduino\hardwar
e\tools\avr\pdmxpv200.hex":i -U lock:w:0x0f:m

avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: warning: cannot set sck period. please check for usbasp firmware update
.
avrdude: reading input file "C:\Program Files\Arduino\hardware\tools\avr\pdmxpv2
00.hex"
avrdude: writing flash (19570 bytes):

Writing | ################################################## | 100% 5.90s



avrdude: 19570 bytes of flash written
avrdude: verifying flash memory against C:\Program Files\Arduino\hardware\tools\
avr\pdmxpv200.hex:
avrdude: load data flash data from input file C:\Program Files\Arduino\hardware\
tools\avr\pdmxpv200.hex:
avrdude: input file C:\Program Files\Arduino\hardware\tools\avr\pdmxpv200.hex co
ntains 19570 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 7.48s



avrdude: verifying ...
avrdude: 19570 bytes of flash verified
avrdude: reading input file "0x0f"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.03s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x0f:
avrdude: load data lock data from input file 0x0f:
avrdude: input file 0x0f contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.03s

avrdude: verifying ...
avrdude: 1 bytes of lock verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.


C:\Program Files\Arduino\hardware\tools\avr>pause
Press any key to continue . . .
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
Yep, that reprogrammed the chip. You'll just have to see if that resolved the 7 flashes issues.
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
Now I have nothing on the pdmxp. No green no red
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
Pull the SD card module out and try again. Make  sure your using the power supply that gave you the 7 flashes. If you still get nothing than watch my video on flashing the leds and see if you can program the panther to flash the leds. If that works than continue on with the video series and see if you can read and write to the SD Card. If you get that far and have success that download the panther hex file again and re flash it panther incase that hex file was bad. For testing you do not have to have the power supply you can run it using your USB port to supply the power, just for testing.
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
Video 1, Panther Programing Part 1 DONE!
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
That's good. At least we know the chip and leds appear to be accepting the firm ware correctly. And that the 2 led pins are working correctly.
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
at the bottom of the Arduino, I do have a warning:

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
oh, you had the same ones on the video
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
Yea, not sure why that happens but everything still work ok. It just a warning.
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
OKAY,

VIDEO 2 & 3 done,

SD card read/write works great
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
This is great news. I hope you learned how easy it can be to reprogram the panther to make it do something other than it was initially designed for. Now back to the nitty gritty. Try downloading and flashing the panther back to the DMX Player. Once you have this working you will have a great foundation to build upon. Please let us know how the next step goes.

Hope you enjoyed the videos.
Scott
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
I am glad I've gotten this far.

Reflashing the HEX.

should I use the same hex file, or make a new one?
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
You are not allowed to view links. Register or Login
I am glad I've gotten this far.

Reflashing the HEX.

should I use the same hex file, or make a new one?

Download a new one please.
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
from the same link as before?
Title: Re: Any issues?
Post by: Beanbag109 on June 28, 2014,
Scott, I sent you a PM
Title: Re: Any issues?
Post by: TexasStingray on June 28, 2014,
PM's Answered.