Close

FM TX works

A project log for carbt_v1

[DISCONTINUED] An inexpensive bluetooth music system for cars with lacking stereos.

hybridairHybridAir 08/12/2015 at 00:464 Comments

This is a small proof of concept showing that I got the Pi to play music through the QN8027. The quality is not the greatest, but that's likely because of the cheap test radio I am using. I am able to adjust transmission frequency, and all that stuff.

My next task is to work on the display module while I wait for parts to arrive in the mail in the next few days. Once I recieve those, I can finish up the power supply and start implementing bluetooth.

Discussions

Stefano Mollo wrote 10/15/2015 at 11:44 point

Thank you for that: in the meantime I realized that may be using i2c is not the solution after all.

This is the device I want to control:

http://www.banggood.com/DSP-PLL-87-108MHz-Digital-Wireless-Microphone-Stereo-FM-Transmitter-Module-p-993164.html

On a second thought, the two "RX" and "TX" soldering points (next to one called "GND", ground obviously) may not be i2c bus after all. This small FM transmitter (I think) already has a sort of microcontroller or so. So, if I am correct so far, I should talk to the microcontroller that would then control the QN8027. The point then would be: how do I talk to the microcontroller? I was told by the seller that that is a TTL port. So, I purchased a USB-to-TTL adapter. Which works, it is seen by Win7 as COM3 (or 4, depending which USB port I connect it to).

But that's as far as they can help.

Do you have any idea how should I go forward?

I should connect the TX from the FM TX to the RX of the USB/TTL adapter, and so on, am I correct?

I am a bit lost ....

Cheers, Stefano

  Are you sure? yes | no

HybridAir wrote 10/15/2015 at 19:18 point

From what I can tell, you should be able to connect the serial pads on the device to your USB serial adaptor. Unfortunately, I have no idea what kind of serial voltage levels it can tolerate, or what commands you would need to send to the device to control it. I would suggest that you try to get some kind of datasheet from your seller and go from there.

  Are you sure? yes | no

Stefano Mollo wrote 10/13/2015 at 22:10 point

Hi there; I am also trying to control the QN8027 via the i2c i/f. How do I do that? I can write code in VB.NET, but have never written code to control a device via the i2c bus. I see you have done it using Python; would you share the code?

Thank you, Stefano Mollo from Perth. Australia

  Are you sure? yes | no

HybridAir wrote 10/15/2015 at 00:11 point

You can find the code I used here: https://github.com/HybridAir/carbt_v1/blob/master/pi/pyProgram/fmTx.py . It is nowhere near complete or presentable, but it should hopefully give you a basic idea for how you can control the QN8027.

  Are you sure? yes | no