The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 08:04:22 20:04


Login with username, password and session length


Pages: [1]
Print
Author Topic: matlab interface with avr (tutorial)  (Read 8519 times)
0 Members and 1 Guest are viewing this topic.
tokyo_emb
Junior Member
**
Offline Offline

Posts: 90

Thank You
-Given: 144
-Receive: 44


« on: June 20, 2011, 09:08:58 21:08 »

hello,
       here is some interface showed including microC code and proteus schematic.

1.ATMEGA16 interface with LCD (microC code & proteus file)
2.ATMEGA16 interface with KEYPAD 4X3 (microC code & proteus file)
3.ATMEGA16 interface with RS232 serial port (microC code & proteus file)
4.ATMEGA16 interface with MATLAB (microC code & proteus file, matlab code)

how to test the design.

first run proteus. then run matlab and execute matlab code. matlab will send data to avr first. avr will display the data in lcd. then write down any 4digits by keypad in proteus. to send this 4digits to matlab press * or press # to reinsert the digits.

notes:- matlab delay is 2second.so if you sleep while pressing the keypad then serial port timeout will happen within 6 to 7seconds and matlab will close the port.

secondly if you want to send more data to avr then you have to change in microC code. you have to increase the value of i variable after which avr will stop taking data. and if you want to send more data to matlab then change variable in microC code....

special note:- in microC pro avr keypad_key_press and keypad_key_click neither of this function work for the keypad.so i have build myself a function called keypad...


download codes and schematic:-
http://ifile.it/z8oltjd
https://rapidshare.com/files/1749134078/matlab___proteus_interface.rar
http://www.megaupload.com/?d=DL8X1VIR
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC