please choosego to mobile | Continue to access the PC version
View: 8736|Reply: 53

Orange Pi Zero Pirate Radio FM

[Copy link]

1

threads

1

posts

17

credits

Novice

Rank: 1

credits
17
Published in 2019-6-11 15:05:54 | Show all floors |Read mode
Currently looking at trying to port the code from the Make Magazine's "Pirate Radio" project [1] and this on the Orange Pi Zero H2 platform. I haven't done low level hardware in quite a while, so this should be fun...

This was originally done on the Raspberry Pi and can transmit in the FM frequencies (more infor here [2]). The most interesting part is here:

Next it sets the clock generator module to enabled and sets it to output on GPIO4 (no other accessible pins can be used). It also sets the frequency to 100.0Mhz (provided from PLLD@500Mhz, divided by 5), which provides a carrier. At this point, radios will stop making a "fuzz" noise, and become silent.


My hope is that becasue we have neither the GPU or NAND actively doing anything on the Orange Pi Zero, that this may be more possible than not without causing any disruptions on existing hardware. According to the H2 datasheet, the DDR control register can output between 200MHz and 2.6GHz, which is completely insane.


My thinking is to set PLL_AUDIO_CTRL_REG so that:

* PLL_ENABLE = 1 (enabled)
* LOCK = 0 for setting values, 1 for locking them in
* PLL_SDM_EN = 0

For the frequency, I think we want to aim as high as possible and then divide down to give ourselves the greatest possible control for the 100MHz range. Assuming `PLL _AUDIO = (24MHz * N) / (M * P)`, which I haven't decided yet.

* PLL_POSTDIV_P = ?
* PLL_FACTOR_N = ?
* PLL_PREDIV_M = ?


We can then use PLL_AUDIO as the source clock for something like I2S/PCM_0_CLK_REG. My hope is that maybe we can get some beeps over FM radio, I'm not yet convinced that there is enough control over clock speed to get something nice to listen to.

If we can't get something controllable in the 100MHz range, then perhaps it's possible to get something controllable in a harmonic on the target frequency, as we'll be producing square waves anyway [3].


There are some open questions:

1. I can't find any datasheets on the AllWinner H2, can it be assumed it operates mostly like the AllWinner H3? Does anybody know where one can get a spec?
2. Are there already some efforts to port this project?
3. Are there any reasons why this wouldn't be possible?

Any help is greatly appreciated!


[1] https://github.com/Make-Magazine/PirateRadio
[2] http://icrobotics.co.uk/wiki/ind ... o_an_FM_Transmitter
[3] https://en.wikipedia.org/wiki/Square_wave


9

threads

634

posts

4409

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4409
Published in 2019-6-12 13:42:22 | Show all floors

0

threads

15

posts

54

credits

Registered member

Rank: 2

credits
54
Published in 2023-10-3 17:42:57 | Show all floors
I adore that you informed me about this article since I think it's amazing. That is exactly what I was hoping to discover, and I sincerely hope you will continue to share such excellent stuff in the years to come. nytimes crossword

1

threads

679

posts

1787

credits

Gold member

Rank: 6Rank: 6

credits
1787
Published in 2024-1-3 19:29:06 | Show all floors
The on-line world might be bogged downwards with the help of counterfeit web logs without a proper personal message nonetheless put up was basically awesome not to mention value typically the read through. Regards for the purpose of showing this unique when camping.        projekt pokoju dla dziewczynek

1

threads

679

posts

1787

credits

Gold member

Rank: 6Rank: 6

credits
1787
Published in 2024-1-3 21:29:09 | Show all floors
Many thanks with regard to supplying current improvements concerning the issue, We anticipate study much more.        building a winning streak

7

threads

602

posts

1549

credits

Gold member

Rank: 6Rank: 6

credits
1549
Published in 2024-2-11 19:03:54 | Show all floors
A totally free tell you which usually they can be a a superb content from the awesome people, we're very happy to watch this approach.        smart watch for kids

1

threads

679

posts

1787

credits

Gold member

Rank: 6Rank: 6

credits
1787
Published in 2024-2-11 20:16:36 | Show all floors
Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors.        personal training program Casselberry

34

threads

1025

posts

2458

credits

Gold member

Rank: 6Rank: 6

credits
2458
Published in 2024-2-12 22:01:41 | Show all floors
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign.        https://www.callupcontact.com/b/businessprofile/Greenmark_Janitorial_Services/8879489

0

threads

1086

posts

2624

credits

Gold member

Rank: 6Rank: 6

credits
2624
Published in 2024-2-13 19:12:46 | Show all floors
I am very happy to discover your post as it will become on top in my collection of favorite blogs to visit.        milky way online casino

34

threads

1025

posts

2458

credits

Gold member

Rank: 6Rank: 6

credits
2458
Published in 2024-2-15 22:27:59 | Show all floors
When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style.        panty party gift
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list