Pages: 1 2 [3]   Go Down
Author Topic: Cheapest way to program standalone project  (Read 3019 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK - still moving forward smiley
Uploaded ArduinoISP and changed preferences.txt and added capacitor to Uno.
reloaded IDE and uploaded a modifed Blink (does pin5 instead of 13 just to keep it away from programming lines)
Got
Code:
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Off to do avrdude.conf sig change

Simon
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yippee!!!!!!!  smiley-mr-green smiley-mr-green smiley-mr-green
I have a blinking LED on my breadboard smiley

Cinderella can go to the ball  smiley-mr-green
(Or to put it another way - an Arduino Uno can be used as a programmer for the cost of a 10uF capacitor - so the cheapest way so far is £0.05 (it cost me 23pence for a pack of 5 smiley )

Thanks everyone and very much thanks to dc42 for sticking with me smiley

Simon
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm glad you got it working. If it was removing the capacitors that made it work, then I suspect they were the wrong value capacitors, e.g. 22nF instead of 22pF.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

0
Offline Offline
Shannon Member
****
Karma: 159
Posts: 10409
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ArduinoISP and bare new chips is cheaper than buying pre-bootloader'd chips.  Chips w/bootloader are definitely the easiest.

And ATmega168's are significantly cheaper than ATmega328's if you don't need the extra RAM/ROM...
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
then I suspect they were the wrong value capacitors, e.g. 22nF instead of 22pF
smiley-red
Schoolboy error smiley-sad
I'd assumed the 2 little ones in the kit were smaller in value than the 2 bigger ones :lol:
(I'd used the 100nF provided for PSU filtering instead of the 22pF smiley )

I think I need to invest in one of those little devices with a magnifying glass and a couple of croc clips smiley

Simon
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, my cheap programmer eventually arrrived from HK
 http://www.ebay.co.uk/itm/USBASP-USBISP-AVR-Programmer-AVRDude-USB-Port-/180666590548#vi-desc
 and I downloaded the USBasp driver
 http://www.fischl.de/usbasp/
 connected the leads reset/vcc/gnd/miso/sck/mosi to the same pins on my ATmega328-PU  and used this
Code:
avrdude -c usbasp -p m328p -C ../etc/avrdude.conf
(which gave me the expected device error msg due to using a 328-PU and not a 328P-PU )
Code:
avrdude: Device signature = 0x1e9514
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
I did the Shift-Compile trick to find where my system keeps its hex file and then just used
Code:
avrdude -c usbasp -p m328p -C ../etc/avrdude.conf -U flash:w:BlinkPin2.cpp.hex -u -F
and it ignored the device signature and uploaded and ran it smiley
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That's a neat (and inexpensive) little programmer! I'd buy one if it had the 6-pin connector and cable instead of the 10-pin one.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi dc42, don't let that put you off, you can make/buy (or swap something for 1 from me) a 10 pin to 6 pin 'converter' board, you can make 1 from strip board, or make a PCB.

It's always better to have a programmer, even if you don't need it now, it's great for moving your projects to a more permanent state.


Drew.
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Pages: 1 2 [3]   Go Up
Jump to: