I bought this thing off of eBay:
USBtoFT232RL
eBay Link
Will it allow me to program an ATmega[xxx] (Arduino clone) with a bootloader?
--> If so, how would I go about it? What should I do, and what should I certainly not do?
--> If not, what do I need (or where can I learn) to be able to use an Arduino clone with the Arduino IDE?
I'm a bit new to Arduino, and since I learned that a fair amount of the clones being sold on eBay don't have a bootloader, I wondered how to fix this. (and the "barebones" seem to be quite a bit cheaper)
Answer - summarized from different answers below (as I can only mark one answer below as accepted):
- Can you use an FT232R to burn a bootloader onto an AVR (such as an ATmega328)?
- => Yes you can, though it's a bit annoying to do, as it's slow and a bit more complicated than just plug and play. See the first part of Chris Stratton's answer below.
- I already have a working Arduino style board, can I use that?
- => Yes, you can use for example a UNO-style board to program another. This process is explained here: http://arduino.cc/en/Tutorial/ArduinoISP, which was referenced in the second part of Chris Strattons' answer below.
- The two options above are too much of a hassle for me, or I don't have an Arduino yet/available, is there another option?
- => Yes, you can buy a USB to ISP (In-System Programmer) board/programmer. They're pretty cheap and are called USBISP or USBASP for example. Here's an example: http://www.ebay.com/itm/180980285082, referenced at the end of MatsK's answer. (or an even cheaper one: http://www.ebay.com/itm/390806886235).
-
None of the Arduino clones I bought (from several web stores) came without a boot loader. They were all programmed with bootloader / blink example. How did you determine there is no bootloader on it?jippie– jippie2014年07月20日 08:04:19 +00:00Commented Jul 20, 2014 at 8:04
-
Because I asked the seller, for example the Mini Pro on the page doesn't have one: ebay.com/itm/400683486113 (while their 'Nano' does).KJdev– KJdev2014年07月20日 23:13:22 +00:00Commented Jul 20, 2014 at 23:13
3 Answers 3
In fact, you can, but you are unlikely to enjoy it as it will be fairly slow.
While this module is intended for serial communications - which the ATmega won't support until it has a bootloader on it - the chip around which it is built can also be operated in "bitbang" mode:
Using reconfigured pins of this wired to the ISP pins of your target, and an implementation of the ISP algorithm running on the PC, it will indeed be possible to load a bootloader on to a new ATmega chip. However, USB is not designed for this type of usage - it is meant to move large blocks of data, rather than to efficiently do sequences of tiny operations. The result is that the loading process will be drastically slower than with other methods. You may also spend a fair amount of time tracking down software to do it, or writing your own.
If you have an already working Arduino-style board available, you can use that to program your new chip:
-
2
avrdude
has a number of programmer entries withft232r
in the name, implementing various bitbang configurations for FTDI chips, so the software side is pretty much solved. That said, I agree with @ChrisStratton that it's not much fun.microtherion– microtherion2014年07月20日 09:01:23 +00:00Commented Jul 20, 2014 at 9:01 -
Drastically slower, meaning a few minutes instead of seconds, or even more? (ballpark number's fine). That would only be the first time then, for burning the bootloader? Because after the bootloader's been put in it can be programmed through a serial connection, meaning seconds, right?KJdev– KJdev2014年07月20日 23:07:15 +00:00Commented Jul 20, 2014 at 23:07
-
I expect it would take less time to run than it would to find the software to do it that way, but yes, the bootloader is fairly small and only needs to be loaded once.Chris Stratton– Chris Stratton2014年07月21日 05:39:47 +00:00Commented Jul 21, 2014 at 5:39
-
Ok, that's what I figured. I think I'll be using your second suggestion since I already have a UNO clone.KJdev– KJdev2014年07月21日 08:29:06 +00:00Commented Jul 21, 2014 at 8:29
You must use a ISP or (HV)PP programmer in order to write the Arduino (or similar) bootloader to the chip first. Only once you have done so will you be able to program it via a serial connection.
Will it allow me to program an ATmega[xxx] (Arduino clone) with a bootloader?
NO. The serial device can only be used when the Atmel ATmega chip has a bootloader burned onto it.
--> If so, how would I go about it? What should I do, and what should I certainly not do?
To burn a bootloader onto a Atmel AVR chip you need a "AVR ISP (In-System Programmer)". There is a small 2x3 pin contact on your Arduino board.
In the Arduino IDE under the menu "Tools", "Programmer" you will find the different "AVR ISP (In-System Programmer)" that you can use.
Please note that some programmer have an 2x5 pin ISP contact and if that is the case you will also need to buy a 2x3 to 2x5 adapter.
Ref.: http://arduino.cc/en/Hacking/Bootloader
--> If not, what do I need (or where can I learn) to be able to use an Arduino clone with the Arduino IDE?
Most Arduino clones bought on ebay have info witch clone of Arduino they are.
I'm a bit new to Arduino, and since I learned that a fair amount of the clones being sold on eBay don't have a bootloader, I wondered how to fix this. (and the "barebones" seem to be quite a bit cheaper)
Im a bit confused, I have bought ~10 Arduino clones from ebay and all had a bootloader. And they are clones of UNO, Nano, Leonardo and Mini Pro and that is what I uses for settings in my Arduino IDE.
I'm interested in witch ebay clones that doesn't have a bootloader, could you post a comment with that info?
I use a USBASP (example: http://pages.ebay.com/messages/page_not_responding.html) as my external programmer.
-
The serial device can only be used when the Atmel ATmega chip has a bootloader burned onto it. — This is true, as far as that goes, but the FT232 also has bitbang mode.microtherion– microtherion2014年07月20日 08:58:24 +00:00Commented Jul 20, 2014 at 8:58
-
"Most Arduino clones bought on ebay have info witch clone of Arduino they are." > I'm not confused about which clone/model they are, just curious about how to burn the bootloader ;) I asked a seller of a 'Mini Pro' on the following page whether it has a bootloader, and he says it doesn't: http://www.ebay.com/itm/400683486113 (while their 'Nano' does).KJdev– KJdev2014年07月20日 23:11:50 +00:00Commented Jul 20, 2014 at 23:11
-
DaJF it was not my intention to be condescending.MatsK– MatsK2014年07月21日 07:06:34 +00:00Commented Jul 21, 2014 at 7:06
-
No problem, I didn't interpret it that way, just wanted to clarify :) The fact that you haven't come across a clone without a bootloader gives me hope I won't either, so thanks for the info.KJdev– KJdev2014年07月21日 08:15:18 +00:00Commented Jul 21, 2014 at 8:15
-
My FT232RL has a 2x3 pin ISP header eBay, but I did not check it yet.user3028– user30282014年07月22日 19:08:56 +00:00Commented Jul 22, 2014 at 19:08