Show Posts
Pages: 1 ... 5 6 [7] 8 9 10
91  Using Arduino / Microcontrollers / problem uploading to atmega on breadboard on: June 25, 2011, 02:15:03 pm
hello,
so i followed this tutorial EXACTLY: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
at first I had the wrong crystals but then Lefty in the forums here helped me out and I got the right ones...I have 6 atmega328p-pu chips...I put the arduino bootloader on all of them no problem. Then I started putting some blink sketches on the atmegas while they were in the breadboard (no chip on arduino board)following the second part of the tutorial...that worked fine too for awhile. I got to the 4th chip, and I got the error message that you get when the board can't find/recognize the chip:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
5th chip did that too, 6th chip the sketch uploaded.
So I thought I had some bad chips.
But then I was playing around a little more, uploading different sketches to different chips and slowly I was getting that error message more and more and now I get it on all the chips. Even on the ones that previously took the blink sketch just fine....(I did not change any wiring...everything was exactly the same as it had been before)
BUT
when I plug the atmegas directly into the arduino board I can upload sketches to them fine.
So this isn't a huge problem as I can do what I need to do...I'm just popping out and placing the chips more than I'd like to...it's just a weird problem. I see that some people are having similar issues here...
Is this a common problem?
I'm on windows 7 64x using arduino 0021 on a duemilanove
thanks for any input!
92  Using Arduino / General Electronics / Re: 16Mhz crystal problem on: June 22, 2011, 09:08:22 am
ok so i am able to upload the arduinoISP sketch in the examples...but now when i upload arduino as ISP in tools/burn bootloader i get a weird error: (and i selected the new, proper 8mhz board)

avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.
93  Using Arduino / General Electronics / Re: 16Mhz crystal problem on: June 21, 2011, 06:03:10 pm
the instructions i specified at the top of the post (http://arduino.cc/en/Tutorial/ArduinoToBreadboard)...i'm going into tools ---> burn bootloader ---> arduino as isp
also i tried the arduino isp sketch in the examples and that got the same error...but i can upload the blink sketch just fine...
94  Using Arduino / General Electronics / Re: 16Mhz crystal problem on: June 21, 2011, 05:17:36 pm
yeah i can upload normal sketches fine...the tutorial says that you can use your pc (win7 x64) to do this...
has anyone actually done this? any advice?
95  Using Arduino / General Electronics / Re: 16Mhz crystal problem on: June 20, 2011, 09:40:41 pm
i'm just using a duemilanova with the original atmega in it to try, via usb and the arduino gui,  to program an atmega328p-pu on a breadboard...i feel like there might be some step i'm missing that's not on the tutorial page...? i followed everything on that tutorial....any other ideas? Thanks for any help!
96  Using Arduino / General Electronics / Re: 16Mhz crystal problem on: June 20, 2011, 06:31:59 pm
thanks so much for the help...i did do these steps (still to no avail):

1.Download this hardware configuration archive: breadboard.zip
2.Create a "hardware" sub-folder in your Arduino sketchbook folder (whose location you can find in the Arduino preferences dialog). If you've previously installed support for additional hardware configuration, you may already have a "hardware" folder in your sketchbook.
3.Move the "breadboard" folder from the zip archive to the "hardware" sub-folder of your Arduino sketchbook.
Restart the Arduino software.
4.You should see "ATmega328 on a breadboard (8 MHz internal clock)" in the Tools > Board menu.

this is what's on the .txt file:

##############################################################

atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)

atmega328bb.upload.protocol=stk500
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600

atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xD9
atmega328bb.bootloader.extended_fuses=0x07
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_pro_8MHz.hex
atmega328bb.bootloader.unlock_bits=0x3F
atmega328bb.bootloader.lock_bits=0x0F

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
97  Using Arduino / General Electronics / Re: 16Mhz crystal problem on: June 20, 2011, 06:15:25 pm
i just tried the example to use the 8Mhz internal clock...still getting the same error...i have the right board selected, too...the one with the breadboard...wired everything up just like the xample at the bottom http://arduino.cc/en/Tutorial/ArduinoToBreadboard

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

any ideas?
98  Using Arduino / General Electronics / Re: 16Mhz crystal problem on: June 20, 2011, 06:09:27 pm
thanks for your help lefty...grrr..a previous order with sparkFun JUST shipped out...time to wait another week to start my project :-(
99  Using Arduino / General Electronics / 16Mhz crystal problem on: June 20, 2011, 05:33:16 pm
Hello,
I'm trying to follow this (http://arduino.cc/en/Tutorial/ArduinoToBreadboard) tutorial to burn an arduino bootloader onto an atmega328P-PU.
I have everything wired up correctly except that the crystal I bought is not a 2pin one that they show here. I got this one that has 4 pins:
http://www.mouser.com/ProductDetail/ABRACON/ACH-16000MHZ-EK/?qs=sGAEpiMZZMukHu%252bjC5l7YUoOOqNWuemba6bKJBfe2DA%3d
here is the data sheet:
http://www.abracon.com/Oscillators/ach.pdf
so i grounded and powered the pins on the crystal that say need that but then I don't know what to do with the other ones. I have tried them both pins in both pins of the atmega (pins 9 and 10) and I still can't get the bootloader to burn. any ideas what I'm doing wrong? I have the correct board and COM ports chosen and everything in my software. is this just the wrong crystal? these are the error messages:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

in case you want to see...here is the set up:
http://dl.dropbox.com/u/7072449/2011-06-20%2018.29.10.jpg
Thanks for any help!
100  Using Arduino / General Electronics / Re: pulling out atmega chip on: June 15, 2011, 11:57:28 am
thanks so much for your help! super helpful!
so I would basically hook it up like in this picture? http://arduino.cc/en/uploads/Tutorial/BreadboardAVR.png
flash a bootloader, program it, take out the wires connecting to the arduino, and then i could solder everything together?

for the 16Mhz oscillator...is this the correct part?
http://www.mouser.com/ProductDetail/ABRACON/ACH-16000MHZ-EK/?qs=sGAEpiMZZMtgSs4ktXb8phCkgIMQu9Wt
and the capacitors...those are .22uf, correct? does the voltage matter on the caps?
http://www.mouser.com/ProductDetail/AVX/TAP224K035SRW/?qs=sGAEpiMZZMukgiigmf73gMK3fcloEmA3

for the pull up resistor...that would be a resistor going from RESET to Vcc? As shown in the picture above, correct?

or...if i have a super minimal program...like...10 lines of code...would it be so bad to have the arduino use it's 8Mhz clock? then i wouldn't need any additional parts, right?

Thanks again!
101  Using Arduino / General Electronics / pulling out atmega chip on: June 15, 2011, 11:09:23 am
Hello,
To make a project more permanent...could one pull out the atmega chip from the arduino (the older ones anyway) and solder it onto a perf board? Would it be as simple as grounding it and powering it and then connecting whatever sensors you have to its pins? would that work? could I buy a bunch of these to use? http://www.mouser.com/search/ProductDetail.aspx?qs=K8BHR703ZXguOQv3sKbWcg%3D%3D
My problem is that when I make things they need to be moved around or shipped and the wires always fall out of the pins...but also sometimes I just use a few pins. It would be nice to buy 4 dollar atmega chips and not $30 arduinos every time. could one use the arduino board as a programmer like that?
thanks for any feedback!
102  Using Arduino / General Electronics / Re: using a 5v relay with arduino on: May 27, 2011, 10:24:42 am
that's the one...but the connection diagram made no sense to me...there are no ground or 5v symbols on there saying which pin to ground...nothing anywhere says you need a diode.
there is a resistor symbol and a switch symbol and some open circles...that's it...
103  Using Arduino / General Electronics / Re: using a 5v relay with arduino on: May 26, 2011, 08:48:30 pm
Thanks so much for your help! I'll wire this up tomorrow morning...i'm curious....how did you know what pins go where? I couldnt tell any of that from the data sheet...
Thanks again!
104  Using Arduino / General Electronics / using a 5v relay with arduino on: May 26, 2011, 05:00:12 pm
hello,
I just went to radio shack and got this relay http://www.datasheetdir.com/OMR-C-105H-V000+Discretes

it's spst, 5v...rated .5a at 125v
the normal current is 20mA so i can control it with the arduino, no?
i just have no idea how to make a circuit for it
i just want to turn some buttons on and off on a digital photo frame.
i know i probably need a diode somewhere...i don't need a transistor though, correct?

                        3
1----------------2
                       4

it's shaped like the above thing...right now i have the arduino going into pin one and i don't know what else to do...i don't know where to power the thing or ground it or anything..the data sheet doesn't give me much as you can see...i've never used a relay before so any help would be much apreciated!

thanks!
105  Using Arduino / Project Guidance / Re: get the arduino to push the button on: May 24, 2011, 07:56:27 pm
thanks for the help! Lefty, do you know a good schematic anywhere for wiring up that relay? I would still use a tip120 or some sort of transistor, no? does this circuit look good? http://www.flickr.com/photos/anachrocomputer/3242387876/in/photostream/
it's good to know that i can drive the relay with the arduino...having three wall worts for one video would be a little ridiculous...
Pages: 1 ... 5 6 [7] 8 9 10