Go to advanced search

by HiassofT
Tue Apr 17, 2018 1:22 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

Basically any IR LED should work, they typically transmit at about 940-950nm wavelength so should work fine with IR receivers. The most important differences between the different IR LEDs are power and opening (vieweing) angle / directivity. So you'll probably have to test which one works best for y...
by HiassofT
Thu Apr 12, 2018 5:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 885
Views: 408538

Re: STICKY: The I2S sound thread.

You can ignore the "spdif" name, despite their name the spdif receiver/transmitter codecs are just very generic drivers that don't do anything except allowing 16-24bit audio. They can be used for all ADCs/DACs that don't require any special configuration via I2C, SPI or GPIO pins. The important thin...
by HiassofT
Thu Apr 12, 2018 4:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 885
Views: 408538

Re: STICKY: The I2S sound thread.

Use the overlay I posted earlier today here: https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=168808#p1301109 If the DAC is 16-bit only right justified then playing 24bit audio won't work, but 16bit audio should be fine (you can force 16bit mode with .asoundrc if you want/need). Unless you se...
by HiassofT
Thu Apr 12, 2018 8:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PT8211 I2S ASOC driver
Replies: 14
Views: 2702

Re: PT8211 I2S ASOC driver

No need to hack up any drivers, the 4.14 kernel in Raspbian has everything you need on board - support for I2S, justified and DSP formats, generic input and output codec drivers ("spdif transmitter/receiver") and support for simple audio card and the more modern audio graph card. All you need to do ...
by HiassofT
Sun Apr 08, 2018 4:05 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

The appeal of using less GPIO pins is powerful. Especially as I may want to attach buttons, swtiches, etc to the same Pi unit later. I did not realize that I could use all the IR emmitters at once with the AND gate chip though. That is not that important, but it has appeal for sure. Additionally, I...
by HiassofT
Thu Apr 05, 2018 10:02 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

A demultiplexer will work fine, too. You only have to make sure you get the polarity right, eg the popular 74xx138 3-to-8 demultiplexers have inverting outputs. The 74HC238 has non-inverting outputs, so that one should work: Wire /E1 and /E2 to GND and E3 to the RPi IR out GPIO, A0 and A1 to 2 GPIOs...
by HiassofT
Tue Apr 03, 2018 8:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sound volume level
Replies: 2
Views: 279

Re: Sound volume level

You can use amixer for that. eg:

Code: Select all

amixer sset PCM 50%
or

Code: Select all

amixer sset PCM -- -10dB
The "--" is necessary so that "-10dB" is interpreted as a negative dB value, not a command line option

To query the current volume settings you can use

Code: Select all

amixer sget PCM
so long,

Hias
by HiassofT
Tue Apr 03, 2018 7:55 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

I'd recommend pwm-ir-tx which by default uses GPIO 18 (pin 12 of the header).

You'll have to remove / comment out "dtparam=audio=on" for that to work

so long,

Hias
by HiassofT
Tue Apr 03, 2018 4:31 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

You could, for example, use the good old 74HC08 quad 2-input AND gate for this purpose. Connect pin 14 of the '08 (VCC) to 3.3V and pin 7 (GND) to GND. Then connect the IR output GPIO (18) to one input of each AND gate (pins 1, 4, 10, 13). Connect 4 GPIOs of the RPi to the other inputs (pins 2, 5, 9...
by HiassofT
Wed Mar 28, 2018 8:50 pm
Forum: General discussion
Topic: RPi 3B+ gigabit ethernet bad download speeds.
Replies: 188
Views: 45716

Re: RPi 3B+ gigabit ethernet bad download speeds.

[ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-10.00 sec 265 MBytes 222 Mbits/sec 3497 sender [ 4] 0.00-10.00 sec 265 MBytes 222 Mbits/sec receiver Don''t focus too much on retransmit values in iperf3, it''s normal that you see these when the RPi is on the receiving side. The sender will try to t...
by HiassofT
Wed Mar 28, 2018 10:46 am
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

From a userspace perspective pwm-ir-tx works identical to gpio-ir-tx - both have the same capabilities (transmit IR, set carrier frequency and duty cycle). One difference is that you can't easily instantiate more than 1 pwm-ir-tx driver. The current overlay has the first pwm (pwm-0) hardcoded, with ...
by HiassofT
Mon Mar 19, 2018 10:48 pm
Forum: Troubleshooting
Topic: Pi 3 b+ with official supply refusing to boot and power led blinking
Replies: 5
Views: 1721

Re: Pi 3 b+ with official supply refusing to boot and power led blinking

We (LibreELEC) received several similar bug reports and I could reproduce the issue with old NOOBS versions on an RPi3B+. I, too, had problems finding instructions how to officially update NOOBS. What finally worked for me (with an initial NOOBS 2.4.5 installation) were the infos buried in this pihu...
by HiassofT
Sat Mar 17, 2018 10:55 pm
Forum: Troubleshooting
Topic: New P3 B Plus problem
Replies: 13
Views: 1066

Re: New P3 B Plus problem

davidcoton wrote:
Sat Mar 17, 2018 10:48 pm
Put the card back in the Pi3B, and do

Code: Select all

sudo apt update
sudo apt dist-upgrade
Then try again in the Pi3B+.
And if you are running NOOBS you will have to update NOOBS as well.

so long,

Hias
by HiassofT
Fri Mar 16, 2018 9:28 am
Forum: General discussion
Topic: 3B+ ethernet performance
Replies: 33
Views: 4062

Re: 3B+ ethernet performance

Does anyone know how network latency compares with the original 3B? For example, how do ping times from a PC to a 3B compare to ping times from the same PC to the 3B+ using the same Gbit switch? With EEE disabled 3B+ ping times are about 25% lower, with EEE enabled they are about the same as 3B. RP...
by HiassofT
Thu Mar 15, 2018 4:22 pm
Forum: General discussion
Topic: Error buying mpeg-2 and vc-1 license
Replies: 13
Views: 1898

Re: Error buying mpeg-2 and vc-1 license

I had the same issue today and what finally worked was to select "proceed to checkout" and later select paypal. Using the "checkout with paypal" button in the shopping cart resulted in the invalid shipping address message.

so long,

Hias
by HiassofT
Thu Mar 15, 2018 10:07 am
Forum: General discussion
Topic: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE
Replies: 376
Views: 46580

Re: New Raspberry Pi model 3B+ 1.4 GHz, 330Mbit Ethernet, 802.11ac, PoE

Certainly some of it. EEE is supported. If the switch you connect to supports it you save about 0.5W. Just tested with the latest 4.14 rpi-update kernel which added EEE support and indeed it makes a nice difference. Idle power consumption of headless RPi3B+ (running Raspbian Stretch lite) was almos...
by HiassofT
Thu Mar 15, 2018 9:36 am
Forum: General discussion
Topic: LAN7515 -- USB bus contention issues?
Replies: 12
Views: 4539

Re: LAN7515 -- USB bus contention issues?

I did a quick test on my 3B+ and measured transfer speeds of slightly below 20MB/sec on GBit ethernet when copying a 10GB file via Samba from/to a 2.5" USB HDD attached to the RPi. So that's about what's to be expected from the USB2.0 limit. RPI 3B+ was running LibreELEC 8.2.4 with Samba 4.6.14, the...
by HiassofT
Mon Mar 12, 2018 10:02 am
Forum: Device Tree
Topic: Mute GPIO
Replies: 21
Views: 3839

Re: Mute GPIO

The 5 seconds delay before mute is turned on comes frome the DAPM pmdown time. Main reason for this delay is to avoid clicks when a device is closed and then shortly after that opened again. You can change this delay via the pmdown_time module parameter of snd_soc_core. Note that the delay is in mil...
by HiassofT
Wed Feb 28, 2018 2:41 pm
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

Hmmm this seems to work fine here on RPi2. config.txt: dtoverlay=gpio-ir,gpio_pin=17 dtoverlay=gpio-ir-tx,gpio_pin=18 Terminal 1: root@raspbian:~# ir-keytable -s rc1 -p rc5 -t Protocols changed to rc-5 Testing events. Please, press CTRL-C to abort. 1519828026.219516: event type EV_MSC(0x04): scancod...
by HiassofT
Wed Feb 28, 2018 10:23 am
Forum: Device Tree
Topic: Possibility for multiple instances of LIRC?
Replies: 40
Views: 7704

Re: Possibility for multiple instances of LIRC?

When you run ir-keytable -t you may have to specify the protocol, eg use "ir-keytable -p rc5 -t". When you run mode2 it'll disable all in-kernel decoders. If you run "ir-keytable" it'll show which decoders are available and which ones are enabled. eg: # ir-keytable Found /sys/class/rc/rc0/ (/dev/inp...
by HiassofT
Tue Feb 27, 2018 10:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 885
Views: 408538

Re: STICKY: The I2S sound thread.

Ok. I hooked up the i2c lines, but am having issues seeing the device. I posted the issue in this thread... https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=206443 Any idea why I can see the USBi, but not the 1701? I2C address 0x34 seems to be correct. I2C uses 7bit address followed by a bit...
by HiassofT
Tue Feb 27, 2018 9:36 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 885
Views: 408538

Re: STICKY: The I2S sound thread.

When I do a playback open (snd_pcm_open) with "plughw:0,0" as the card name, and 48000 as speed, I can get alsa to open OK with 32,24 and 16 bits (though the hardware driver outputs only to 24 bits as mentioned in an earlier post) However, when I try an open using "dmix" as the card name, 32 an 24 ...
by HiassofT
Mon Feb 26, 2018 1:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 885
Views: 408538

Re: STICKY: The I2S sound thread.

From a quick glance the DT overlay looks OK to me.

But, as I wrote before, setup ADAU1701 to be controlled via I2C, hook up the I2C lines and allow the driver to control ADAU1701 via I2C like the driver expects it.

so long,

Hias
by HiassofT
Sun Feb 25, 2018 3:01 pm
Forum: HATs and other add-ons
Topic: Iqaudio DAC + and shutdown hardware button problem.
Replies: 2
Views: 659

Re: Iqaudio DAC + and shutdown hardware button problem.

IQaudio DAC only uses very few GPIOs (I2S, I2C, plus GPIO22 for mute on the DAC+) but you managed to pick one of the important, used ones (pin 5 is I2C clock line). Use eg pin 7 (GPIO4) instead, that one should be unused IIIRC

so long,

Hias
by HiassofT
Sun Feb 25, 2018 12:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 885
Views: 408538

Re: STICKY: The I2S sound thread.

You also have to add the adau1701 codec to devicetree so that the module is loaded and you can reference the codec in the simple-card fragment. Of course you also have to connect the I2C lines and use the correct I2C address in the fragment - plus maybe add the reset, pll, ... gpio properties so tha...

Go to advanced search