arduino:diy_ardunio:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
arduino:diy_ardunio:start [2015/03/19 02:52] – mithat | arduino:diy_ardunio:start [2015/03/19 17:26] – [Uploading sketches] mithat | ||
---|---|---|---|
Line 7: | Line 7: | ||
</ | </ | ||
- | ===== Software-ish stuff ===== | + | ===== Setting up for programming |
- | When you buy a premade Arduino, the microcontroller comes preprogrammed with a bootloader. Your premade Arduino also has USB circuitry on it that lets you upload sketches via USB from a host computer. When making | + | When you buy a premade Arduino, the microcontroller comes preprogrammed with a bootloader. Your premade Arduino also has USB circuitry on it that lets you upload sketches via USB from a host computer. When making |
==== Burning the bootloader ==== | ==== Burning the bootloader ==== | ||
Line 15: | Line 15: | ||
The bootloader is a small program that remains constant on the chip and starts off the process of running the sketches that you upload later. You'll only need to burn the bootloader //once// to the Atmega chip. | The bootloader is a small program that remains constant on the chip and starts off the process of running the sketches that you upload later. You'll only need to burn the bootloader //once// to the Atmega chip. | ||
- | 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 === | ||
- | Depending on what kind of AVR you are programming | + | Depending on what kind of AVR you want to use and what features you are using (internal vs. external clock, for example) you may need to provide your IDE with additional '' |
- | * ATmega328pu with internal clock: See " | + | |
- | * ATtiny: See [[http:// | + | * ATtiny: See [[http:// |
==== Uploading sketches ==== | ==== Uploading sketches ==== | ||
- | For uploading | + | One way to to upload |
- | 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 used 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:// | Note that the FTDI FT232RL requires custom drivers on Windows--ones that may [[http:// | ||
Line 39: | Line 39: | ||
* Arduino' | * Arduino' | ||
- | * SparkFun' | + | * SparkFun' |
- | * CH340-based boards like[[http://www.ebay.com/itm/Replace-PL2303-USB-TO-TTL-232-RS232-Serial-Port-CH340-for-Arduino-PIC-AVR-Modbus-/ | + | |
* CP2102-based boards like [[http:// | * CP2102-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. | + | 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. |
- | 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 | + | |
+ | *The reset pin on the microcontroller should have a 10K pullup resistor | ||
- | As far as I know, you can then use the Arduino IDE to upload sketches as normal. | + | As far as I know, you can use the Arduino IDE to upload sketches as normal |
This video is instructive. | This video is instructive. |
arduino/diy_ardunio/start.txt · Last modified: 2016/08/28 18:33 by mithat