CHALKROACH-1 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| make a chalkroach ATMega32 microcontroller board | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
make a chalkroach ATMega32 microcontroller board set up the programming environment for chalkroach |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Welcome to the chalkroach tutorial. This tutorial is divided into 4 sections:
Please read the Overview and jump to the section you are interested in. Overview A microcontroller is a highly integrated chip (or IC- a small electronic device made out of a semiconductor material) that contains all the electronic components needed to control electronic devices. These components include: a Central Processing Unit (CPU), Random Access memory (RAM), Read Only Memory (ROM), Input/Output ports (I/O ports) and timers. The microcontroller is an indispensable component for any person who wants to do electronics and it is used in a very wide variety of electronic systems around us: Keyboards, electronic measurement instruments, Printers, Cell Phones, Alarm systems and many more.There is a large number of companies that manufacture microcontrollers, one of them being Atmel. One of Atmel's newest product lines is the AVR Microcontroller family. The AVR is a family of 8 bit high performance microcontrollers with low power consumption. The family comprises of three groups: tinyAVR, AVR, and MegaAVR. The three groups differ in the number of pins and size, but have the same instruction set and overall architecture. Chalkroach is a simple, easy to use development board based on the ATMega32 AVR. Once you have built and set up a chalkroach board, you will be able to write simple programs to perform complex tasks with your microcontroller. A very important document to keep at hand when working with a microcontroller is its datasheet. Download the ATmega32 datasheet here and look through it. Although the information will not make a lot of sense at this early stage, it will be useful once you are more proficient in microcontroller programming. In this chalkroach tutorial, we will: - make a chalkroach PCB (A Printed Circuit Board is a flat base of insulating material containing a pattern of conducting material. It becomes an electrical circuit when components are attached and soldered to it). - solder the chalkroach components to the PCB - set up the PC environment for programming chalkroach by downloading software such as: AVRStudio, AVR-GCC - install AVRlib, a C library to make programming easier and less time consuming (a library is collection of small programs used to develop larger programs. Including libraries in your program allows you to directly use functions that perform common tasks and enable you to write more complex programs easier). - set up the chalkroach by downloading a bootloader on the ATMega32 (a bootloader is the code that first executes when the microcontroller device 'boots' ie after a reset or a power-on. The bootloader allows for the easy loading of user programs on the microcontroller). - Write a C program, debug it and load it on the chalkroach more links:
Components list
Eagle Files Download the chalkroach design files below. The design was made on eagle, a PCB layout editor software from cadsoft. Once you have these files, you can use the board layout file (chalkroach.brd) to make the PCB. There are several ways to manufacture PCBs: - send pcb out to be made (send .brd file to custompcb and they will manufacture the pcb, drill it and deliver for a reasonable price) - etch pcb in house (see tutorial here)
Drill bits If you decide to manufacture the pcb yourslef, you will have to drill holes for the components. You can use a drill press or a dremel tool for this and purchase the drill bits at DrillBitCity. Below is the size drill bits you need for each of the components on chalkroach.
Stuffing Now that you have made and drilled the board, you can solder the components onto it. To help with the correct placement of the components, you can use the chalkroach.sch file, as well as the pictures below. more links Pictures
references
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
make a chalkroach ATMega32 microcontroller board set up the programming environment for chalkroach |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||