minipov2 programming problems II

MiniPOV, MiniPOV2 and MiniPOV3

Moderators: adafruit_support_bill, adafruit

minipov2 programming problems II

Postby ollifreund » Mon Oct 06, 2008 4:49 pm

Hello,

I tried to make a Sound&Lightmachine from Mitch Altmans
guide on the net. Since every PC has a parallel port, I used
that one instead of the COM port. So what I did was using
ladyada's Minipov2 guide (http://ladyada.net/make/minipov2/hardware.html,
R21 is 47Ohms, right?) with the SLM modifications.

With AVR, I entered
avrdude -p t2313 -P lpt1 -c dasa -u flash:minipov.hex

and got

avrdude: ser_open(): cant set buffers for "lpt1"

I changed the makefile to use ltp1 instead of com.

Whats wrong?

Thanks!
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Postby mtbf0 » Mon Oct 06, 2008 7:34 pm

"-c dasa" in your avrdude command line specifies the serial port programmer.

according to the Makefile for the minipov2 you want "-c dt006".

also you are missing the bit that tells avrdude what you want to do to the flash.

try

Code: Select all
avrdude -p t2313 -P lpt1 -c dt006 -u flash:w:minipov.hex
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca

Postby ollifreund » Tue Oct 07, 2008 2:09 am

-> avrdude: cant find programmer id "dt006"


I changed "dasa" to "dt006" in makefile. Avrdude suggests
dasa, dasa3 and ponyser, but there are all serial port.

Lets say I soldered the whole thing wrong - what would
avrdude say?

Thanks!
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Postby mtbf0 » Tue Oct 07, 2008 7:12 am

it doesn't sound as though avrdude has gotten far enough to reveal a bug in your construction.

somewhere on your system there will be a file called avrdude.conf that has the definitions for all the programmers. no idea where it would be on a windows system, but i found the dt006 entry in mine.

it shows the following connections...

programmer
id = "dt006";
desc = "Dontronics DT006";
type = par;
reset = 4;
sck = 5;
mosi = 2;
miso = 11;
;
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca

Postby adafruit » Tue Oct 07, 2008 4:33 pm

dont forget to run giveio.bat
User avatar
adafruit
 
Posts: 10485
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: minipov2 programming problems II

Postby ollifreund » Thu Oct 09, 2008 12:28 pm

I loaded giveio.sys. Found a GUI for avrdude, thats fun.
Without having the minipov plugged in, my laptop under
WinXP cant find the LPT1.
It either says "cant set buffers for lpt1" or "cant find
programmer id "dt006" (and names all valid programmers,
which are serial port or Atmel JTAG/AVR/...

:?
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Re: minipov2 programming problems II

Postby ollifreund » Thu Oct 09, 2008 12:51 pm

Okay, I got it. In the .conf I just inserted the programmer tat mtbf0 pointed
out.
If I plug the minipov in, the first 2 LEDs light up, all others remain the way
they are. Avrdude says "device not responding, init failed, rc=-1", then
"avr device initialized and ready to accept instructions"...huh?

I'll check the soldering connections... can anyone check the 47 ohm resistor
I mentioned in the first post?
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Re: minipov2 programming problems II

Postby adafruit » Fri Oct 10, 2008 10:18 am

did you build it from a kit?
User avatar
adafruit
 
Posts: 10485
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: minipov2 programming problems II

Postby ollifreund » Sat Oct 11, 2008 1:42 pm

Hello,

no, built it from scratch. My first project, I'm trying to teach myself that stuff.
For now I built this:
http://ladyada.net/make/minipov2/hardware.html

Exept:
R5-R8 and LED 1-4
VCC Sensor (whats that?)
JP1 (whats that?)

Avrdude accesses the LPT1, got 3V on the whole thing, LEDs are
in the right direction, no mistakes as far as I can see it.
Avrdude says that the device is not responding.

Whats wrong now?

Image
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Re: minipov2 programming problems II

Postby adafruit » Sat Oct 11, 2008 8:46 pm

sorry, i can only provide tech support for people who buy kits. its just too hard to debug a project if the PCB and parts are different & i have enough customers who need help :)
User avatar
adafruit
 
Posts: 10485
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: minipov2 programming problems II

Postby ollifreund » Sun Oct 12, 2008 1:03 am

Thats alright. Maybe someone else wants to take a look at it.
What are the minimum LPT pins for programming a 2313? I was
thinking of just connecting them and see what my computer does.

And whats VCC Sensor and JP1?

edit: haha! Take a look at Pin 1 and 20! :lol:
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Re: minipov2 programming problems II

Postby The_Don125 » Sun Oct 12, 2008 3:03 am

VCC Sensor is for if you wanted to put a hall effect sensor on the official PCB and use it for...stuff, usually for if somebody wanted to take the MiniPOV and use it on a bicycle tire or something as a sort of cheap SpokePOV.

JP1 looks like its just a header in case you wanted to use a replaceable battery pack. Since you wired the battery directly to the microcontroller pins, you don't need it.
The_Don125
 
Posts: 373
Joined: Tue Mar 06, 2007 10:51 pm
Location: Illinois

Re: minipov2 programming problems II

Postby mtbf0 » Sun Oct 12, 2008 6:42 am

you've got pin 20 in the wrong place. it's opposite pin 1. the pin you've got labeled as pin 20 is pin 11 and that is not where you want that little red wire coming from the battery.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca

Re: minipov2 programming problems II

Postby ollifreund » Wed Oct 15, 2008 2:23 pm

Hey there,

I dont get it. I took new parts and soldered the whole thing again.
Giveio is installed, my laptop accesses the LPT, it always
says "cant detect the device".
I just built a very basic minipov2, I just want my computer to
access the Atmel.

Here is what I built:

Image

Again, why is R21 200 Ohm? I did 47 Ohm.

Tomorrow I'll give it to a friend who is into electronics, he'll
take a look and debug the minipov.

Is the circuit above right?

Thanks,

Olli
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Re: minipov2 programming problems II

Postby ollifreund » Sun Nov 23, 2008 3:49 pm

Okay guys, I'm back ;-)

I was kinda frustrated in the past and didnt touch my project for a long
time. Now I'll try it again.

I rebuild the minipov 3 from scratch, now with the serial port. I've got
a Thinkpad on a docking station, Windows says I've got a working Com1.
(no USB converter)

I did the software like described at:
http://www.ladyada.net/make/minipov3/software.html

When I try t program it with make program-minipov,
avrdude says:

Image

Looks like it cant open com1. Why is that?
ollifreund
 
Posts: 9
Joined: Mon Oct 06, 2008 4:39 pm
Location: berlin

Next

Return to MiniPOV

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]