Show Posts
Pages: [1]
1  Development / Other Hardware Development / FM Radio Tuner using RDA5807M on: June 21, 2013, 07:52:44 am
Hi,
Thought of hacking a Digital Radio Tuner and see how it works.
The tuner card had IC RDA5807M and works at 3.3 Volts.

I have made a library to read and write data bytes using the schematics and source code attached and it has following functions.

Function to set Initialize - void  RDA5807P_Init(void);
Function to set FM frequency - RDA5807P_SetFreq(9500);
Function to set Seek Fwd/Rev- void RDA5807_FM_seek(short int freq,int volume,int seek_th); //Seek_th - See threshold

Working..
When the initialization is done,  the IC starts scanning all the stations which can be read from register 0x0AH.
Status register 0x0AH and 0x0BH are read to know what is the current channel and signal strength.

Through the program we have checked that the Hex values of each register (0x02H- 0x07H) are being calculated correctly by REG2,REG3 and REG5 functions.These hex values are written to RDA5807M .

I am able to read/write data from the device but the IC RDA5807M is always working in Seek mode and I have debugged following problems.

  • Writing to Seek On/Of bit in 0x02H has no effect.
    Even if we are programming BAND (10)- 76-108 Mhz, the read channel data is always tuned according to BAND(00) - 87-108 Mhz.
    Writing to volume[3:0] bits for which are for DAC gain control for scaling volume effects Tuning.
I have attached the code If anybody is working on a similar thing or have done it in past please give a quick look and see if I am doing any mistake in software.As I do not know how to tune RDA5807M because they have not given much information in their datasheet about how to tune etc..

I have also attached a reference code in .rar which I found on-line.It might help.

I am very much interested to work if anybody from my area i.e Azadpur, New Delhi , India is willing to contribute or make anything similar for him/her self.In fact we have some students working with us part time and some more are joining for intern-ship in Embedded System soon.

This is the first project I have shared with Arduino community so I hope I have not skipped any rules.

Regards,
dakudiv
2  Development / Other Hardware Development / CM8870 DTMF decoder routine using EBL library on: June 13, 2012, 05:07:23 am
Hi,
Here is the code for working with CM8870 DTMF library.

I posted another routine for decoding DTMF from MT8880 Transceiver some days back at http://arduino.cc/forum/index.php/board,22.0.html .

For hardware simply refer to Figure 1. in of the CM8870 IC datasheet.

3  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino + Labview on: June 12, 2012, 07:57:57 am
Needed to Interface RGB led's with Labview.
Just downloaded your code and attached a RGB led to it.
I used it on my RGB led controller board http://www.aet-embedtech.com/Product/rgb-led-controller-with-remote_44.

Everything runs pretty smoothly.

Thanks for sharing.
4  Development / Other Hardware Development / CM8880 DTMF Transreciever Interfacing on: June 12, 2012, 07:50:49 am
Hi,
Following program is for decoding CM8880 DTMF Receiver Transmitter.
Decoding part is being done correctly.
Routine for dialing using CM8880 has not been tested.

Attached circuit has been referred for prototyping.

Issues I am facing in interfacing with CM8880..

I do not have a transformer to connect in the circuit .So to suppress the DC from the incoming telephone line a resistance (10K)and capacitor (100 nf) has been placed on (CM8880 IN- line).
Without the transformer the decoder section works perfectly fine but it's not able to generate DTMF Tone output.

So if anybody has implemented CM8880 w/o using transformer kindly share with me .Also do let me know if the code works on your board too.

Ty
5  Topics / Education and Teaching / Ideas for explaining simple RTOS through Arduino on: February 16, 2012, 06:27:05 am
I am looking for some basic application examples to explain students concepts of RTOS.
I am using DuinOS library currently. DuinOS has two basic example which use only leds.
Kindly share your ideas with me on ,How can be more examples build to explain concepts of RTOS a little differently.

I was only able to think about calculating frequency of two pins A and B having same signal, using two routines A and B having different task priorities which are running in parallel.

I know there can be many examples like this but couldn't do beyond adding a serial port for debugging to above Idea.

So if any interesting one comes to your mind don't forget to share.

I am into publishing if any body has some articles on RTOS or has created examples using DuinOS library just PM me. I will not forget to mention your name. smiley
6  General Category / General Discussion / Publishing projects in a Design Magazine on: November 23, 2011, 04:26:44 pm
I am an electronics hobbyist from India.
I have entered into publishing with Embedded For You Magazine.

About Magazine - http://www.embedded4u.com/aboutmagazine.asp

In this magazine we publish an Innovative application note on Embedded Systems using only ATMEL AVR microcotrollers so far.

Our Aim is to promote Teaching and Training on Embedded Systems in India,and in that we aid Teachers,Students and Hobbyists in developing projects on Microcontrollers.

I have posted this email , to invite people working on Arduino & other microcontroller projects,for publishing their Projects & Circuit Ideas in Embedded For You magazine.

The magazine contains a free PCB with its Source code and other API Software's.
I have developed many projects so far and you all can have a look at them http://www.embedded4u.com/Kits4U.asp?sel=1.

If you know a person who might be interested in publishing his\her projects please let them know.Thank you for your help.

Thanks and Regards,
Divyansh Gupta
Embedded For You Magazine
www.embedded4u.com
7  Using Arduino / Programming Questions / Re: Compile wiht FrequencyTimer2 throws errors, confusing on: October 05, 2011, 03:20:48 am
I was having the same problem as described by kin37ik and the solution posted by Nick Gammon works on ATmega168.
Thanks
8  Topics / Education and Teaching / Article on Arduino for Embedded For You Magazine on: February 10, 2011, 07:15:36 am
Hi,
I am technical adviser at Embedded For You magazine,India.
Our magazine is published bimonthly in India and focuses on providing opportunity to engineers and hobbyists to learn Embedded System.Each issue of our magazine includes a project PCB of an Industrial Application along with its description.
Our project FY 2011 January-February Issue is an Arduino-Compatible Development board.Also along with it we will be covering an article about Difference's between Cross compilers and Open Source Physical Computing Platforms.

If you wish to contribute an article do let me know by 14 Feb 2011.
The article will be published in our magazine as cover story and will be published in India only.

Thanks
Divyansh Gupta
editor@embedded4u.com
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Problem with usbasp programmer and win7 32bit on: January 10, 2011, 03:41:13 am
I have posted some Information related to do's and dont's of programming Usbasp with Arduino.
I also have some doubts see if this helps you.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1282243271/0
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Burning Bootloader using USBasp on: January 10, 2011, 03:38:07 am
Hi,


Quote
I have a blank Atmega328p sitting on a Serial Arduino Board.I have hooked up a USBasp programmer to burn the bootloader.

I have not tried with this part number but following should work.
Keep in mind the library versions of libusb0.dll you are using.
Some parts of this post are questions to some and some are answers,see if this can help.

I found discussions in this thread relevant to my problem,so i am posting it here.

I have used USBasp as Programmer Board which helps me to upload the code directly to the mcu using avrdude.


Changes done in boards.txt


Quote
ESATarduino.name=marduino/m48

marduino.upload.protocol=usbasp
marduino.upload.maximum_size=7168
marduino.upload.speed=19200

marduino.build.mcu=atmega48
marduino.build.f_cpu=16000000L
marduino.build.core=arduino[/i]


The board is directly shown under the head
Tools ->Boards -> marduino/m48

1) The problem is some times there is content mismatch error like this .
Quote
Binary sketch size: 1146 bytes (of a 7168 byte maximum)
avrdude: verification error, first mismatch at byte 0x00d8
         0x62 != 0x60
avrdude: verification error; content mismatch

Is this problem because the device is not getting erased properly ?

Because when i erase this device using any Avrdude/Usbasp GUI the board seem to work fine.

Questions are  :o
What all types of parameters we can add to boards.txt , is there any document available on this ?


I just wish to erase the device before Arduino begins programming the MCU, so that any possibility of content mismatch is removed.

(Keeping in mind that device is not being programmed using a boot loader)
[/list]

Can we use Arduino to program fuses of MCU using Avrdude/Usbasp before programming it ?
[/list]


Like following commands to boards.txt
marduino.upload.lfuse= 0xd0
marduino.upload.hfuse= 0xFF

  • Currently i cannot see any output messages from Avrude on the terminal of Arduino.

Can is see the status of programming and verification on terminal of Arduino ?

[/list]


Thanks,

Divyansh

USBasp
driver version  : 0.1.12.1
Details : VID_16C0 & PID_05DC
Arduino-0021
11  Forum 2005-2010 (read only) / Interfacing / Re: Beta version of GLCD library version 3 on: January 10, 2011, 06:37:27 am
I have just started using arduino's.
I wanted to compile this library for Atmega32.
I am using Usbasp to program my board.

board.txt configuration

Quote
ESATarduino.name=ESATarduino
ESATarduino.upload.protocol=usbasp
ESATarduino.upload.maximum_size=7168
ESATarduino.upload.speed=19200

ESATarduino.build.mcu=atmega32
ESATarduino.build.f_cpu=16000000L
ESATarduino.build.core=arduino

I have changed ks0108.h to include atmega32 definitions.

Quote
#if defined(__AVR_ATmega32__)
#include "ks0108_Mega.h"
[/color]

But on compiling following errors come :

Quote
D:\cvavr\arduino-0021\arduino-0021\hardware\arduino\cores\arduino\WInterrupts.c: In function 'attachInterrupt':
D:\cvavr\arduino-0021\arduino-0021\hardware\arduino\cores\arduino\WInterrupts.c:90: error: 'EICRA' undeclared (first use in this function)
D:\cvavr\arduino-0021\arduino-0021\hardware\arduino\cores\arduino\WInterrupts.c:90: error: (Each undeclared identifier is reported only once
D:\cvavr\arduino-0021\arduino-0021\hardware\arduino\cores\arduino\WInterrupts.c:90: error: for each function it appears in.)
D:\cvavr\arduino-0021\arduino-0021\hardware\arduino\cores\arduino\WInterrupts.c:91: error: 'EIMSK' undeclared (first use in this function)
D:\cvavr\arduino-0021\arduino-0021\hardware\arduino\cores\arduino\WInterrupts.c: In function 'detachInterrupt':
D:\cvavr\arduino-0021\arduino-0021\hardware\arduino\cores\arduino\WInterrupts.c:135: error: 'EIMSK' undeclared (first use in this function)
[/color]

Is there a need of any modifications in the library to compile it with mega32 ?

Thanks,

(i am using sketch from ks0108 library)



12  Forum 2005-2010 (read only) / Interfacing / Re: Color Scanner using TAOS TCS230 on: October 15, 2010, 12:16:41 pm
I have developed a TAOS TCS230 low cost evaluation board for Embedded For You magazine on Atmega8.
It is available on website as color analyzer project (CAN-10)
m planning to release the code soon.
cheers  smiley-wink

Pages: [1]