Morse code Interpreter

We finally finished the embedded systems mini project, thank to Allah and  the team(Ali Al Lawati, Hamza Al Abri, and Sulaiman Al Habsi) work. The project is about design and implement a device that can hear a Morse code through a microphone and translate the to text. the text will be displayed on a 2×16 LCD screen, so the device can only translate 32 character [aA-zZ 0-9] at a time .We use an op-amp to amplify the sound signal, couple of capacitor  to filter out the some nasty frequencies and an ATMega8 as processing unit. The processing algorithm will be described later on, and it will be available as will as the source code of the project after presenting the project to the instructors.The device work perfectly with sound signal with frequency span of [1.2KHz – 1.5Khz],but it can be modified to work with and reasonable rang . A signal generated from this link is Ideal.

You can get the report with description and some of the code from REport

Here is a video show how the device work .

also here is some PCB layout we have designed for the project.

interfacing embedded system with VB.net LAB expirement

make two software one for computer and another one for Atmel’s Atmega8 AVR microcontroller .the first software is loading a number from web page (http://172.22.13.12/embedded/request.php?id=85258) . And send them to a micro controller using serial port. Configure your serial port as following (one stop bit, no parity, baud rate=19200 and 8 bit data size). Use URLrequest to make the request and use this half ready project to write the software for the micro controller .you’ll write your code in main.c .

Using eclipse AVR application development plug in

In previous post you have seen how to install AVR plugin in eclipse IDE. In this post you are going to see how to use the plugin.  First of all you will need to create a new project. Go to menu bar and select “new” and from the submenu select “C Project”.

By expanding the folder “AVR cross target application “choose Empty Project” and “AVR-CGG toolchain” from the toolchain list .Type down the project’s name, and then hit next.

Here you can click on advance setting but that will be explained in a coming post, when we come to explain avr-dude. Anyway make sure that both list items are ticked and proceed to the next form.

Choose your microcontroller type and its clock frequency (this is similar to #define F_CPU 8000000UL) in WINAVR.

In the “Project Explorer” tab right click on your project and choose “New > Source File” from the pop up menu. Similar way you can add a header file or C class file. Type in the file name and you must type the file’s extension witch is “.c” in this case.

Write in your code ,note that if you press “ctrl” + ”space”  the IDE can suggest to you thing to write .Also there is some useful tab under the work space tab from these tabs you can see what are the supported register , ports and interrupts  for you MCU.

To compile your code you’ll need to save your work because eclipse will not save it for you. Then click on the small arrow near the hammer icon in the tools bar and choose “Debug” .The errors will be displayed in the problems tab and so the warnings . This will generate new folder in the project explorer bar called Debug. If you browse the folder you will notice that the hex file is not there yet, that’s because we haven’t built the project yet. To build the project tick on “Release”  from the same menu you clicked debug and new folder will be add to the project explorer called release and the contains the “.hex” file .