Skip to content

Add FM Demodulation#21

Open
drewby08 wants to merge 4 commits intoadafruit:masterfrom
drewby08:master
Open

Add FM Demodulation#21
drewby08 wants to merge 4 commits intoadafruit:masterfrom
drewby08:master

Conversation

@drewby08
Copy link
Copy Markdown

Adding basic FM demodulation and playback using rtl_fm and aplay.
Commented out the SDL environment variables to get it working on my touchscreen.

How To Use:

  • Press Config
  • Set Center Frequency
  • Go Back
  • Press Demodulate
  • Plug in 3.5mm headphone jack and listen

@drewby08 drewby08 mentioned this pull request Jun 28, 2019
@ladyada
Copy link
Copy Markdown
Member

ladyada commented Jun 28, 2019

thanks, what hardware was this tested on?

@drewby08
Copy link
Copy Markdown
Author

Tested on following platform:

@ladyada
Copy link
Copy Markdown
Member

ladyada commented Jun 29, 2019

that uses a different display so maybe thats why you had to remove some SDL lines, please add those back

@drewby08
Copy link
Copy Markdown
Author

Ok, added the SDL environment variables back ✅

@ladyada
Copy link
Copy Markdown
Member

ladyada commented Jun 29, 2019

@makermelissa any interest in trying?

@alphafox02
Copy link
Copy Markdown

alphafox02 commented Jan 28, 2020

nice work! I have brand new never used pi 3 b’s, exact screen, and rtl dongle in adafruits post. I have a small class to teach and this will be perfect if I can get the fm demodulation working. Is all of this included in the fork? Should I stick with the older pi images and not attempt on buster?

@drewby08
Copy link
Copy Markdown
Author

nice work! I have brand new never used pi 3 b’s, exact screen, and rtl dongle in adafruits post. I have a small class to teach and this will be perfect if I can get the fm demodulation working. Is all of this included in the fork? Should I stick with the older pi images and not attempt on buster?

Yep my fork should have everything you need. I haven't tested on Buster, so if you want to play it safe just go with the older Jessie release.

@alphafox02
Copy link
Copy Markdown

alphafox02 commented Jan 28, 2020

Gave this a try,

https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2

Which had me install the stretch image. Everything works with the touch screen prior to starting freqshow, however both your fork and the original does not seem to recognize any touch on the screen except for maybe it goes full screen, so unfortunately unusable. I’ll revert to the older Jessie image for this pi 3 b and do the setup again.

@drewby08
Copy link
Copy Markdown
Author

drewby08 commented Jan 28, 2020

Gave this a try,

https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi/easy-install-2

Which had me install the stretch image. Everything works with the touch screen prior to starting freqshow, however both your fork and the original does not seem to recognize any touch on the screen except for maybe it goes full screen, so unfortunately unusable. I’ll revert to the older Jessie image for this pi 3 b and do the setup again.

The changes in red here on this diff are what I had to do to get touchscreen working on my setup: https://github.com/adafruit/FreqShow/pull/21/files/405eab39ec87bb7905a494b9427416464a9a75c2..05197486655519cce329120d525a24715114146c

@alphafox02
Copy link
Copy Markdown

I’ll make the changes and let you know. Not even sure if this would be possible, but would there be any way to add demodulation (if that’s what it’d take) to listen in on FRS?

@alphafox02
Copy link
Copy Markdown

alphafox02 commented Jan 29, 2020

Made the changes in red. Your fork comes up and everything can be interacted with and works except for one thing, no possible way to interact with the demodulation option with touch nor a mouse and clicks on it. I can touch and use a mouse on all other options. I’ll get around I trying Jessie, but it seems so close to working on stretch.

update: it works perfect. I had the hdmi plugged in with the screen being mirrored and realized I had no audio on the jack, also realized nothing really happens when you click demodulation except for the fact it’s just enabling it. I thought a new menu was supposed to pop up. After rebooting with no hdmi plugged in I could set the center freq and listen to the fm channel. So mark it down as it works with stretch using the exact build in the guide I posted above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants