Hi....
As I don't appear to be getting anywhere using the Python parallel port drivers under RedHat Fedora Core 4** (this would be nice as everything could be done (design and writing to the spokepov) in one application), I thought I would try what others appear to have working: avrdude ( http://www.bsdhome.com/avrdude/ ) & ( http://savannah.nongnu.org/projects/avrdude/ ).
Questions:
1) Looking at the ladyada.net parallel port dongle schematic I see:
pin 2 - MOSI
pin 4 - Reset
pin 5 - SCK
pin 11 - MISO
pin 20, 19, 18 - gnd
...but the avrdude page has:
pin 7 - Reset
pin 8 - SCK
pin 9 - MOSI
pin 10 - MOSO
pin 18 - gnd
...that's definitely not the same. Now, avrdude says it can change this around in it's config file. Anyone have luck with this? What does your config file look like?
------------
** There are bug reports for this project ( http://pyserial.sourceforge.net/pyparallel.html ) on their sourceforge web pages ( http://sourceforge.net/tracker/?atid=44 ... unc=browse ) that have not been addressed in months.
Using AVRDUDE...
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
Hey thanks ladyada, that works! Now I'm talking to the Atmel on the spokepov.
Now then...
...I forgot, there are 2 programmable parts on the SpokePOV! So more questions:
2) Which parts contain what? Does the ATtiny2313 contain only the programming? Does the EEPROM (25LC080P) contain only the patterns?
3) Does avrdude have the capabilities to program an EEPROM?
4) What is the format of the <filename>.dat output of SpokePOV.py? Does it contain address information?
...thanks again!
Now then...
...I forgot, there are 2 programmable parts on the SpokePOV! So more questions:
2) Which parts contain what? Does the ATtiny2313 contain only the programming? Does the EEPROM (25LC080P) contain only the patterns?
3) Does avrdude have the capabilities to program an EEPROM?
4) What is the format of the <filename>.dat output of SpokePOV.py? Does it contain address information?
...thanks again!
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
2) http://www.ladyada.net/make/spokepov/hardware.htmlst2000 wrote:Hey thanks ladyada, that works! Now I'm talking to the Atmel on the spokepov.
Now then...
...I forgot, there are 2 programmable parts on the SpokePOV! So more questions:
2) Which parts contain what? Does the ATtiny2313 contain only the programming? Does the EEPROM (25LC080P) contain only the patterns?
3) Does avrdude have the capabilities to program an EEPROM?
4) What is the format of the <filename>.dat output of SpokePOV.py? Does it contain address information?
...thanks again!
4) no
5) python picklefile
-
- Posts: 21
- Joined: Sat Mar 12, 2005 4:55 am
Unpickling a picklefile for the uninitiated:
kragen@prudent:~ $ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pickle
>>> pickle.load(file('tmp.pck'))
['this is a list', 'of strings']
Of course then you need to use Python to manipulate the stuff you got out of the pickle file.
kragen@prudent:~ $ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pickle
>>> pickle.load(file('tmp.pck'))
['this is a list', 'of strings']
Of course then you need to use Python to manipulate the stuff you got out of the pickle file.
Please be positive and constructive with your questions and comments.