Blog

Hello-Farogh | Driver board for raspberry pi screen

August 25, 2019 | 3 Minute Read

This board contains Compute Module 3 the guts of a Raspberry Pi 3 (the BCM2837 processor and 1GB RAM) as well as an optional 4GB eMMC Flash device or SD card option for more space. The Pi 3 has a processor speed of 1.2GHz and runs at roughly 10 times the speed of the Pi 1 due to its quad-core CPU. This is all integrated on to a small 67.6mm x 31mm board which fits into a standard DDR2 SODIMM connector.The Flash memory is connected directly to the processor on the board.

The board has on board Mems stereo mic connected to the compute module using I2s. It has 20W stereo amplifier which takes analog signals from compute module. It has CSI and DSI bus for interfacing Camera and Display. This board can be easily mounted on screen and make the design simple and easy to use.

Figure 1 Base Board

Integrated Inter-ICSoundBus (I2S)

The Integrated Inter-ICSoundBus (I2S) is a serial bus interface standard used for connecting digital audio devices together.

The I2S component operates in master mode only. It also operates in two directions: as a transmitter (Tx) and a receiver (Rx). The data for Tx and Rx are independent byte streams. The byte streams are packed with the most significant byte first and the most significant bit in bit 7 of the first word. The number of bytes used for each sample (a sample for the left or right channel) is the minimum number of bytes to hold a sample.

General Features
  • Interfacing raspberry pi screen using DSI Bus.
  • Interfacing of raspberry pi camera using CSI Bus.
  • 4-USB port with good power stability.
  • Lan port.
  • Push to on/off switch.
  • RTC
  • Stereo Mems mic
  • 20W stereo amplifier

For more details, please refer the schematics. Download Altium Files!

I2s Mems Mic SPH0645LM4H

Figure 2 Mems SPH0645LM4H

This SPH0645LM4H microphone doesn’t even have analog out, its purely digital. The I2S is a small, low cost MEMS mic with a range of about 50Hz - 15KHz, good for just about all general audio recording/detection. Instead of an analog output, there are three digital pins: Clock, Data and Left-Right (Word Select) Clock. When connected to Compute module, the ‘I2S Master’ will drive the clock and word-select pins at a high frequency and read out the data from the microphone. No analog conversion required!

Raspberry Pi I2s configuration

We need to manually compile this and here is the Link. Go through each step carefully and test your microphone.

Raspberry audio configuration

The Raspberry Pi has two audio output modes: HDMI and headphone jack. You can switch between these modes at any time.

The following command, entered in the command line, will switch the audio output to anlogue.

amixer cset numid=3 1

We can also do the same using raspi-config: Sudo raspi-config

Go to the advance setting and change the Audio setting and press enter.

Now, your mic and audio are working you can install google assistant services and control IOT devices. Follow the Link, Enjoy!

This design is completely open source, anyone can use it or modify it. Contact me if anybody needs help in designing.