[1] MLD-5.x / Systeme / Raspberry PI / {MLD 5.5 testing} Raspberry Pi 4 FM transmitter
 

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
{MLD 5.5 testing} Raspberry Pi 4 FM transmitter
« on: April 06, 2020, 21:38:31 »




Hello,

Yesterday, i tried this beautiful app named web-rpi-fm on my RPi 3, i just want to say that it works flawlessly and i recommend everyone to try it.  ;)

Hardware requirements:
- Raspberry Pi.
- a jumper wire.
- FM Radio .. i'm using an old Nokia phone FM Radio as in the above screenshot.

Here is the app link

https://github.com/dawiddydlinski/web-rpi-fm


The jumper wire can be attached to GPIO pin 4 of the Pi to be working as an antenna as in the following image.



P.S. i was able to test this app on Raspbian Stretch, didn't try to install on MLD yet.

Best Regards.
« Last Edit: November 19, 2021, 22:51:27 by gr4vity »

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #1 on: April 07, 2020, 16:23:27 »
Hi Claus,
will this command work in order to install the following python moddules in MLD?
pip install flask flask_uploads flask_cors tinytag
I don't have python installed, so i dont know.
« Last Edit: April 08, 2020, 07:57:24 by gr4vity »

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #2 on: April 07, 2020, 19:18:26 »
I just tried it, unfortunately it doesn't work.

Code: [Select]
pip install flask flask_uploads flask_cors tinytag

Collecting flask
  Could not find a version that satisfies the requirement flask (from versions:                                                                              )
No matching distribution found for flask

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 19464
    • View Profile
    • ClausMuus.de
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #3 on: April 07, 2020, 21:56:38 »
Do you have installed the python-pip package?
MLD 5.4 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.4 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559
MLD 5.4 - OctopusNet - ASRock Q1900M - 2GB RAM 250GB HDD

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #4 on: April 07, 2020, 22:21:14 »
Hello Claus,
Yes i did installed python-pip python python-libs packages
The problem is i can't install flask.

Online rfehr

  • MLD-Developer
  • Expert Member
  • ******
  • Posts: 1349
    • View Profile
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #5 on: April 07, 2020, 22:25:47 »
Hi,

can you test

pip install Flask ;)

best regrads
  Roland
1x OctopusNet 4x DVB-C
1x Zotac ITX-A Atom 330
1x RPI2 als Client
1x Cubietruck
1x BananaPi
1x Wetekplay
1x MCC 100
2x RPI3
2x RPi4
1x https://www.zotac.com/at/product/mini_pcs/pi335

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #6 on: April 07, 2020, 23:28:14 »
Hi Roland,
I already did in the above post  :)

Code: [Select]
pip install flask flask_uploads flask_cors tinytag

Collecting flask
  Could not find a version that satisfies the requirement flask (from versions:                                                                              )
No matching distribution found for flask

Anyway,problem is solved by copying the missing python modules from my Raspbian SD card  :)

The application is now working

Code: [Select]
MLD> cd  web-rpi-fm
MLD> python server.py
 * Serving Flask app "server" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:9000/ (Press CTRL+C to quit)




I still need to install sox package.
« Last Edit: April 08, 2020, 00:01:00 by gr4vity »

Online rfehr

  • MLD-Developer
  • Expert Member
  • ******
  • Posts: 1349
    • View Profile
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #7 on: April 07, 2020, 23:32:08 »
Hi gr4vity,

I don't know in python if there is a differcen between Flask  or flask

bg
  Roland
1x OctopusNet 4x DVB-C
1x Zotac ITX-A Atom 330
1x RPI2 als Client
1x Cubietruck
1x BananaPi
1x Wetekplay
1x MCC 100
2x RPI3
2x RPi4
1x https://www.zotac.com/at/product/mini_pcs/pi335

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 19464
    • View Profile
    • ClausMuus.de
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #8 on: April 08, 2020, 09:59:22 »
@Roland,
the problem is that not all needed are included in the pip packages, e.g. if a lib is needed this must provided by the system ba apt.

@gr4vity,
is this a fm Transmitter? So you have now your own radio station?
Does the transmitter sends stereo sound? And how is the quality and maximal distance?
MLD 5.4 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.4 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559
MLD 5.4 - OctopusNet - ASRock Q1900M - 2GB RAM 250GB HDD

Offline mikeM

  • MLD-Debugger
  • Profi Member
  • ****
  • Posts: 453
    • View Profile
VDR1: MLD 5.3, Asrock Q1900, 8GB, TechnoTrend S-4200 Twin
VDR2: MLD 5.3, ASUS M2N, Athlon 3800, 4GB, ZOTAC NVidia 720, Skystar S2, lirc serial
VDR3: MLD 5.3, ASUS M2N, Athlon 3800, 4GB NVidia 630, Skystar S2

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
(MLD 5.4 testing) Raspberry Pi fm transmitter
« Reply #10 on: April 08, 2020, 16:23:36 »
@rfehr. I think pip packages use some server which is not included on MLD.

@Claus,
Yes, this is a very nice FM transmitter which will allow you to have your own radio station so you can broadcast the signal on any desired frequency. :)
Yes, i'm transmitting MP3 songs out of it with a high quality, all is done by sox.
You can also transmit an online radio station then listen to it on a regular FM radio.

According to the link provided by @mikeM signal can be delivered at ranges up to 100 meters (Depending on the antenna you're using and location).
You can replace the wire jumper with any other regular radio antenna (remember that might be illegal in some countries).
Here is an example for an antenna that can be used.



Best Regards.

« Last Edit: November 19, 2021, 22:56:47 by gr4vity »

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
{MLD 5.5 testing} Raspberry Pi FM transmitter
« Reply #11 on: November 19, 2021, 22:38:00 »


Update:
In order for this app to work with Raspberry Pi 4 you have to connect a jumper wire to GPIO pin 21 instead of GPIO pin 4
+
Transmit frequencies has to be below 93.5 MHz.

I build pifmrds on my Raspbian buster,  check if it works.

You can change frequencies in web-rpi-fm page.

Best Regards.
« Last Edit: November 20, 2021, 16:25:42 by gr4vity »

Offline gr4vity

  • Profi Member
  • ****
  • Posts: 456
    • View Profile
{MLD 5.5 testing} Raspberry Pi 4 FM transmitter
« Reply #12 on: November 20, 2021, 16:29:44 »
Hi,

I have changed default frequency to 90.90 MHz, i can confirm that it works after attaching a jumper wire to GPIO pin 21.

Code: [Select]
./pifmrds -audio pulses.wav
Code: [Select]
RT: "PiFmRds: live FM-RDS transmission from the RaspberryPi"
Starting to transmit on 90.9 MHz.

Best Regards
« Last Edit: November 20, 2021, 16:32:50 by gr4vity »

[1] MLD-5.x / Systeme / Raspberry PI / {MLD 5.5 testing} Raspberry Pi 4 FM transmitter
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.