Sunday, November 1, 2020

AN7223 LM7001 PLL FM Stereo Tuner, JQ8400 USB MP3, Bluetooth Audio Player - 16F690

FM USB MP3 Player
Audio Player

This is my new project, 3 in 1 audio player that design for my amplifier. It built in FM radio, USB player and Bluetooth module. Also include a simple mixer with op-amp.

Bottom PCB
Bottom PCB

Top PCB
Top PCB

Side View
Side View

For tuner section I used AN7223 and TA7343 and for PLL here I used LM7001 low cost IC. JQ8400 used for USB function and it controlled by a PIC16F690 microcontroller. U can use any Bluetooth audio module for this. I used MH-M18 Bluetooth module for this.

JQ8400 Module
JQ8400 Module

Bluetooth Module
Bluetooth Module


Please read my previous post for detailed information about PLL FM tuner and jq8400. I wrote a small sample program for control this unit and u can modify it according to your need. Don’t use relay. Just connect I2C directly to R37 & R39.

Control Circuit
Control Circuit

Usage of usb command

// --------- commands ----------------- Write_Df(0x06,0,0); // mp3 next Write_Df(0x05,0,0); // mp3 prev Write_Df(0x02,0,0); // mp3 play Write_Df(0x03,0,0); // mp3 pause Write_Df(0x04,0,0); // mp3 stop Write_Df(0x21,0,0); // mp3 random Write_Df(0xA3,0,5); // mp3 ff 5s Write_Df(0xA2,0,5); // mp3 fr 5s write_Df(0x87,Cur_Tr>>8,Cur_Tr); // mp3 track play (max 9999)

Mikro c source code for Control circuit, source code for PLL FM, Hex file for jq8400 controller and PCB file and circuit are in download section. Hope you like it.


Thursday, August 6, 2020

JQ8400 MP3 Voice Module Microe C code

Previously I wrote a post about well-known voice module of DFPlayer Mini. Today I would like to write a post of advance chip, JQ8400. The main advantages of this chip are;
  • Inquiry of the file name
  • Inquiry of duration of the current audio
  • Inquiry of playback duration
  • Fast backward
  • Fast forward, etc.
jq8400 module
Jq8400 Module

JQ8400 module is a SOC solution that combines a 16bit MCU with an ADSP specialized in audio decoding. By using hardware decoding method, it ensures system stability, quality of sound, and small footprint matching requirements of embedded applications. For the flexibility of R&D, control commands can be sent via one-line mode or RS232 serial communication.
It adopts full duplex serial communication protocol: Baud rate 9600, 8-bit data, no parity and 1 stop bit.

Message Format

Starting Code + Command Code + Data Length + Data 1 – Data n + Checksum
  • Starting Code: fixed as “AA” (in hex)
  • Command Code: 01 – 26 (in hex)
  • Data Length: respective data bytes in commands; length=1 stands for command only, no data.
  • Checksum: The low byte of the sum of all the bytes before the checksum byte.
  • Data format: high 8-bit first, low 8-bit second.

Communication Mechanism

Default power-on state is idle and listening for commands from MCU as a guest The module will not initiate communication and a MCU must take initiative. The TTL level of the serial port is 3.3V. Use a 1K ohm resistor if connecting with a 5V MCU.

jq8400 module pin
Jq8400 Module Pin Details

Code

unsigned short df_wr[] = {0xAA,0,0,0,0,0};
void write_jq_cmd(char cmd, char data_h, char data_l, char len) //jq cmd data {   char m;
  Delay_ms(200);
       df_wr[1]= cmd;
       df_wr[2]= len;
       df_wr[3]= data_h;
       df_wr[4]= data_l;
       df_wr[5]= data_h + data_l + len + df_wr[1] + 0xAA;

    for (m=0; m<6; m++) {      Delay_ms(1);      if(len==0 && m==3) m=5; //(AA 02 00 AC) skip data_h data_l      if(len==1 && m==3) m=4; //(AA 18 01 03 C6) skip data_h      UART1_Write(df_wr[m]);  //aa, cmd, len, dh, dl, sm    }    Delay_ms(10); }

Usage

write_jq_cmd(0x02, 0,0, 0);      //Play write_jq_cmd(0x03, 0,0, 0);      //Pause write_jq_cmd(0x13, 0,27, 1);     //Set volume to 27 write_jq_cmd(0x07, 0x00,0xF4, 2); //Play 244th track write_jq_cmd(0x07, 0x01,0xF4, 2); //Play 500th track write_jq_cmd(0x23, 0x00,0x0A, 2); //FF 10 seconds


Tuesday, May 5, 2020

OProg - Open Source USB Programmer - 18F2550

Recently I found a programmer from internet. This programmer is completely free and open source. It used few components and working well. I make some changes to it. You can find the original one from here.

OPROG Prototype
Prototype

Advantages of this programmer are;
  • Completely free and Open Source (including firmware)
  • Programs PIC, dsPIC, ATMEL, EEPROM (I2C, SPI, MicroWire, OneWire, UNIO)
  • Can work as ICD debugger
  • USB 2.0 Full Speed interface
  • Self-powered
  • Doesn't need drivers
  • Hardware generated timings for maximum speed and reliability (writes an 18F2550 in 15s)
  • Open source control programs for Linux and Windows

OPROG diagram
Schematic

Main controller is PIC18F2550, and Supply directly get from PC USB port. HEX, PCB, Schematic and PC software can download from below. And for latest updates and full description please follow the Open Programmer site.


Sunday, April 19, 2020

7 Band Real Time Audio Spectrum Analyzer Circuit - 16F819 BA3834S

16F819 Audio Spectrum Analyzer
16F819 Audio Spectrum Analyzer

This is the new version of my previous spectrum analyzer. Used PIC16F819 microcontroller and BA3834 Band-pass filter for spectrum analyzer. It has two versions, BA3834S and BA3834F. Here i used BA3834S. BA3834 are 7-band, band-pass filter ICs that use microprocessor time division to produce serial output for spectrum analyzer displays. To minimize the number of attached components required and enable compact and reliable designs, all of the capacitors for the filters are on the chip. So we can build spectrum analyzer easily

16f819 analizer circuit
Analizer circuit

This circuit included 11 modes (9 patterns, off and random) and it shows which pattern currently running at start-up (S1, S2, etc.). In off mode it shows S0 on display and S+ for random mode. The pattern mode saved to Eeprom to run at next power up. In random mode it changes its pattern in every 3.5 minutes.
PCB, Circuit, and hex available in below

16f819 analizer
16f819 analizer pcb
16f819 analizer pcb


 

on line

Labels

Recent comment

Visitors

Free counters!
Copyright © 2012 - Scorpionz™.,All rights reserved | Powered by Blogger