SparkFun Electronics Commentsurn:uuid:214d0e4e-f1b1-d287-ce26-ac5b4c9f82492024-03-28T09:21:08-06:00SparkFun ElectronicsM-Short on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PM-Shorturn:uuid:208dfc1c-f7d5-97d1-bf71-63fe4e88241d2016-02-22T09:19:05-07:00<p>Yes, the chip is stable at 1.8V to 5V although faster speeds may not work at lower voltages (see datasheet). You should be able to safely power the chip with 4.5V, although a few words of caution. First is you don't want a power supply with spikes in it as that might damage the chip. AA batteries really shouldn't have spikes, but this is a general rule when choosing not to use a regulator. Second Alkaline AAs are 1.5V, but rechargeables are usually 1.2V meaning your total voltage on the chip would be 3.6V. The microcontroller will be fine with this, but make sure any peripherals, this will in theory limit the speed you can run the microcontroller although we often run this chip at 3.3V/16MHz even though that is outside of spec.</p>
Customer #627702 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #627702urn:uuid:51d59a59-adaa-fdbf-f17b-38245d71fbb72016-02-21T14:30:17-07:00<p>What does 1.8V to 5V operating voltage mean? Does that mean that the chip is stable with an input voltage between 1.8V and 5V? If that Is true, can I safely power the chip with 4.5V (3 AA batteries) and not have a voltage regulator?<p>Thanks in advance,
-Rohan</p></p>
M-Short on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PM-Shorturn:uuid:427fa155-5668-ebb0-9c9c-9c0ca3b861372016-01-19T14:50:53-07:00<p>The short answer is to use an Arduino. The Arduino Uno is basically a development board for this chip providing you with things like a clock crystal, reset button, power regulation, and USB to serial adapter. But assuming you are using your own custom board, or putting that all on a breadboard or proto board the Arduino IDE is probably the easiest place to start. There is tons of example code for Arduino including example code for many of our boards. In fact the Simon kit you linked to actually uses this chip while running Arduino code.<p>Arduino is a hard concept to explain because there are so many parts. There are the Arduino boards (and their clones) like the <a href="https://www.sparkfun.com/products/11021" rel="nofollow">Arduino Uno</a>(and the <a href="https://www.sparkfun.com/products/12757" rel="nofollow">SparkFun Redboard</a>) which provide you with the chip as well as supporting circuitry. There is the bootloader which is a piece of code that allows the chip to be easily programmed over serial instead of with a special programmer. Then there is the Arduino IDE which is a software development environment designed to make programming easier. Because the whole thing is open source you can put a copy of the bootloader on this chip if you want, and you can use the Arduino IDE whether or not you use the bootloader.</p><p>In order to learn how to code in Arduino, we recommend the <a href="https://www.sparkfun.com/products/12060" rel="nofollow">SparkFun Inventor's Kit</a>, you can also check out the manual online if you don't want to buy the kit. The first few lessons are on how to blink and control LEDs which seems to be what you are looking for. You can also check out the code on the Simon Kit which you linked to since that is also written in the Arduino IDE. I've also included a few links for you to check out below, and if you have any other questions feel free to email our techsupport team at techsupport@sparkfun.com.</p><p><a href="https://learn.sparkfun.com/tutorials/what-is-an-arduino?" rel="nofollow">What is an Arduino</a></p><p><a href="https://learn.sparkfun.com/tutorials/installing-arduino-ide?" rel="nofollow">Installing the Arduino IDE</a></p><p><a href="https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader?" rel="nofollow">Installing the Arduino booloader (or other code)</a></p></p>
deemeetree on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pdeemeetreeurn:uuid:a9547959-ede7-8853-260a-779d62a59cbe2016-01-19T10:43:30-07:00<p>Hey! Can somebody tell me how those chips are programmed? For instance, what would be the program to make it work as a controller for light diodes in this SparkFun kit: https://www.sparkfun.com/products/13708<p>I know it might be a lengthy subject, but maybe a short intro or a link to where I can read about those stuff?</p></p>
M-Short on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PM-Shorturn:uuid:4de47740-fb53-e57a-a6ef-816c6f5925802015-01-30T10:40:55-07:00<p>A bit late, but worthy of an answer. The ATMega328 has a built in 8MHz clock, you can use this clock at 8MHz, or divide by 2 or 8 and run it at 4MHz or 1MHz. Or you can use an external crystal (I believe up to 20MHz) which is much more accurate. The fuse bits are what controls whether you are using the internal clock or an external crystal, they also control whether you are dividing that clock or not. The chip does need to be configured to use a clock, and if it is set to use an external crystal and one is not there it will not work. But if you change the fuse bits to use the internal clock it will work. Keep in mind that your code is compiled knowing what clock speed you are using. If that clock speed changes all the timing will change (SPI, I2C, UART, PWM, delay, etc.), so your code may or may not work right.</p>
M-Short on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PM-Shorturn:uuid:932d10a2-0473-3eba-732c-4f3438f7af762015-01-30T10:31:54-07:00<p>This does not come pre-loaded with any bootloader or software. We do sell this chip with the <a href="https://www.sparkfun.com/products/10524" rel="nofollow">Optiboot</a> bootloader as well. This is the same bootloader used on the Arduino Uno and the Redboard. If you are looking for a different bootloader you would need to install it yourself.</p>
Customer #457480 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #457480urn:uuid:8ace0028-cca8-495e-5f93-7e365c9613612015-01-29T17:08:01-07:00<p>Does this come pre-loaded with the bootloader???</p>
Customer #601692 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #601692urn:uuid:bda66b3e-8a80-5cb6-a3e3-181466c864ba2014-10-01T20:10:04-06:00<p>Once already programmed with a sketch, do I still need the external 16mhz crystal for the standalone atmega328p to run normally?</p>
GraysonR on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PGraysonRurn:uuid:e1795733-ebb2-3331-7db2-2a847c3d48022014-02-24T08:15:13-07:00<p>Does this come pre-loaded with the bootloader?</p>
NuDD on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PNuDDurn:uuid:9d1d87f3-13ab-d634-b114-8af702d232232013-12-19T11:44:09-07:00<p>with the picoPower you can decrease the power need by the mcu during some of the sleeping modes (it deactivates the power supply monitoring). It is a deliberate action so if you don't use it the won't change anything.</p>
Customer #430885 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #430885urn:uuid:6da78204-182c-6511-8273-fd01045e53a82013-12-11T20:11:13-07:00<p>Propeller is good choice when doing lots of tasks at once: set each of eight cores doing a few tasks and don't worry about interrupts or other timing problems. Use C language and there is a good tutorial. Lots of objects/libraries for motor control, GPS, comm with other chips, etc.
http://www.parallax.com/microcontrollers/propeller
good fast tutorial: http://learn.parallax.com/propellerc</p>
Customer #197750 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #197750urn:uuid:b73d7c1a-160b-98bf-c2e1-a9d53c697eff2013-10-22T10:02:09-06:00<p>These AVR processors are outdated for most robotics applications. I mean, these specs are 1990's vintage, at the same price as a much more powerful ARM chip*! It amuses me to no end every time someone tries to strap these to a multicopter and try and hack it into doing advanced flight calculations. If I were you, I'd snag the Maple or the Maple Mini for the application you described - it has multiple hardware UARTs, i2c and SPI ports that can run at the fastest bauds you could ever want; ideal for communicating with GPS modules at the same time you're talking to other widgets and gizmos.<p>*= yes, I know the Maple is more expensive than this chip, but compare one to a full, store-bought Arduino...</p></p>
Oddstr13 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328POddstr13urn:uuid:41f9b827-bafe-150e-5cfd-7b9393e539a22013-09-26T14:22:30-06:00<p>Product Card: http://www.atmel.com/devices/ATMEGA328P.aspx</p>
MikeGrusin on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PMikeGrusinurn:uuid:4179dea7-1b2f-677c-2bca-c9c0795213102013-09-11T13:08:56-06:00<p>Avrdude's 328 setting should work for all 328 variants. The 'p' doesn't affect ISP programming.</p>
Avatar on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PAvatarurn:uuid:facd2c1b-afd3-bdf5-45c7-f33ee628f8202013-09-10T20:23:06-06:00<p>Does the Atmega328 without the "p" support Avrdude SPI? i don't see this part listed on the support device list.</p>
16 BIT HOMEREW on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328P16 BIT HOMEREWurn:uuid:74eb8a10-6eb1-7cb5-0a7b-8d1e3368f1ee2013-07-22T14:37:14-06:00<p>Has anyone used this as the main cpu in one of their projects? I need a Cpu capable of running a whole slew of motor controllers, other little Cpus and gadgets and gizmos. I need it to handle Gps as well. Would this work or should I wait for a different one to come along? Thanks, Eddie D.</p>
MattCanterbury on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PMattCanterburyurn:uuid:f5db1865-6439-421b-539d-77beff070ee42013-03-06T08:44:15-07:00<p>Figured I would give my two cents on this processor. I have an Arduino Mega and wanted to move out of using it for projects. This seemed like a good start for using something that you can program in actual C and it is much smaller than the Arduino Mega. I hit some small snags with trying to interface to it. I used my Arduino Mega as an ISP, which probably makes things a bit more complicated than just using an actual AVR programmer. Will see how the processor holds up after it has been used for a while. So far processor has performed as expected.</p>
MikeGrusin on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PMikeGrusinurn:uuid:1f694e92-323a-165e-9b06-a0a37581527e2013-02-11T14:03:52-07:00<p>20MHz is the maximum recommended speed., but you can always make these chips run more slowly. Around here we typically run these at 16MHz on 5V, or 8MHz on 3.3V. The slower you clock it, the less power it will use and it will run on lower voltage.</p>
madara_x64 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pmadara_x64urn:uuid:bf9fb061-3baf-92ad-9b11-77f98c6906a82013-02-11T13:11:09-07:00<p>Well it depends. Do you mean using this crystal with a 328 with the arduino boot loader on it or just a raw 328? If its the former, you'll need to tweak some settings but it can be done. A Google search for running Arduino on a 16Mhz crystal should give you the info you need.So long as the chip is configured properly for that clock frequency, it should run without a <em>noticeable</em> drop in speed. If I'm wrong, someone please correct me.
If its the latter, sure, the chip will run "slowly" (depends on what you're comparing it against though), but 16Mhz is a good frequency for a great many number of things. Depends on your specific use case.</p>
IvanDeft on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PIvanDefturn:uuid:eb79ef8f-4045-13cf-4d1e-baadcfd28ce72013-02-10T13:55:12-07:00<p>Somebody, please answer! )</p>
IvanDeft on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PIvanDefturn:uuid:70f5bc13-fc62-2704-5a00-83dc9bc4cbd22013-01-21T09:06:13-07:00<p>Hello!
Please, answer: what difference with using other crystal? For example 16MHz? Can this make some internal errors, or this just make this chip slowly???</p>
nodoubtman on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pnodoubtmanurn:uuid:631dcad7-a9ef-523a-d999-ffa02c55b2b72012-10-26T19:51:59-06:00<p>Hi! I have arduino uno, can i upload the code using arduino to a ATMEGA328p chip??<p>thank you!
marC:)</p></p>
Soshimo on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PSoshimourn:uuid:f5f02390-d474-749c-4f01-83014f8ee6c32012-09-14T13:46:28-06:00<p>Technically the fastest your bandwidth can go is half the frequency due to Nyquist cutoff. Since the Nyquist frequency is half the sampling rate (and you can't sample faster than the oscillator oscillates) then the best you can get is half your clock frequency. That being said, you can do nothing else in that time but sample. If you need to do any other operations your sampling frequency will drop and your Nyquist cutoff will drop as well. Sampling at double the expected rate is necessary to avoid aliasing. Check it all out here: http://en.wikipedia.org/wiki/Nyquist_frequency</p>
SuperCrackMunkey on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PSuperCrackMunkeyurn:uuid:0c26d459-a0e8-a9df-a7ed-e06d39ec7fc92012-06-03T13:25:16-06:00<p>I had this problem for a long time. Mine was fixed by pressing reset on my uno before burning the chips (after placing the capacitor). Also one of the chips I received from SF was bad. (I know this is an old post, but if it helps others its worth it)</p>
Gen on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PGenurn:uuid:ae56e26b-1157-db86-6721-25bead0a51572012-04-22T18:47:47-06:00<p>My bad, PDIP doesn't.</p>
Gen on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PGenurn:uuid:77a94e25-6229-d1aa-a6aa-2e9e1b14bc702012-04-22T18:35:31-06:00<p>Atmel says these have 8 A/D lines.</p>
Customer #284068 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #284068urn:uuid:c0b86517-fb65-4b55-d896-277cbfc27e6d2012-04-13T00:27:42-06:00<p>I bought 5 of these chip to reprogram it using my Arduino as ISP. I try to burn bootloader with my MEGA 2560 and my UNO with no success. I always have this error:
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.<p>I'm sure i plugged it correctly. I put a capacitor between reset and GND too. What is the problem?</p></p>
Istantinople on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PIstantinopleurn:uuid:8567d411-ece7-e261-1390-ed5efe2d49d82012-04-04T20:19:25-06:00<p>You can program one in C that does have the bootloader installed using the arduino IDE, or you can use AVR Studio (or whatever prefered IDE), AVRDUDE, and a command line workaround. There's a good tutorial for that <a href="http://hekilledmywire.wordpress.com/2010/12/04/22/" rel="nofollow">here.</a> If you reset the arduino right after starting AVRDUDE, you'll access the bootloader at just the right time and program your .hex file instead of whatever the bootloader would normally do.<p>Your bootloader is necessary to program over the integrated USB/Serial connections on the board, but this is your best bet if you don't want to buy more hardware.</p></p>
Istantinople on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PIstantinopleurn:uuid:fad31bea-ff33-557a-f81e-0c956cbccaa72012-03-26T09:05:55-06:00<p>I believe you can use an ICSP AVR programmer like <a href="http://www.sparkfun.com/products/9825/" rel="nofollow">this</a> on your arduino.</p>
penguin359 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Ppenguin359urn:uuid:e0c30037-5ca6-8843-361e-8441b3351f862012-03-08T03:46:00-07:00<p>To clarify, the P means support for picoPower. Searching the datasheet for that term will help clear up a little more what the differences are.</p>
Customer #3321 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #3321urn:uuid:770752f3-3529-782f-916d-38a7b4fb8e802012-02-22T13:02:44-07:00<p>To help build your confidence/comfort level, you might want to try picking up an Ardweeny kit for about $10 (http://www.diybin.com/products/Solarbotics-Ardweeny.html). You will have to spend another $14 on an FTDI (http://www.diybin.com/products/DFRobot-FTDI-Basic-Breakout-3.3-5V.html), which brings the total up to about the cost of an Ardunio on sale. But the FTDI is a one-time purchase - in the future all you'll need to buy is the Ardweeny.
In fact, once you've seen the schematic for the Ardweeny, you'll probably just want buy the parts and assemble your own - that will lower the price to about $7 per project. At that point, you'll probably start buying in bulk to save on shipping!</p>
Pareekshith on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PPareekshithurn:uuid:fd6b504e-c393-556f-0d06-f2023b87c5222012-02-16T19:47:43-07:00<p>Can anyone say what are the LOW and HIGH fuse values for Atmega328p to operate at 20MHz WITHOUT bootloader, When I read the fuse from Arduino UNO it showed as
LOW FUSE=0xFF
HIGH FUSE=0xDE
these are the values for supporting bootloader.</p>
Thimplum on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PThimplumurn:uuid:67140947-1a73-802d-0692-0e5f3a3b61e02012-02-06T06:23:53-07:00<p>Oops. Double post :(</p>
Thimplum on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PThimplumurn:uuid:06df2323-68b2-c471-7d9b-1a5598a422742012-02-06T06:23:49-07:00<p>Nice chip. I just burnt the Arduino bootloader onto it using another Arduino board as ISP.</p>
Customer #36671 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #36671urn:uuid:5b7a63c1-103d-34f1-44dd-5e4cf69e1d7b2012-02-05T13:24:31-07:00<p>There are many instrucables and kits that accomplish this goal. All you need are the schematics and the right parts. Kinda on a time crunch for the Superbowl, but Google it yourself for some links and you will be very happy. :)</p>
Mark01970 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PMark01970urn:uuid:f939da77-e27c-24d3-d380-354844bf54692012-01-14T08:22:08-07:00<p>I am glad you mentioned the breadboarding. I am new to microcontrollers, and I am of very limited income so it took me a while to save up and get an uno and other stuff. I kept thinking that the chips were so cheap, I wonder if it would be feasible to just slap a 328 in my breadboard and get some components. I was not brave enough at the time. Still not sure if I am LOL. ..but at least I know it is feasible now. I need to find a local group or something though. Forums are nice, but meet and greets would be so much better. :)</p>
MikeGrusin on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PMikeGrusinurn:uuid:db98ab53-6466-ad66-79ff-ada639103ff82011-12-18T11:20:47-07:00<p>Try the MEGA8-P in the Atmel library. It should have the same pinout as the 328, but (always!) double-check against the 328 datasheet to be sure.</p>
Soshimo on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PSoshimourn:uuid:b55c17b2-7e38-7cca-dfa8-ca2e3cae673a2011-12-17T10:07:53-07:00<p>Is this a drop in for the mega168? I can't find any eagle libraries that have this part and I've been scouring for at least two hours. The Sparkfun library does have a 168 in both TQFP and MLF packages though. If they are a direct replacement/drop in and the foot print is the same I will use that when I design the board. I really don't want to have to make my own since I plan on fab'ing these boards and I really don't want to spend 50 bucks on a couple of worthless coasters when I do my first run.</p>
Soshimo on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PSoshimourn:uuid:19e7b196-297d-f7b5-cf08-58c160e525a32011-12-12T14:32:17-07:00<p>You can always burn a new bootloader as well. I breadboard these guys all the time. Just pick the right target board (if using 1.0 you can pick Duemilanove w/ATMega328). You can use either an ISP or another arduino board as an ISP to burn the bootloader (the latter is a good option if you don't have an ISP already). You can get an AVR MkII ISP for about 30 bucks.<p>The bootloader and wiring-based language are a construct of the arduino environment. The wiring-based language just abstracts the hardware and pin outs of the devices, nothing more. You can still drop to bare metal whenever you need to, such as burning a new bootloader.</p></p>
WizenedEE on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PWizenedEEurn:uuid:835c4d95-5692-5127-d8c2-5588fb90294a2011-10-31T22:03:21-06:00<p>Actually that will probably not work. I've heard just using the uno setting is fine.</p>
IllogicGate on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PIllogicGateurn:uuid:7f006af2-5f4f-a0e1-968c-88fe706bf2132011-10-31T13:22:45-06:00<p>D*** underscores... oh well, I'll try it.</p>
Customer #161771 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #161771urn:uuid:5249bdbb-8f57-8b3e-be1d-50b9986d229b2011-10-06T02:36:51-06:00<p>I am a beginner and bought the arduino Uno as well as an extra one of these to use with the board. Is it possible to program this Microcontroller using the UNO then remove it placing it on a breadboard to carry out pre programmed code independant of the board ?</p>
Promptcritical on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PPromptcriticalurn:uuid:83f5cbad-5709-8373-ea64-357b0345917b2011-07-24T19:59:42-06:00<p>So no arduino boot loader?</p>
WizenedEE on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PWizenedEEurn:uuid:d17437fd-8e01-2123-daee-b3dad3453dd32011-07-12T22:08:41-06:00<p>Try adding this to /hardware/arduino/boards.txt<br>
I attempted to combine the entries for the duemilanove and uno. It should then show up in the tools->boards menu.<br>
concoction.name=Arduino Duemilanove w/ Optiboot Bootloader<br>
concoction.upload.protocol=stk500<br>
concoction.upload.maximum_size=32256<br>
concoction.upload.speed=115200<br>
concoction.bootloader.low_fuses=0xff<br>
concoction.bootloader.high_fuses=0xde<br>
concoction.bootloader.extended_fuses=0x05<br>
concoction.bootloader.path=optiboot<br>
concoction.bootloader.file=optiboot_atmega328.hex<br>
concoction.bootloader.unlock_bits=0x3F<br>
concoction.bootloader.lock_bits=0x0F<br>
concoction.build.mcu=atmega328p<br>
concoction.build.f_cpu=16000000<br>
concoction.build.core=arduino</p>
stewie0056 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pstewie0056urn:uuid:ace413e6-374a-bd2a-2346-764d57bbfe512011-07-04T12:33:56-06:00<p>i fried my 328 in my duemilanove and i went on here to order a new on and they stop selling duemilanoves. so i searched atmega328 and the only chip i got in my results was the atmega328 with optiboot for uno. i already ordered that chip and today i came across this and now im worndering if the chip i ordered is going to work? does it matter which atmega328 i use, as long as the bootloader is correct?</p>
UAV Dude on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PUAV Dudeurn:uuid:41c8e7be-0815-9193-5c05-73a84c772a282011-06-20T07:40:20-06:00<p>If I wanted to use the Arduino dev board with an AVR ATMega328 without the Arduino bootloader (just programming in C), could I still program the chip via the USB connection (with some IDE) or would I need to use the ISP connection and some programmer to program the chip?</p>
Dougie on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PDougieurn:uuid:3332e3f6-f52d-e536-8d46-27a4ce2076bc2011-06-08T19:01:42-06:00<p>I'm completely lost trying to get the Arduino bootloader on this. I've read about assembling a circuit with the crystal, setting 'fuses', I tried using an Duemilenove with an atmega168 and arduinoISP, still, Even though it says the bootloader was uploaded, when I take it out of the breadboard and insert it into my duemilenove, it won't upload any sketches. Only says stk500 programmer not responding.<br>
I'm willing to buy a header/programmer/whatever, this is frustrating. Help? Anyone? Bueller??</p>
nebug on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pnebugurn:uuid:905ded53-9c1e-88f9-8494-485696ea3dce2011-05-25T15:14:31-06:00<p>Make sure you have the loading caps (22pF) installed also. This could be your problem.</p>
Customer #148541 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #148541urn:uuid:354f1d99-696f-4e26-a410-3c20eef3651f2011-05-20T07:04:49-06:00<p>I got three of these controllers from here. It's hell of mess. I am trying to use external occilator, the fuse settings i set are LB,HB,EB are FF,D9,FF.<br>
But its is freaking me out. I am totally disappointed. The controller is not picking up the clock. I tried every possible way. Then i soldered Crystal directly on this chip on 9 and 10 pin. It started working. But for rest of two controllers shill don't show any sign to pick up clock. I got alot of other contrllers of atmega i locally buyed from my country. all of them worked perfectly, but specifically buying from Sparkfun is really bad experince for me :@ :@ :@ :@</p>
Tegs on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PTegsurn:uuid:5de461db-e61c-ce39-ca05-a1a6991ba8182011-05-17T13:09:42-06:00<p>cancle this question, didn't see it was answered already :)</p>
Tegs on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PTegsurn:uuid:2fee959f-055a-7936-feee-57ddcb2e0dd72011-05-17T13:07:33-06:00<p>does anyone know what the difference is between the atmega328 and the atmega328p? I've seen them at about a $1 difference per IC</p>
Digisynth on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PDigisynthurn:uuid:d3a3f5b6-ee1a-3db9-21ee-efc8ee0edf752011-04-20T14:51:12-06:00<p>Thanks!</p>
ThinkerT on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PThinkerTurn:uuid:09198c7a-f518-7210-f741-a1dcfcf993102011-04-05T16:27:10-06:00<p>It can read the serial data of any other chip as long as the baud rates are the same. All the serial cares about is the baud, not the hertz of the chips. I think 20MHz is the fastest it "can" go, but I think hackaday did some overclocking with this chip... not sure.<br>
Verify?</p>
Digisynth on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PDigisynthurn:uuid:182ab0f9-f272-30dd-3db0-f317dcf4756c2011-04-02T03:13:34-06:00<p>Noob question: Can this chip also read serial data that is sent at a diferent frequency than itself (for example 16Mhz)? If yes, also at a higher speed than 20Mhz?</p>
Customer #183693 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #183693urn:uuid:384fe920-f333-a7ad-7f7d-64b51ea400a32011-03-29T01:48:41-06:00<p>You can only officially clock it up to 10MHz at 3.3v. High requires at least 4.5v.</p>
Adamant on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PAdamanturn:uuid:5310915a-3212-72b5-15c1-577503c5dbef2011-03-24T12:38:59-06:00<p>Is it possible to program this with an arduino uno, or is the bootloader required for that?<br>
Would this: http://www.sparkfun.com/products/9825<br>
be what I need to burn in the bootloader myself?</p>
Puzzle on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PPuzzleurn:uuid:59169d8c-3039-0c30-27ec-8477dff9e7992011-03-22T21:41:33-06:00<p>Does anyone get this chip work under 3.3V? I can only get it work under 5V 16MHz using Arduino IDE.</p>
Customer #183693 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #183693urn:uuid:e36fc079-8178-bb65-c5b1-91c0ff4937fd2011-03-22T18:47:47-06:00<p>I had just recently purchased this, and the one I received was the ATmega328P. If you send an e-mail to customer service, they can probably confirm this for you.</p>
Rednaxela on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PRednaxelaurn:uuid:bfff164c-389e-3356-92f7-a10fb2a2ee082011-03-11T18:10:48-07:00<p>Is this the ATmega328P, or the ATmega328? The datasheet link and picture show the ATmega328P variant, but the description and title here do not reflect this. I have an application where the low power of the P variant matters.</p>
WizenedEE on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PWizenedEEurn:uuid:ac4068a1-d4be-d6ab-a8cc-1c4d8b9a177a2011-02-01T23:43:42-07:00<p>Actually, it needs to be bootloaded before it will work with the arduino. And please don't be so rude to people - especially since the comment is almost two years old and that was back when all arduinos were shipped with atmega168's rather than the 328 sold here.<br>
But yes, they can be made to be arduino-compatible.</p>
EvilGenius121 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PEvilGenius121urn:uuid:2ca8031f-82f8-9c70-916c-c820b75ec9002011-01-24T19:18:28-07:00<p>dang it they went all out when i was waiting for other stuff to be in stock... such is life</p>
randumnumber on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Prandumnumberurn:uuid:b4d33441-fdad-7f89-f753-82ba33edbeb92011-01-15T03:32:44-07:00<p>I am not going to laugh, just to be considerate, but YES. this is the chip that is on the arduino, you could unplug the chip on your arduino and plug this one in.</p>
EvilGenius121 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PEvilGenius121urn:uuid:aaedb28d-f2c8-9cbc-af19-c16e424ae6182011-01-13T15:27:39-07:00<p>Any idea when these will be back in stock?<br>
edit: Back in stock as of possibly 1.17.11 (yay!)<br>
edit edit: all gone :( sheesh people! they lasted all of one day!<br>
edit edit edit: back in stock as of 1.20.11. Lets hope the 200 will last longer than the 700some others... (re-yay!)</p>
rjimenez on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Prjimenezurn:uuid:5ceaa3e8-1e8e-ed88-7afe-f771aaf4c0302011-01-11T18:52:47-07:00<p>Yes - no problem at all. Turns out the chip was accidentally fused and programmed for Arduino. I placed it into my Arduino's socket and was able to re-fuse it to require no crystals (using FTDI bit-banging) and then program it through ArduinoISP using my 'duino's original Atmega328. You can also fix this using a breadboard and a crystal or resonator.</p>
Customer #123659 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCustomer #123659urn:uuid:477591f9-f648-755d-c32e-26f71008690e2010-11-16T16:29:50-07:00<p>Were you able to program these using that method?</p>
KiwiJohn on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PKiwiJohnurn:uuid:5463b978-11be-9340-dbbe-8831ec5763542010-11-03T15:48:27-06:00<p>.</p>
CY on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCYurn:uuid:b51c2ee4-7bc5-b650-b52d-c74872d931102010-10-18T23:25:56-06:00<p>What is the difference between ATMega328 and ATMega328p? What does the "p" mean?</p>
rjimenez on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Prjimenezurn:uuid:8d2899c1-1b78-0160-71e0-378e3ccf41b42010-09-29T16:18:15-06:00<p>Could anyone please confirm that these chips use factory default fuse settings? I'm having an unusually hard time programming them with my usual setup (ArduinoISP), with which I've easily programmed the similar 168 from other vendors in the past.</p>
salsa on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Psalsaurn:uuid:28cf9400-4dce-4085-b462-a1891d1b69532010-08-31T15:14:08-06:00<p>Now available! I <3 SFE!!</p>
salsa on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Psalsaurn:uuid:7d610346-4773-c92c-7d2a-dbf5de4fb1b62010-08-30T15:28:34-06:00<p>Too bad the raw chips are unavailable, but the programmed ones ARE available...:(<br>
8/30/10</p>
CalcProgrammer1 on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PCalcProgrammer1urn:uuid:80ba9bde-f95c-2b1f-549d-1c8ffbdf5f7b2009-10-23T21:57:31-06:00<p>This chip is pretty awesome! I bought an Arduino as well as one of these. It comes set for the internal oscillator so all you have to do is throw it on a breadboard, feed it 5 volts, and hook up a programmer. You can program it using an Arduino using "Mega-ISP" (which emulates an AVRISP programmer with an arduino, just have to connect some Arduino pins to the 328's programming pins and use avrdude to write code to it). I also built a cheap "dapa" parallel programmer with around $5 worth of RadioShack parts that works fine. Flashing the bootloader to use this with an Arduino can be accomplished using any programmer (including the Arduino running Mega-ISP) so if you have a working Arduino you can save a bit and flash it yourself.</p>
tr0nk on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Ptr0nkurn:uuid:7c55d116-5f38-345f-a31e-f4282ce6d00b2009-06-03T19:59:27-06:00<p>ATMega328 with arduino bootloader: <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9217" rel="nofollow">http://www.sparkfun.com/commerce/product_info.php?products_id=9217</a></p>
Riley on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PRileyurn:uuid:f622eb3a-f83e-bc8d-aa3d-1704cc2dcd8d2009-04-10T10:00:52-06:00<p>Does this have the arduino bootloader installed like the 168 does? If not could I request that you guys fork this product to have one with the arduino bootloader preinstalled?<br>
Thanks,<br>
Riley</p>
Luco on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PLucourn:uuid:58b72c72-672c-d366-b9c0-c9d431d07d382009-03-31T18:56:44-06:00<p>never mind, the 328s work, my stk doesnt :(</p>
Luco on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PLucourn:uuid:7955727f-d728-95c2-703d-4c67185287202009-03-31T18:50:54-06:00<p>Guys what are the fuse settings ?? I got 2, neither work in my stk500</p>
Kam on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328PKamurn:uuid:5e7cc42b-968e-cb5e-100c-f3eee32f44002009-03-09T16:17:22-06:00<p>How can I get one or three with a bootloader installed?</p>
josheeg on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pjosheegurn:uuid:a4865797-f7f3-1a03-113e-dd8277d403a22009-01-26T08:25:32-07:00<p>This looks interesting too bad they didn't have a higher speed one I am wondering if my sensors hooked to the arduino might not be able to be shoveled to the usb port fast enough...</p>
raf on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Prafurn:uuid:c2f54afb-f890-976f-5f33-a515f01ded592009-01-26T03:48:27-07:00<p>It does work with the Arduino:<br>
<a href="http://spiffie.org/know/arduino_328/" rel="nofollow">http://spiffie.org/know/arduino_328/</a><br>
<a href="http://www.ladyada.net/library/arduino/upgrade.html" rel="nofollow">http://www.ladyada.net/library/arduino/upgrade.html</a><br>
<a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1231871081/9" rel="nofollow">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1231871081/9</a></p>
microbyte on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pmicrobyteurn:uuid:2e9712f6-b1d8-1938-8330-5bfefb8e82ed2009-01-25T10:17:26-07:00<p>Does it work with the Arduino?</p>
jpr on COM-09061 - AVR 28 Pin 20MHz 32K 6A/D - ATMega328Pjprurn:uuid:6c30381f-228e-c3f3-03f3-f12da90bb0fd2009-01-23T17:49:45-07:00<p>Double the ram (2k), and eeprom (1k), as well.</p>