Go to advanced search

by Cinnabar
Thu Apr 02, 2020 8:45 am
Forum: Media centres
Topic: Another How to turn your Pi in a Bluetooth Speaker Tutorial
Replies: 23
Views: 36627

Re: Another How to turn your Pi in a Bluetooth Speaker Tutorial

... own, works like a cgarm, plays the music it gets through bluetooth while still being a normal desktop. (didnt test with audio jack though but with I2S since my speaker is connected through that) Hope that helps :) BR
by HiassofT
Mon Mar 30, 2020 5:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 952
Views: 509179

Re: STICKY: The I2S sound thread. [I2S works]

It's not problem to transfer data with more bclk cycles than valid data bits, the I2S block will automatically pad them. Just use the set_bclk_ratio or set_tdm_slot functions to set that to eg 64 bclk cycles per frame.

so long,

Hias
by Cinnabar
Mon Mar 30, 2020 9:12 am
Forum: Media centres
Topic: Another How to turn your Pi in a Bluetooth Speaker Tutorial
Replies: 23
Views: 36627

Re: Another How to turn your Pi in a Bluetooth Speaker Tutorial

... up until to the point when I add a PIN for secure connections. Before that, I can connect via bluetooth without a problem, and play music through I2S fine. After I set the PIN, the phone tries to connect, I can enter the PIN, and after a few seconds, it asks for the PIN again, never connecting ...
by Cinnabar
Mon Mar 30, 2020 8:41 am
Forum: Media centres
Topic: Another How to turn your Pi in a Bluetooth Speaker Tutorial
Replies: 23
Views: 36627

Re: Another How to turn your Pi in a Bluetooth Speaker Tutorial

... up until to the point when I add a PIN for secure connections. Before that, I can connect via bluetooth without a problem, and play music through I2S fine. After I set the PIN, the phone tries to connect, I can enter the PIN, and after a few seconds, it asks for the PIN again, never connecting ...
by Ousim97
Sun Mar 29, 2020 6:23 pm
Forum: Beginners
Topic: Problem reading GPS data
Replies: 59
Views: 1017

Re: Problem reading GPS data

... 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional ...
by cogeniac3
Sun Mar 29, 2020 4:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 952
Views: 509179

Re: STICKY: The I2S sound thread. [I2S works]

I am working on a system to externally clock I2S data out of the Pi and into an asynchronous rate converter (ASRC), DSP and a DAC. My question relates to the word size and format for I2S in the Pi. Since we will have a variety of different music ...
by papay.san
Sun Mar 29, 2020 9:33 am
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 338
Views: 559574

Re: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

PhilE wrote:
Sun Mar 29, 2020 8:53 am
By burying your question at the end of a long thread you will miss most of the potential audience. Create a new topic instead with a meaningful title.
Ok
by PhilE
Sun Mar 29, 2020 8:53 am
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 338
Views: 559574

Re: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

By burying your question at the end of a long thread you will miss most of the potential audience. Create a new topic instead with a meaningful title.
by papay.san
Sat Mar 28, 2020 10:26 pm
Forum: Troubleshooting
Topic: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.
Replies: 338
Views: 559574

Re: STICKY:I2C, SPI, I2S, LIRC, PPS, stopped working? Read this.

I have a Raspberry 3 B plus. And try to work with i2c and temperature sensors LM75 If I use only one temperature sensor LM75 (connected by i2c), I can read data from sensor using i2cget without any problems. For test I use "i2cget" But if I connect aditional three sensors i can't get data from any o...
by bensimmo
Sat Mar 28, 2020 7:59 pm
Forum: Beginners
Topic: Problem reading GPS data
Replies: 59
Views: 1017

Re: Problem reading GPS data

... 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional ...
by Ousim97
Sat Mar 28, 2020 3:23 pm
Forum: Beginners
Topic: Problem reading GPS data
Replies: 59
Views: 1017

Re: Problem reading GPS data

... 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional ...
by DrFunk
Thu Mar 26, 2020 6:59 pm
Forum: Media centres
Topic: Another How to turn your Pi in a Bluetooth Speaker Tutorial
Replies: 23
Views: 36627

Re: Another How to turn your Pi in a Bluetooth Speaker Tutorial

... up until to the point when I add a PIN for secure connections. Before that, I can connect via bluetooth without a problem, and play music through I2S fine. After I set the PIN, the phone tries to connect, I can enter the PIN, and after a few seconds, it asks for the PIN again, never connecting ...
by SietseAchterop
Thu Mar 26, 2020 3:42 pm
Forum: Device Tree
Topic: compatible string to use in platform driver
Replies: 7
Views: 221

Re: compatible string to use in platform driver

... { pr_info("function %s() called\n", __func__); return 0; } static const struct of_device_id my_of_id_table[] = { { .compatible = "brcm,bcm2835-i2s" }, { } }; MODULE_DEVICE_TABLE(of, my_of_id_table); static struct platform_driver my_driver = { .driver = { .name = "batradio", .of_match_table ...
by Cinnabar
Thu Mar 26, 2020 12:15 pm
Forum: Media centres
Topic: Another How to turn your Pi in a Bluetooth Speaker Tutorial
Replies: 23
Views: 36627

Re: Another How to turn your Pi in a Bluetooth Speaker Tutorial

... up until to the point when I add a PIN for secure connections. Before that, I can connect via bluetooth without a problem, and play music through I2S fine. After I set the PIN, the phone tries to connect, I can enter the PIN, and after a few seconds, it asks for the PIN again, never connecting ...
by ryback08
Wed Mar 25, 2020 3:50 pm
Forum: General discussion
Topic: ADC for raspberry pi
Replies: 14
Views: 5335

Re: ADC for raspberry pi

... ADC has internal digital high pass filter..... (some of these filters can be disabled but it requires recompiling the drivers, hard hard) PCM with i2s format can run very fast (see sampling rate... 44.1k, 48, 96, 192k.... some chip 384k... i even saw 768k !) ProAudio soundcard (with asio driver) ...
by ller
Wed Mar 25, 2020 1:25 pm
Forum: Русский
Topic: Доработка магнитолы
Replies: 1
Views: 485

Re: Доработка магнитолы

... к машине. Можно сделать многое. У самого идеи есть, но пока не нашёл звуковую с DSP на 4-6 каналов, для вывода на автоакустику. Есть DSP модули с I2S входом, можно поиграться с ними.
by CactiChameleon9
Mon Mar 23, 2020 7:29 am
Forum: Gaming
Topic: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Replies: 136
Views: 54918

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

... 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional ...
by achrn
Fri Mar 20, 2020 9:08 pm
Forum: General discussion
Topic: Starting out questions
Replies: 28
Views: 595

Re: Starting out questions

... Pi will throttle itself before it damages itself due to heat, so use with nothing and see how it goes. 2: Don't use the on-board 3.5mm. There is a I2S (ie digital) output available on the header pins, so you connect a DAC to that and get potentially very good sound quality (obviosuly depending ...
by artful-bodger
Fri Mar 20, 2020 11:46 am
Forum: Troubleshooting
Topic: RPi Zero W USB Mic Issues
Replies: 1
Views: 94

RPi Zero W USB Mic Issues

... I try a 'clean' supply to the USB directly avoiding the Pi power?) Is it worth continuing or should I switch to a different mic, such as Adafruit i2s MEMS ? Thanks in advance! :D
by demolice
Fri Mar 20, 2020 10:15 am
Forum: Troubleshooting
Topic: HDMI monitor randomly rotate 180°
Replies: 9
Views: 230

HDMI monitor randomly rotate 180°

... 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional ...
by jshreyas
Wed Mar 18, 2020 12:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to connect MCP4725 DAC to the speaker?
Replies: 5
Views: 376

Re: How to connect MCP4725 DAC to the speaker?

Use I2S (as you've already asked about on https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=268034&p=1627125) if you want to produce audio. MCP4725 is an I2C DAC, which doesn't have an external clock signal, therefore ...
by 6by9
Mon Mar 16, 2020 2:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to connect MCP4725 DAC to the speaker?
Replies: 5
Views: 376

Re: How to connect MCP4725 DAC to the speaker?

Use I2S (as you've already asked about on https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=268034&p=1627125) if you want to produce audio. MCP4725 is an I2C DAC, which doesn't have an external clock signal, therefore ...
by 6by9
Mon Mar 16, 2020 12:30 pm
Forum: General discussion
Topic: How to write I2S program in C - Linux, Raspberry pi?
Replies: 1
Views: 120

Re: How to write I2S program in C - Linux, Raspberry pi?

You don't worry about it being a MAX98357A chip, you let the provided kernel driver worry about that, using the provided dtoverlay to configure it, and then address it in the same way you would any sound card within Linux (ie normally through ALSA).
dtoverlay options are listed in the README
by maddhater
Mon Mar 16, 2020 3:14 am
Forum: Advanced users
Topic: Speech Recognition with i2S microphone
Replies: 2
Views: 1099

Re: Speech Recognition with i2S microphone

Any updates on this?
by jshreyas
Mon Mar 16, 2020 12:16 am
Forum: General discussion
Topic: How to write I2S program in C - Linux, Raspberry pi?
Replies: 1
Views: 120

How to write I2S program in C - Linux, Raspberry pi?

I am trying to generate a simple tone using I2S and talk to chipset
MAX98357A.

Here is the Adruino tutorial to talk to the chipset MAX98357A.
I want to do the similar in C program. How can I write that in C,
Raspberry pi.

Go to advanced search