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 03:06] – [Burning the bootloader] 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 28: | Line 28: | ||
==== Uploading sketches ==== | ==== Uploading sketches ==== | ||
- | You can use a spare Arduino board to upload sketches to the standalone Arduino. The idea is that you remove the microcontroller from the spare Arduino board, then connect TX, RX, and Reset from the board to your circuit.((See " | + | One way to to upload sketches to the standalone Arduino |
- | 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:// | ||
* CH340-based boards like[[http:// | * CH340-based boards like[[http:// | ||
- | * CP2102-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. | + | 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. |
- | TODO: A table with driver | + | ^ IC ^ I/O ^ Linux driver |
+ | | FT232RL | Selectable 3.3V or 5V | Buit-in or [[http:// | ||
+ | | CP2102 | ||
+ | | CH340 | ? | Built-in | Microsoft Update? | ||
- | Make sure the voltage level of the adapter | + | Make sure the I/O levels |
- | ^Adapter board ^ DIY Arduino' | + | Connect the data pins as follows: |
+ | |||
+ | ^ Adapter board | ||
|Ground | |Ground | ||
|TXD | RXI | | |TXD | RXI | | ||
|RXD | TXO | | |RXD | TXO | | ||
- | |DTR | Reset | | + | |DTR | Reset, through a 100nF capacitor* |
- | |V+ | V+ (optional depending on how things are powered) | + | |
- | As far as I know, you can then use the Arduino IDE to upload sketches as normal. | + | *The 100nF capacitor takes the adapter' |
- | This video is instructive. | + | As far as I know, you can use the Arduino IDE to upload sketches as normal with this setup. |
+ | |||
+ | This video is instructive: | ||
{{youtube> | {{youtube> | ||
+ | |||
+ | ===== KiCad subcircuit ===== | ||
+ | For (temporary? | ||
+ | |||
===== Some references ===== | ===== Some references ===== |
arduino/diy_ardunio/start.1426734417.txt.gz · Last modified: 2015/03/19 03:06 by mithat