Loading...

Learning   Examples | Foundations | Hacking | Links

本文介绍如何给Arduino(或者任意一个Atmega8芯片)一个做并口编程器,只利用这个既便宜又有趣的并口编程器,就可以将固件烧录进板子上。不过如果想要板子和电脑通信,你还是需要一个串口接头

接头的后视图.

制作过程中需要的东西:

工具:

  • 电烙铁
  • 热风枪(可选)

需要的元器件:

  • (2x) 470欧姆电阻(黄-紫-褐)
  • (1x) 220欧姆电阻(红-红-褐)
  • (1x) 并口接头或者并口转串口接头
  • (2x) 三口的杜邦线

Instructions

先把并口接头上的线都焊掉(如果是新买的接头,跳过这一步)

分别给并口接头的1脚和2脚焊各焊接一个470欧姆的电阻。

焊了一个470欧电阻在1脚的并口接头。

再将一个220欧的电阻焊到接头的11脚。

Solder, in order, the three wires of one of the cables to the resistor on pin 11 (which goes to pin 18 on the Atmega8), to the resistor on pin 1 (which goes to pin 19 on the Atmega8), and directly to pin 16 (which goes to the reset, pin 1).

Parallel connector with two of the three wires of a cable soldered to pins 11 and 1, respectively.

Solder the middle wire of the second cable to the resistor on pin 2 (which goes to pin 17 on the Atmega8), and one of the other wires to pin 18 (which goes to ground). (The third wire is not used and may be cut short).

Parallel connector with both cables soldered in place.

Connect the ends of the two cables so that, when viewed from the connector end, the unused wire is to the upper left and the wire to pin 11 is to the upper right (this is considered pin 1 of the connector and should be matched with the pin 1 indicated on the Arduino board).

Hot glue the wires inside the case of the parallel-to-serial adapater, making sure that any uninsulated wires are kept apart. Or, if not using an adapter, wrap the exposed wires with electrical tape to keep them from touching.

Once the glue dries, reclose the case of the parallel-to-serial adapter.

Software

You'll need to download giveio from MIT's Microcomputer Project Laboratory (thanks Jim!) and run the enclosed ginstall.bat file.

See the bootloader page for details on using your new parallel port programmer to burn the bootloader onto the Arduino board.

Or, if you're programming using uisp directly, you can use a command line like:

uisp -dprog=dapa -dpart=ATmega8 if=prog.hex -dlpt=0x378 --erase --upload

@author: David A. Mellis IDII (with thanks to Erez Kikin-Gil for building one too and to Massimo Banzi for the request and the instructions)

@revised by: Marcos Yarza K3