This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:install:quickinstall [2008/11/05 21:53] – tekitatud raivo | en:install:quickinstall [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Quick Start Up for the Mechatronics Kit ====== | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | |||
| + | by Raivo Sell (raivo.sell@ttu.ee) | ||
| + | |||
| + | Applies to the Mechatronics Kit Basic and Advanced | ||
| + | |||
| + | (http:// | ||
| + | |||
| + | You can get the software from the | ||
| + | * CD, supplied with the Kit, | ||
| + | * from www location: http:// | ||
| + | * or from the component producer’s webpages. | ||
| + | |||
| + | Install the software in the following order: | ||
| + | - AVRStudio4 | ||
| + | - WinAVR (Change folder name to: C:\Winavr) | ||
| + | - USB-COM draiver (CDM 2.02.04.exe) | ||
| + | - Connect the USB programmer and let the windows install the driver (will happen | ||
| + | automatically) | ||
| + | |||
| + | You should see the following message on the Windows status bar (Fig 1) | ||
| + | |||
| + | {{: | ||
| + | Figure 1 Installing Programmer driver | ||
| + | |||
| + | Determine which port number was assigned to the USB converter (depends how many | ||
| + | virtual ports you have been installed previously). | ||
| + | Open Windows Device manager (Fig 2) and Ports (Fig 3). | ||
| + | |||
| + | You will see the port number on the brackets – e.g. USB Serial Port (COM19) | ||
| + | |||
| + | {{: | ||
| + | Figure 2 System Properties Dialog (Device manager) | ||
| + | |||
| + | {{: | ||
| + | Figure 3 Ports (COM & LPT) | ||
| + | |||
| + | NB! AVR Studio allows only ports from COM1….COM4 | ||
| + | In case of bigger than COM4 you need to redefine your USB Serial Port to available port | ||
| + | between COM1 …. COM4 | ||
| + | Open port Properties – Settings and Advanced | ||
| + | |||
| + | {{: | ||
| + | Figure 4 Selection proper COM port | ||
| + | |||
| + | Select port between COM1 and COM4 | ||
| + | If these ports are in use you may still select them, but some of your other device might | ||
| + | get in conflict. | ||
| + | It might happened that Device manager does not change the port number on the end of | ||
| + | port name. Reopen the Device manager to refresh the port names (Fig 5). | ||
| + | |||
| + | {{: | ||
| + | Figure 5 Proper COM port is assigned (after Device manager reopen) | ||
| + | |||
| + | Open AVR Studio and create New Project (ref. Lab1a in Lab book). | ||
| + | Connect programmer with ATMega128 development board (Fig 6). | ||
| + | |||
| + | {{: | ||
| + | Figure 6 ATMega128 and programmer connection | ||
| + | |||
| + | Type the following simple source code and compile it (F7). | ||
| + | Make sure that compilation results with the message: Build succeeded with 0 Warnings... | ||
| + | |||
| + | Try to execute it (Ctrl+F7). | ||
| + | Start the program by pressing F5. | ||
| + | |||
| + | <code c> | ||
| + | #include < | ||
| + | int main(void) { | ||
| + | DDRB = 0xFF; | ||
| + | PORTB & | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | On-board LED PB7 should be go ON | ||
| + | LED PB7 | ||
| + | Change the line in the code: | ||
| + | |||
| + | <code c> | ||
| + | PORTB |=(1<< | ||
| + | </ | ||
| + | On-board LED PB7 should be go OFF | ||
| + | If LED works fine you have successfully installed and configured your programming | ||
| + | environment. | ||
| + | |||
| + | You can proceed with the Labs found in the Lab book (Hands-On Exercises | ||
| + | ISBN: 978-9955-20-340-7) http:// | ||
| + | |||
| + | For more info you look: | ||
| + | http:// | ||
| + | http:// | ||