Go Down

Topic: Cheapest way to program standalone project (Read 4382 times) previous topic - next topic

simplesi

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  :(

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

Any ideas please :)

regards
Simon
PS Loving Arduino :)

spycatcher2k

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

westfw

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

simplesi

@drew - thats the right price :)  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

CrossRoads

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


Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

spycatcher2k

#5
Aug 06, 2011, 11:53 pm Last Edit: Aug 07, 2011, 12:32 am by spycatcher2k Reason: 1
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
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

simplesi

@drew and crossroads - ta very much :)

Simon

dc42

#7
Aug 09, 2011, 11:03 am Last Edit: Aug 09, 2011, 11:13 am by dc42 Reason: 1
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/.
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.

simplesi

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

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

Simon

CrossRoads

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.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

retrolefty

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



simplesi

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

Simon

retrolefty


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

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


Bobnova

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

Techone

@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.

Go Up