arduino:diy_ardunio:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arduino:diy_ardunio:start [2015/03/19 17:05] – [Uploading sketches] mithat | arduino:diy_ardunio:start [2016/08/28 18:33] (current) – [Burning the bootloader] mithat | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Setting up for programming ===== | ===== Setting up for programming ===== | ||
- | When you buy a premade Arduino, the microcontroller comes preprogrammed with a bootloader. | + | When you buy a premade Arduino, the microcontroller comes preprogrammed with a bootloader. |
==== Burning the bootloader ==== | ==== Burning the bootloader ==== | ||
Line 17: | Line 17: | ||
You can use an Arduino board to burn the bootloader onto new chips.((See " | You can use an Arduino board to burn the bootloader onto new chips.((See " | ||
- | You can get cards/ | + | You can get cards/ |
=== Nonstandard Arduinos === | === Nonstandard Arduinos === | ||
Line 32: | Line 32: | ||
I think a better approach is to buy an inexpensive USB to serial cable/ | I think a better approach is to buy an inexpensive USB to serial cable/ | ||
- | The classic chip for USB to serial conversion is the FTDI FT232RL((Beware of counterfeits! See [[http:// | + | The classic chip for USB to serial conversion is the FTDI FT232RL((Beware of counterfeits! See [[http:// |
- | + | ||
- | Note that the FTDI FT232RL requires custom drivers on Windows--ones that may [[http:// | + | |
Some options for USB to serial adapters appear to include: | Some options for USB to serial adapters appear to include: | ||
* Arduino' | * Arduino' | ||
- | * SparkFun' | + | * SparkFun' |
- | * CP2102-based boards like [[http:// | + | * CP2102-based boards like [[http:// |
* CH340-based boards like[[http:// | * CH340-based boards like[[http:// | ||
- | The CH340 in particular seems to be taking off with Arduino clone makers--possibly because it's both cheap and has no dramatic driver issues on Windows. However, sourcing the proper CH340 drivers seems to be a bit muddled and not exactly confidence inspiring. | + | The CH340 in particular seems to be taking off with Arduino clone makers---possibly because it's both cheap and has no dramatic driver issues on Windows. However, sourcing the proper CH340 drivers seems to be a bit muddled and not exactly confidence inspiring. |
- | ^ IC ^ | + | ^ IC ^ I/O ^ Linux driver ^ Windows driver |
| FT232RL | Selectable 3.3V or 5V | Buit-in or [[http:// | | FT232RL | Selectable 3.3V or 5V | Buit-in or [[http:// | ||
| CP2102 | | CP2102 | ||
| CH340 | ? | Built-in | Microsoft Update? | | CH340 | ? | Built-in | Microsoft Update? | ||
- | Make sure the I/O levels of the adapter are compatible with the microcontroller you are programming. FIXME Are Atmega programming inputs TTL capable?If your adapter card has 5V or 3.3V outputs available, you can use that to power your 5V or 3.3V microcontroller if needed. | + | Make sure the I/O levels of the adapter are compatible with the microcontroller you are programming. FIXME //Are Atmega programming inputs TTL capable? |
Connect the data pins as follows: | Connect the data pins as follows: | ||
Line 60: | Line 58: | ||
|DTR | Reset, through a 100nF capacitor* | | |DTR | Reset, through a 100nF capacitor* | | ||
- | *The reset pin on the microcontroller should have a 10K pullup resistor on it. The 100nF capacitor takes the adapter' | + | *The 100nF capacitor takes the adapter' |
As far as I know, you can use the Arduino IDE to upload sketches as normal with this setup. | As far as I know, you can use the Arduino IDE to upload sketches as normal with this setup. | ||
- | This video is instructive. | + | This video is instructive: |
{{youtube> | {{youtube> | ||
+ | |||
+ | ===== KiCad subcircuit ===== | ||
+ | For (temporary? | ||
+ | |||
===== Some references ===== | ===== Some references ===== |
arduino/diy_ardunio/start.1426784756.txt.gz · Last modified: 2015/03/19 17:05 by mithat