Show Posts
Pages: 1 [2] 3 4 ... 7
16  Using Arduino / Microcontrollers / Re: Uploading a skectch into atmega328 that has uno bootloader and is in circuit on: March 17, 2011, 06:47:50 am
Quote
Now I have a gadget were the arduino is located and would like to upload sketches using the Uno board. Am I wrong or shouldn't this be possible by just removing the atmega from the uno board and connecting reset, tx,rx,+5,GND to the chip that is on the gadget.

I think this would be a pretty easy way to get the code into the gadget.

Yes, it is that simple and should work fine. Even simpler is to just plug a jumper wire between ground and the reset pin on your UNO. That will hold the chip in reset mode, but still leave the tx,rx,+5, and ground pins free to wire to your standalone UNO chip.

Lefty

From my experience you also need a jumper wire from the Uno board reset to the reset pin of the stand alone chip. So leaving the chip in with a jumper from between GND and reset wouldn't work. I take the chip off the board. But like I say ....... that's my experience! Maybe I'm just about to learn a simper way of doing this?

I'm thinking what you guys are describing is, e.g., the breadboard circuit in this tutorial (with arduino pin 10 to reset, and pins 11, 12, and 13 the serial programming pins) am I right?:
http://arduino.cc/en/Tutorial/ArduinoISP

No it's not.

It's more like this http://arduino.cc/en/Tutorial/ArduinoToBreadboard Look at the Uploading Using an Arduino Board section.

You take the Arduino as ISP to put the bootloader on the chip.
After the chip as a bootloader on it you don't need an ISP anymore (that's why you can put stuff on the chip on the Uno board without needing another board.)

So when you have an external chip with a bootloader. You put your sketch on it the same way you put it on your board. Except it's not ON the board, it's off the board with a couple of jumpers....so the Arduino IDE doesn't know it's off the board.......and it doesn't care!
17  Using Arduino / Microcontrollers / Re: Using blank ATMega 8 with UNO on: March 16, 2011, 01:21:56 pm
No caps between RESET and GND.

And I used the Arduino as ISP sketch example included with the Arduino IDE 0022.

Can you take pictures of your setup?
18  Using Arduino / Microcontrollers / Re: Using blank ATMega 8 with UNO on: March 16, 2011, 10:18:20 am
I got that when I had bad connections to my breadboard.
19  Using Arduino / Microcontrollers / Re: Using blank ATMega 168 with UNO on: March 15, 2011, 04:18:47 pm
That is my experience.

I've uploaded bootloaders and sketches on both blank atmega328 and atmega8.
20  Using Arduino / Microcontrollers / Re: Using blank ATMega 168 with UNO on: March 15, 2011, 12:17:31 pm
Ok let's just start over.

First you need a board with a working atmega.
Then there are 2 steps. 1- Put the boot loader on the chip (this might be done already) 2. Put the sketch on the chip.

To do the first part, load the Use Arduino as ISP sketch to the chip on the board.
Make sure you ave selected the right board and the right port.
Then connect you breadboard like this (bottom secion of this page) Circuit (targeting an AVR on a breadboard) http://arduino.cc/en/Tutorial/ArduinoISP
Like I said it only worked if I used an external clock. (I have the Uno board, with optiboot)

Then use the burn bootloader with arduino as ISP.

Now your new chip as a bootloader!

Then remove the chip from your board.

You could just pop the new chip on the board and program any sketch you would like on it.

But is you want leave the chip on the breadboard and load  a sketch on in.........do this.....

Disconnect wires to header pin 10,11,12,13 and connect pins rx and tx the the rx and tx pins on the atmega on the breadboard. Like this
http://arduino.cc/en/Tutorial/ArduinoToBreadboard  Uploading Using an Arduino Board

Then add a wire from the board socket pin 1 (reset) to the breadboard chip pin 1 (reset)

Then load the sketch you want to the chip on the breadboard.


Remember never to change the board selection............but like I said it only worked with an external clock.

Since your using a 168. After the arduino as ISP sketch is on your 328. Switch the board selection to somthing with a 168.

Better yet go to the optiboot page and dowload the optiboot for 168. Much faster the the old bootloader. (The 328 on the Uno uses a optiboot.

(The search tool is your friend, all these questions have been asked and answered before.)

If you need more help..........let us know!
21  Using Arduino / Microcontrollers / Re: Standalone Arduino (Breadboard) and Error With Upload - reminder on: March 14, 2011, 10:37:12 am
You trying to download the bootloader or a sketch?

If your trying to download a sketch (connecting the RX and TX from a empty Arduino board).
Add a jumper between the reset pin an the board and the reset pin on the other atmega chip. 
22  Using Arduino / Microcontrollers / Re: Arduino bootloader on atmega8 default fuse settings?? on: March 14, 2011, 10:33:57 am
Yes, external oscillator is a better term.

As for the caps value, I think not using the right values will change the actual frequency of the oscillator.

Is that what's causing your problems.....? Don't know?

But I would start by doing everything as instructions says so you eliminate any possible problems.

(I use a 16mhz 3 pin resonator, It as the caps integrated.)
23  Using Arduino / General Electronics / Re: Can some one help me with a PCB layout? on: March 11, 2011, 01:12:26 pm
Post the schematic.
24  Using Arduino / Microcontrollers / Re: Arduino bootloader on atmega8 default fuse settings?? on: March 10, 2011, 10:52:44 am
The atmega328p that came with your Uno as the optiboot.

Can you describe in details what you are doing?
Steps, selections, etc 
25  Using Arduino / LEDs and Multiplexing / Re: 1 LED 2 pots on: March 07, 2011, 11:07:42 am
analogRead (potPin0) is reading your potPin0 and will return a value between 0 and 1023.
analogWrite is expecting a value between 0 and 255.
So the / 4 is there to dived (by 4) the value returned by analogRead so it is usable by analogWrite.

Read up on it at this page: http://arduino.cc/en/Reference/HomePage




26  Using Arduino / Microcontrollers / Re: Bootloader with crystal question. on: March 07, 2011, 07:24:04 am
Something like this?
http://arduino.cc/en/Tutorial/ArduinoToBreadboard

Note that is the steps to burn a sketch to the breadboard chip. You need to remove the chip one the Arduino board and add a jumper between the reset on the Arduino board and the pin1 of the breadboard chip.   
27  Using Arduino / Microcontrollers / Re: Arduino bootloader on atmega8 default fuse settings?? on: March 07, 2011, 07:16:06 am
Ok let's just start over.

First you need a board with a working atmega.
Then there are 2 steps. 1- Put the boot loader on the chip (this might be done already) 2. Put the sketch on the chip.

To do the first part, load the Use Arduino as ISP sketch to the chip on the board.
Make sure you ave selected the right board and the right port.
Then connect you breadboard like this (bottom secion of this page) Circuit (targeting an AVR on a breadboard) http://arduino.cc/en/Tutorial/ArduinoISP
Like I said it only worked if I used an external clock. (I have the Uno board, with optiboot)

Then use the burn bootloader with arduino as ISP.

Now your new chip as a bootloader!

Then remove the chip from your board.

You could just pop the new chip on the board and program any sketch you would like on it.

But is you want leave the chip on the breadboard and load  a sketch on in.........do this.....

Disconnect wires to header pin 10,11,12,13 and connect pins rx and tx the the rx and tx pins on the atmega on the breadboard. Like this
http://arduino.cc/en/Tutorial/ArduinoToBreadboard  Uploading Using an Arduino Board

Then add a wire from the board socket pin 1 (reset) to the breadboard chip pin 1 (reset)

Then load the sketch you want to the chip on the breadboard.


Remember never to change the board selection............but like I said it only worked with an external clock.

All this with my Uno board.

So now you can load the bootloader and sketches yourself.
28  Using Arduino / Microcontrollers / Re: Optiboot for Atmega8 needed. on: March 04, 2011, 09:41:43 pm
OK but to create a valid section in the board.txt for this new chip/bootloader I guess I need to know what fuse setting you chose to build the .hex file?

Last time you gave me this for the 16mhz atmega8:
opti8.name=Arduino Optiboot8
opti8.upload.protocol=stk500
opti8.upload.maximum_size=7680
opti8.upload.speed=115200
opti8.bootloader.low_fuses=0xbf
opti8.bootloader.high_fuses=0xdc
opti8.bootloader.path=optiboot
opti8.bootloader.file=optiboot_mega8.hex
opti8.bootloader.unlock_bits=0x3F
opti8.bootloader.lock_bits=0x0F
opti8.build.mcu=atmega8
opti8.build.f_cpu=16000000L
opti8.build.core=arduino

So would this work for a atmega8 at 8mhz? Red sections are what I've changed
opti8.name=Arduino Optiboot8 (8mhz)
opti8.upload.protocol=stk500
opti8.upload.maximum_size=7680
opti8.upload.speed=57600
opti8.bootloader.low_fuses=0xa4
opti8.bootloader.high_fuses=0xdc
opti8.bootloader.path=optiboot
opti8.bootloader.file=optiboot_mega8_8mhz.hex
opti8.bootloader.unlock_bits=0x3F
opti8.bootloader.lock_bits=0x0F
opti8.build.mcu=atmega8
opti8.build.f_cpu=8000000L
opti8.build.core=arduino
29  Using Arduino / Microcontrollers / Re: Optiboot for Atmega8 needed. on: March 04, 2011, 01:11:24 pm
Thanks for helping out again westfw.

Do I also need to add a section to me board.txt? (Like I did last time.)
30  Using Arduino / Microcontrollers / Need help understanding 16mhz vs 8mhz settings on: March 04, 2011, 09:57:19 am
If I want to use the internal 8 mhz resonator of a chip. Do I need to just change fuses in the board.txt file or do I also need to create a  new blablabla.hex file (bootloader) for that chip?

I trying to learn how to do this so I wont have to bother you guys every time I want to change something. But I'm kinda lost in the fuses and to what  I need to change to make this happen.

 
Pages: 1 [2] 3 4 ... 7