Pages: [1] 2 3   Go Down
Author Topic: Cheapest way to program standalone project  (Read 3045 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

I've just bought a starter kit that came with an Arduino Uno and I'd like to build a standalone version of an IR Transcoder  Sketch (to make my TV remote control my DVD player) and it seems I can't use it to directly program a standalone ATMega 328 chip because of a unresolved software issue with the UNO optiboot bootloader  smiley-sad

As a family man with a strict budget for my toys smiley I'd like to know what the cheapest way to get my sketch from a Uno onto a standalone project.

Any ideas please smiley

regards
Simon
PS Loving Arduino smiley
Logged

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

You could look here :

http://www.ebay.co.uk/itm/USBASP-USBISP-AVR-Programmer-AVRDude-USB-Port-/180666590548?pt=UK_AudioElectronicsVideo_Video_TelevisionSetTopBoxes&hash=item2a10916554

Its the cheapest programmer I've seen

Hope this helps


Drew
Logged

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

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6373
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are several ways of disabling auto-reset when using ArduinoISP with an Uno.
Search the forums for other "bootloader" posts.
Logged

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

@drew - thats the right price smiley  but are there any instructions on how to use one (or a compatbile equivalent) to upload a Uno sketch with it?
@westfw - I've found a few (I've even found a post saying that the Uno does work with ArduinoISP!) - have you got a link to one you used yourself?
regards
Simon
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 439
Posts: 23730
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you in the US?
I'm using this one.
http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415

Here it is in action programming my '1284 based "Bobuino"
Add these 2 lines to programmers.txt after download/install the driver, link is on the same page.

usbasp.name=MDFLY
usbasp.protocol=usbasp


Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

Its easy :
Close the IDE
unzip this into a folder called hardware in your sketches folder*
then start the IDE

*should read :

hardware\usbasp\......


Drew

* usbasp.zip (78.76 KB - downloaded 13 times.)
« Last Edit: August 06, 2011, 05:32:24 pm by spycatcher2k » Logged

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

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

@drew and crossroads - ta very much 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've just moved a sketch from Arduino Uno to a virgin processor in my own hardware, using the Arduino Uno itself as a programmer. See http://miscsolutions.wordpress.com/2011/08/09/prototyping-small-embedded-projects-with-arduino/.
« Last Edit: August 09, 2011, 04:13:10 am by dc42 » 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.

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

@dc42
I was hoping there was someway to it without addtional hardware (discounting the capacitor or course smiley

My barebone kits of parts has arrived so I'll give your method a go tomorrow and let you know how I got on smiley

Simon
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 439
Posts: 23730
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This has to be one of the least expensive USB AVR programmers I have seen.
http://www.nkcelectronics.com/pocket-avr-programmer.html
I just received one today.  Comes with a 10-pin to 6-pin cable to  plug onto ICSP pins as well.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16517
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'd like to know what the cheapest way to get my sketch from a Uno onto a standalone project.

Cheapest method has to be:

1. Upload sketch to your arduino Uno board.
2. Remove 328p chip from Uno and install it in your standalone project 28 pin DIP socket.
3. Purchase replacement $6 328p chip with bootloader and install it into the Uno board.


Lefty


Logged

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

I wish my Uno had come like that but it came with a square chip soldered directly to the board smiley-sad

Simon
Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16517
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wish my Uno had come like that but it came with a square chip soldered directly to the board smiley-sad

Simon

The is because you have a Uno SMD model, and that is unfortunate. I think I read that they came out with the Uno SMD model because there was a shortage of 328p chips in the DIP package so they started building Uno SMD boards until the supply situation improved. Now they seem to offer both Uno and Uno SMD boards? Not sure if that is all true or not, but as long as the standard DIP version of the Uno is avalible I see no reason in the world one should buy the SMD version.

Lefty

Logged

Humboldt, CA
Offline Offline
Full Member
***
Karma: 2
Posts: 221
Arduino BBB
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.
Logged

Toronto, Canada
Offline Offline
Edison Member
*
Karma: 2
Posts: 1234
"Keep it R.E.I.L. - "Research, Experiment, Investigate and Learn"
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@simplesi

I know how you feel to be on a low budget. The cheapest way that I am thinking is to get : USB-to-TTL adapter, an ATmega328 with pre-loaded bootloader , a 16 MHz crystal and wires. Check this site to how to do it : http://www.dalewheat.com/

The company that I shop for Arduino & PICAXE : http://www.robotshop.com/ca/ but they don't have crystal ( Located in Montreal, Quebec and they have store in the US ) and http://www.hvwtech.com/, they carry crystals, ZIP <-- Zero-Insertion-Socket ( located in Calgary , Alberta ) 

The only part you need to purchase once is the USB-TTL adapter.

I hope this help.
Logged

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