Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:45 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : (DM/MM) I2C Radio

Author Message
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 06:26am 18 Jan 2012
Copy link to clipboard 
Print this post


I am keen to try and one of these
Ebay I2C Radio

But here's the crunch this seller will not ship to New Zealand
Anybody keen to order one and ship it my way ?
Of course I will pay for the extra postage etc.... (PayPal)

PM me if willing

Maybe one of you clever people is also keen to have a I2C radio :)


Regards

John
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 06:58am 18 Jan 2012
Copy link to clipboard 
Print this post

  jman said  

But here's the crunch this seller will not ship to New Zealand
Anybody keen to order one and ship it my way ?
Of course I will pay for the extra postage etc.... (PayPal)




Regards

John


Hi John,

If you are stuck I will do that .. but the seller advertises shipping to New Zealand in his list there... click on shipping (just to the right of the description TAB... ) It is just his pull down tab that doesnt let you select NZ... Have you emailed the seller as I am not sure of AUS freight costs but it is likely to be more than the item cost to ship it to NZ.


Regards,

Mick

Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 07:06am 18 Jan 2012
Copy link to clipboard 
Print this post

Hi Mick

Yip i tried the email route no go
I even hit the Buy Now but at the checkout it stops because of my address


This what happens when I try make the purchase






Regards

John
 
pcaffalldavis

Senior Member

Joined: 17/10/2011
Location: United States
Posts: 187
Posted: 01:17pm 18 Jan 2012
Copy link to clipboard 
Print this post

I'm willing too, but shipping to rural Alaska is likely to take longer than to OZ and over. Let me know if you want me to do this. Auction says they only have 3 left.

Pete in Hyder
We're all here 'cause we're not all there.
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 03:59pm 18 Jan 2012
Copy link to clipboard 
Print this post

Is there a data sheet for this FM radio?
Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 04:48pm 18 Jan 2012
Copy link to clipboard 
Print this post

Jman - Did you get my PM?
Micromites and Maximites! - Beginning Maximite
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 07:32pm 18 Jan 2012
Copy link to clipboard 
Print this post

Hi

No sorry my inbox was full
All clear now please resend

John
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 07:38pm 18 Jan 2012
Copy link to clipboard 
Print this post

  CircuitGizmos said   Is there a data sheet for this FM radio?


Attached with a Basic Stamp sample
2012-01-19_053757_RDA5807SS.zip


John


 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1425
Posted: 07:46pm 18 Jan 2012
Copy link to clipboard 
Print this post

PM resent!
Micromites and Maximites! - Beginning Maximite
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 07:07am 01 Mar 2012
Copy link to clipboard 
Print this post

Hi

I have recieved the I2C radio many thanks to Rob
Now I just cant seem to wrap my head around on how to use the I2C with it.

The I2c address is &H11 with the following Registers that contain 16 bits

Register Bit Name Function Default
15 DHIZ Audio Output 0 = High Impedance; 1 = Normal Operation 0
14 DMUTE Mute Disable 0 = Mute; 1 = Normal Operation 0
13 MONO Mono Select 0 = Stereo; 1 = Force Mono 0
12 BASS Bass Boost 0 = Disabled; 1 = Bass boost enabled 0
11 RESERVED - -
10 CLK32_INPUT_ENB 0 = Enable; 1 = Disable (select 1 if crystal is shared) 0
8:7 RESERVED - -
6:4 CLK_MODE[2:0] 000 = 32.768 kHz (used for this module) 000
1 SOFT_RESET Soft reset; set to 1 to reset. 0
0x02
0 ENABLE Power Up Enable 0 = Disabled; 1 = Enabled 0


That is a write Register

So the question is how do I write to this Register and set the appropiate bits

A read register is as below the Register is 0X0A

Register Bit Name Function Default
15 RESERVED - -
14 STC Seek/Tune Complete 0 = Not complete; 1 = Complete
Flag is set when the seek or tune operation completes.
0
13 SF Seek Fail 0 = Seek successful; 1 = Seek failure
Flag is set when the seek operation fails to fails
to find a channel with an RSSI level greater than SEEKTH[5:0]
0
12:11 RESERVED - -
10 ST Stereo Indicator 0 = Mono; 1 = Stereo
Stereo indication available on GPIO3.
1
0x0A
9:0 READCHAN[9:0] Read Channel
BAND = 0
Frequency = Channel Spacing (kHz) x READCHAN[7:0] + 87 MHz
BAND = 1
Frequency = Channel Spacing (kHz) x READCHAN[7:0] + 76.0 MHz
READCHAN[7:0] is updated after a tune or seek operation.
0x00000000
The timming is as this pic






So i have the following

Dim RegsH(8)
Dim RegsL(8)


I2caddr = &h11 ' RDA5807 I2C address
I2CEN 100,100 ' Enable I2C

I2CSEND i2caddr, 1, 1, &H0A

I2CRCV i2caddr, 1, 8, RegsH(0)
? "0=ok 1=nack 2=timeout"; MM.I2C

I2CRCV i2caddr, 0, 8, RegsL(0)
? "0=ok 1=nack 2=timeout"; MM.I2C

For I = 0 To 7
? I; RegsH(I)
Next I

For I = 0 To 7
? I; RegsL(I)
Next I


This produces the following
I would have assumed the results would 0's as this is the default
and RegsL(array) all 255

> run
0=ok 1=nack 2=timeout 0
0=ok 1=nack 2=timeout 0
0 5
1 63
2 0
3 16
4 88
5 3
6 88
7 4
0 255
1 255
2 255
3 255
4 255
5 255
6 255
7 255

I have atached the orginal PDf and a Parallax version
2012-03-01_165913_RDA5807SS_datasheet_v1.0.pdf
2012-03-01_165943_FM_Radio_Receiver_Module_Documentation.pdf

Any assistance would be greatly appreciated

Many Thanks

John
 
djuqa

Guru

Joined: 23/11/2011
Location: Australia
Posts: 447
Posted: 07:22am 01 Mar 2012
Copy link to clipboard 
Print this post

The two code example from Parallax.com file links
Basic Stamp Example Code
Propellor Code ExampleEdited by djuqa 2012-03-02
VK4MU MicroController Units

 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 07:25am 01 Mar 2012
Copy link to clipboard 
Print this post

Thanks for the reply

I have seen those but I am still none the wiser :(

John
 
crackerjack

Senior Member

Joined: 11/07/2011
Location: Australia
Posts: 164
Posted: 09:22am 01 Mar 2012
Copy link to clipboard 
Print this post

Jman, just had a brief look so I may be way off the mark, but is there not a bit of confusion in your program between bits and bytes? You are reading into a buffer of 8 bytes and then iterating over those bytes in the debug loop. Should you not be reading two bytes High and Low and then dealing with the bits as per the register?
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 06:08pm 01 Mar 2012
Copy link to clipboard 
Print this post

CrackerJack

Thats the problem you are a winner


Thanks

John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024