arduino:diy_ardunio:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
arduino:diy_ardunio:start [2015/03/19 04:48] – [Uploading sketches] mithat | arduino:diy_ardunio:start [2016/08/28 18:30] – [Setting up for programming] 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 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. 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/ |
- | | FT232RL | Buit-in or [[http:// | + | | FT232RL |
- | | CP2102 | Built-in or [[https:// | + | | CP2102 |
- | | CH340 | Built-in | Microsoft Update? | + | | CH340 | ? | Built-in | Microsoft Update? |
- | Make sure the voltage level of the adapter | + | Make sure the I/O levels |
+ | |||
+ | Connect the data pins as follows: | ||
^ Adapter board ^ DIY Arduino' | ^ Adapter board ^ DIY Arduino' | ||
Line 56: | Line 56: | ||
|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.txt · Last modified: 2016/08/28 18:33 by mithat