Go to advanced search

by paulenuta
Thu Sep 26, 2019 4:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PWM input clock (clk_pwm) frequency for Pi4
Replies: 9
Views: 383

Re: PWM input clock (clk_pwm) frequency for Pi4

That's for continuous current AFAIK, but PB-0927PQ buzzer has current consumption of max. 75mA, as per datasheet.
by paulenuta
Mon Sep 23, 2019 5:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PWM input clock (clk_pwm) frequency for Pi4
Replies: 9
Views: 383

Re: PWM input clock (clk_pwm) frequency for Pi4

Should I move'it to a new post?
by paulenuta
Mon Sep 23, 2019 5:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PWM input clock (clk_pwm) frequency for Pi4
Replies: 9
Views: 383

Re: PWM input clock (clk_pwm) frequency for Pi4

An oscilloscope could show what the difference is. If you don't have one, but if you can post the code, then someone who does have one might be able to check what the signals look like. I've got a scope and a Pi3B but I don't have a Pi4. Is your code generating the pulses using PWM hardware, or is ...
by paulenuta
Mon Sep 23, 2019 4:44 pm
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Re: Conditional filter to set HDMI as the default display.

A commit has just gone into the firmware software repo that supports the use of "[edid=*]" to mean any valid EDID, i.e. an HDMI device is attached. It will be in the next firmware build, available first using "sudo rpi-update". https://github.com/raspberrypi/firmware/commit/c3f9eee6fefb0ea7292e6a49...
by paulenuta
Sun Sep 22, 2019 12:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PWM input clock (clk_pwm) frequency for Pi4
Replies: 9
Views: 383

Re: PWM input clock (clk_pwm) frequency for Pi4

Thanks for confirmation!
I have a code to generate 1-3 beeps on a buzzer connected to GPIO18 via a MOSFET-N and after I adapted for both 19.2 MHz and 54 MHz, on RPI4 it is still a lot weaker than on RPI3B+.

Do you have any idea what could be the problem?

Paul
by paulenuta
Fri Sep 20, 2019 9:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PWM input clock (clk_pwm) frequency for Pi4
Replies: 9
Views: 383

Re: PWM input clock (clk_pwm) frequency for Pi4

Hi,
on PI3/Pi3b+ we have oscillator clock of 19.2MHz, please confirm if for PI4 this clock is 54MHz.

Thanks a lot!
Paul
by paulenuta
Thu Aug 29, 2019 8:04 pm
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Re: Conditional filter to set HDMI as the default display.

Still waiting and hoping to happen... :thumbsup:
by paulenuta
Sat May 18, 2019 5:48 am
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Re: Conditional filter to set HDMI as the default display.

Excellent! The firmware is a bit of a black box, so I had assumed the LCD would have been selected prior to this, so the EDID would have been invalid. But I guess not. I'll have to see if this can make some of my scripts simpler. Yes, unfortunately the firmware is the "To be or NOT to be" (open sou...
by paulenuta
Wed May 15, 2019 4:05 pm
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Re: Conditional filter to set HDMI as the default display.

I don't think it is currently possible with your constraints. You could try a [edid=...] filter but I suspect it won't stop the firmware choosing the LCD first. I researched this before and a dual config.txt with the occasional reboot to switch modes was the only way I could get it to work. [EDID=....
by paulenuta
Tue May 14, 2019 10:14 am
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Re: Conditional filter to set HDMI as the default display.

It's all possible, but I don't have time to do anything like that at the moment. This area of the code is undergoing some churn at the moment, so it's rather a moving target as well.
So it is a matter of moths rather than weeks to make available such an option?
by paulenuta
Mon May 13, 2019 7:30 pm
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Re: Conditional filter to set HDMI as the default display.

The display priority is fixed in the firmware, so as James says, it's not normally possible. You might be able to do it with his multiple framebuffer beta firmware (see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=216399). Failing that, the only way to do it currently (AFAIK) is to reboo...
by paulenuta
Mon May 13, 2019 7:22 pm
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Re: Conditional filter to set HDMI as the default display.

Not sure that is possible with current firmware. It deliberately forces LCD to be the default, whether the HDMI is connected or not. I'll have a think, but very busy on other stuff at the moment. Hi James, so there is no experimental or undocumented condition for this, but it could be added, let sa...
by paulenuta
Mon May 13, 2019 2:03 pm
Forum: Official Foundation Display
Topic: Conditional filter to set HDMI as the default display.
Replies: 17
Views: 1977

Conditional filter to set HDMI as the default display.

I have a Raspberry Pi DSI LCD as default/primary display, but if a HDMI display is attached I need to have this one as default/primary display for the system. Currently, if a Raspberry Pi DSI LCD is detected it will be used as the default display, but if we connect an HDMI display we need display_de...
by paulenuta
Mon Sep 17, 2018 8:14 am
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

Thanks a lot Phil! I manage to build my custom configured kernel version 4.14.62-v7+, do some tests, and I can confirm that it was the same issue as you referenced before. Conclusion: I run more than 28 PowerON-PowerOFF cycles on both "standard 4.14.62-v7+" and "custom 4.14.62-v7+" (spi_tpm & gpio_f...
by paulenuta
Fri Sep 14, 2018 6:49 am
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

Hi Phil,
how do i clone the 4.14.62 kernel version from https://github.com/raspberrypi/linux?

Thanks,
Paul
by paulenuta
Thu Sep 13, 2018 2:07 pm
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

I mostly do poweroff's, aka: #!/bin/bash while true do bt=`i2cget -y 1 0x10` if [ $bt == "0x01" ]; then /home/pi/beep && sudo poweroff; fi sleep 2 done and I have an official rpi-display attached which goes blank and looks like a normal shutdown, but after some cycles GPIO27 doesn't change his state...
by paulenuta
Thu Sep 13, 2018 1:52 pm
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

I don't know if they are related, but now my "gpio-poweroff" is not working properly every time, meaning it doesn't change the state at pi poweroff/shutdown (sometimes).
I wonder is it the "gpio-fan" or the builded kernel "Linux 4.14.69-v7+"
by paulenuta
Thu Sep 13, 2018 12:38 pm
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

I also added configuration parameter for temperature, input is in millicelsius 45C = 45000. /* * Overlay for the Raspberry Pi GPIO Fan @ BCM GPIO12. * Optional parameters: * - "gpiopin" - default GPIO12 * - "temp" - default 55000 * Requires: * - kernel configurations: CONFIG_SENSORS_GPIO_FAN=m and C...
by paulenuta
Thu Sep 13, 2018 10:23 am
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

I only got maximum 5C hysteresis but I would say it is 3C, the difference is from the fan inertial (& my eyes :)). Maybe someone else can have a better understanding of the usage and scale of the hysteresis https://github.com/raspberrypi/linux/blob/rpi-4.14.y/Documentation/devicetree/bindings/therma...
by paulenuta
Thu Sep 13, 2018 8:47 am
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

Hi Phil, I've made the kernel with gpio-fan module activated and bellow overlay on which I want to have the fan started at 55C and stopped at 45C, but it stops at 50C? Can I achieve this, or the hysteresis doesn't work this way? Thanks a lot, Paul /* * Overlay for the Raspberry Pi GPIO Fan @ BCM GPI...
by paulenuta
Tue Sep 11, 2018 5:46 pm
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Re: Overlay for GPIO connected fan

That's a bad news, I broked my Ubuntu kernel cross-building machine on Saturday...
I need put back online now.
by paulenuta
Tue Sep 11, 2018 2:30 pm
Forum: Device Tree
Topic: Overlay for GPIO connected fan
Replies: 15
Views: 7339

Overlay for GPIO connected fan

Hi, I want to have an overlay to control a fan connected to PI gpio12 (BCM) and turn it on/off depending on cpu temperature (on gpio18 I have a buzzer, both are connected to gpios via N-MOSFET 22N7002). Similar to https://github.com/raspberrypi/linux/blob/rpi-4.14.y/arch/arm/boot/dts/overlays/rpi-po...
by paulenuta
Fri Nov 11, 2016 12:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SC16IS752 (SC16IS7XX driver) CTS read as always MARK(True)
Replies: 24
Views: 2935

Re: SC16IS752 (SC16IS7XX driver) CTS read as always MARK(Tru

Thanks a lot for your feedback. Most probably I will use GPIO4/0(DSRA/B) to read CTS/RTS state.
Paul

Go to advanced search