barray post at 2019-6-11 15:05:54

Orange Pi Zero Pirate Radio FM

Currently looking at trying to port the code from the Make Magazine's "Pirate Radio" project 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 ). 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 .


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!


https://github.com/Make-Magazine/PirateRadio
http://icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter
https://en.wikipedia.org/wiki/Square_wave


igorpec post at 2019-6-12 13:42:22

Screap for info here:

http://linux-sunxi.org/Main_Page
https://forum.armbian.com

clamb78 post at 2023-10-3 17:42:57

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

arnel123 post at 2024-1-3 19:29:06

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

arnel123 post at 2024-1-3 21:29:09

Many thanks with regard to supplying current improvements concerning the issue, We anticipate study much more.        building a winning streak

articleonlineki post at 2024-2-11 19:03:54

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

arnel123 post at 2024-2-11 20:16:36

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

makhatri post at 2024-2-12 22:01:41

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

addington.wylan post at 2024-2-13 19:12:46

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

makhatri post at 2024-2-15 22:27:59

When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style.        panty party gift
page: [1] 2 3 4 5
View full version: Orange Pi Zero Pirate Radio FM