Go to advanced search

by trejan
Wed Nov 27, 2019 8:01 pm
Forum: Troubleshooting
Topic: Can only reach certain websites | Raspberry Pi 3B [solved]
Replies: 14
Views: 342

Re: Can only reach certain websites | Raspberry Pi 3B

Yeah. You've got working IPv6 but broken IPv4. 169.254.x.x is an Automatic Private IP address which is what is assigned if the DHCP client doesn't get a response from the network. That is usually caused by a problem with your router which is where most people have the DHCP server for the network. Th...
by trejan
Wed Nov 27, 2019 7:20 pm
Forum: Troubleshooting
Topic: Can only reach certain websites | Raspberry Pi 3B [solved]
Replies: 14
Views: 342

Re: Can only reach certain websites | Raspberry Pi 3B

Run ifconfig and paste the output here.

Sounds like your IPv4 is broken but IPv6 is working which is unusual.
by trejan
Wed Nov 27, 2019 4:20 pm
Forum: C/C++
Topic: Problem using libgpiod
Replies: 33
Views: 4834

Re: Problem using libgpiod

The generic method whilst portable is missing features like pullup configuration. If you need that then you'll need to use a Pi specific method like Joan's pigpio.
by trejan
Wed Nov 27, 2019 4:11 pm
Forum: Automation, sensing and robotics
Topic: HX711 and weight cell don't work
Replies: 7
Views: 710

Re: HX711 and weight cell don't work

The usual way of combining multiple load cells is using a wheatstone bridge but I don't know how you'd do 3 load cells. I guess putting in a dummy resistance for the 4th? The load cell combinator boards you can buy are just a convenient way of connecting all the wires. There is no active element on ...
by trejan
Wed Nov 27, 2019 2:44 am
Forum: Troubleshooting
Topic: Pi4 needs a screen to boot - How to make it headless?
Replies: 11
Views: 1118

Re: Pi4 needs a screen to boot - How to make it headless?

Actually the behaviour has changed. I think it is due to the new KMS drivers. Previously if there was no display attached, a framebuffer was still created allowing X to load or vnc to run Hmm. I've always had to force it but I can't remember the specific reason anymore. Maybe the default framebuffe...
by trejan
Wed Nov 27, 2019 1:22 am
Forum: Troubleshooting
Topic: Pi4 needs a screen to boot - How to make it headless?
Replies: 11
Views: 1118

Re: Pi4 needs a screen to boot - How to make it headless?

Excellent. Thank you. I can now run my Pi4 headless but I must admit to being a bit curious as to why this bug/feature has been introduced with the Pi4. None of my Pi3's need this fix. This behaviour hasn't changed. It is the same on previous Pi boards. You currently have VNC setup to replicate you...
by trejan
Tue Nov 26, 2019 8:31 pm
Forum: Troubleshooting
Topic: i2c buffer size increase
Replies: 8
Views: 417

Re: i2c buffer size increase

It has been a long time since I did it but AFAIK you can just increase the maximum size in i2cdev_read/i2cdev_write and it should just work. The SoC BSC can do really big transfers so it isn't a hardware limitation there.
by trejan
Tue Nov 26, 2019 5:28 pm
Forum: Automation, sensing and robotics
Topic: Detecting an appliance is in use
Replies: 30
Views: 1797

Re: Detecting an appliance is in use

Not sure about 'high side' though which IME refers more to things like H bridge and BLDC controller shunts. Technical terminology, can't live with it and can't shoot it. lol *shrug* That is how I've always referred to measurements between power and the load. If you prefer then I'll call it live. In...
by trejan
Tue Nov 26, 2019 3:55 pm
Forum: Troubleshooting
Topic: Pi4 needs a screen to boot - How to make it headless?
Replies: 11
Views: 1118

Re: Pi4 needs a screen to boot - How to make it headless?

Run "sudo raspi-config" then Advanced Options then Resolution. Set the one for your monitor.
by trejan
Tue Nov 26, 2019 3:04 pm
Forum: C/C++
Topic: Problem using libgpiod
Replies: 33
Views: 4834

Re: Problem using libgpiod

john77 wrote:
Tue Nov 26, 2019 2:37 pm
Do you mean gpiod_chip_get_line(chip, X); = GPIOX ?
Yes. They're labelled as BCM X on https://pinout.xyz
by trejan
Tue Nov 26, 2019 2:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how to detect HW RTC on addr 0x68
Replies: 5
Views: 468

Re: how to detect HW RTC on addr 0x68

If you only want to detect a working RTC then look for /dev/rtc

Otherwise you can use "i2cget -y 1 0x68" and check the return value.

0 = Device exists but isn't claimed by any driver.
1 = Device exists but is claimed by a driver. Check /sys/bus/i2c.
2 = No device found.
by trejan
Tue Nov 26, 2019 2:46 pm
Forum: Advanced users
Topic: Raspberry Pi 3B FTDI FT232R USB UART adapter
Replies: 19
Views: 2053

Re: Raspberry Pi 3B FTDI FT232R USB UART adapter

Eh? The contents of your /lib/modules/4.19.75-v7+/modules.softdep are completely wrong and it is also complaining about the module dependencies file as well. Are you sure this is a fresh install with no other changes? Reinstalling the kernel package should have fixed the softdep file as well. You ca...
by trejan
Tue Nov 26, 2019 1:36 am
Forum: General discussion
Topic: Rebooting some old version!??!
Replies: 8
Views: 423

Re: Rebooting some old version!??!

AFAIK there is no way to fix a card that has gone read only. This has happened to me several times, an SD card locking up and being unwritable. Computers refuse to format them, but digital cameras can. I've rescued 2 SD cards this way. I've heard somebody else say that as well but I've never manage...
by trejan
Mon Nov 25, 2019 11:39 pm
Forum: Automation, sensing and robotics
Topic: encoder reading with oscilloscope
Replies: 11
Views: 630

Re: encoder reading with oscilloscope

SlowMoJoe wrote:
Mon Nov 25, 2019 10:41 pm
Actually, it kinda does, but the other pins have their own share of problems. It's a lot noisier for some reason. Also, this time, rather than not switching fully off, now it won't switch fully on.
Sounds like there is something wrong with the chip.
by trejan
Mon Nov 25, 2019 11:31 pm
Forum: General discussion
Topic: Rebooting some old version!??!
Replies: 8
Views: 423

Re: Rebooting some old version!??!

There is no more (or less, or different) problem with using a (mains-side) power switch timer on 'sensitive electronics' than there is in turning them on or off by means of any other sort of power switch. I disagree. Inrush current causing cumulative stress in components is a known problem. It will...
by trejan
Mon Nov 25, 2019 11:14 pm
Forum: Automation, sensing and robotics
Topic: Detecting an appliance is in use
Replies: 30
Views: 1797

Re: Detecting an appliance is in use

emma1997 wrote:
Mon Nov 25, 2019 10:55 pm
trejan wrote:
Mon Nov 25, 2019 5:52 pm
You need to clamp around just the live wire inside the cable.
Actually either wire, not just live, will give the same result.
Sure but was easier to just say live side. I prefer high side monitoring anyway for various reasons but it shouldn't matter for a pump.
by trejan
Mon Nov 25, 2019 9:22 pm
Forum: Automation, sensing and robotics
Topic: encoder reading with oscilloscope
Replies: 11
Views: 630

Re: encoder reading with oscilloscope

What happens if you disconnect it from the Pi and only have it connected to the scope? Does swapping to one of the other channels in the chip make it any better?
by trejan
Mon Nov 25, 2019 7:53 pm
Forum: Advanced users
Topic: Is BLE 5 Angle of Address available with the Pi 4?
Replies: 3
Views: 536

Re: Is BLE 5 Angle of Address available with the Pi 4?

My understanding is that the Pi's Bluetooth has no features of Bluetooth 5.0, except reporting that it is 5.0 certified. Yes. It is the same WiFi/Bluetooth chip from the 3B+ but with a patch that makes it report Bluetooth 5.0 compatibility. It doesn't support any of the new optional features of Blu...
by trejan
Mon Nov 25, 2019 7:37 pm
Forum: Automation, sensing and robotics
Topic: encoder reading with oscilloscope
Replies: 11
Views: 630

Re: encoder reading with oscilloscope

What voltage is that chip running off? If the scope is showing the outputs connected to the Pi then you're exceeding the 3.3V limit. The yellow line is only dropping down to ~3.3V so my guess is either a 3.3V pullup or the pin is damaged because of overvoltage.
by trejan
Mon Nov 25, 2019 5:59 pm
Forum: Advanced users
Topic: Raspberry Pi 3B FTDI FT232R USB UART adapter
Replies: 19
Views: 2053

Re: Raspberry Pi 3B+ FTDI FT232R USB UART adapter

Is this a stock Raspbian install? The ftdi_sio driver should support this out of the box as it is using the FTDI VID and a generic PID for a FT232.

Run

Code: Select all

ls -al /lib/modules/`uname -r`/kernel/drivers/usb/serial
and paste the results.
by trejan
Mon Nov 25, 2019 5:52 pm
Forum: Automation, sensing and robotics
Topic: Detecting an appliance is in use
Replies: 30
Views: 1797

Re: Detecting an appliance is in use

it's not that I don't have access to the pump - a current clamp would work, if it was like the pincer type, or the ring type in the link, as long as I can fit the ac power cord through the opening. It is slightly more complicated than that. You need to clamp around just the live wire inside the cab...
by trejan
Mon Nov 25, 2019 5:11 pm
Forum: Automation, sensing and robotics
Topic: Detecting an appliance is in use
Replies: 30
Views: 1797

Re: Detecting an appliance is in use

If you can't use a current clamp due to no easy access to the live wire then maybe a vibration or hall effect sensor on the pump itself?
by trejan
Mon Nov 25, 2019 4:19 pm
Forum: Beginners
Topic: Wiping RPI 3 B+ SSD boot drive
Replies: 4
Views: 213

Re: Wiping RPI 3 B+ SSD boot drive

You can do it from Windows without installing anything else. Run "Computer Management" and then select "Disk Management". Delete the unwanted partitions from there.
by trejan
Mon Nov 25, 2019 4:15 pm
Forum: General discussion
Topic: Power supply for multiple Pi4's needed. Advice?
Replies: 14
Views: 2328

Re: Power supply for multiple Pi4's needed. Advice?

You only need 3A if you're using the full 1.2A of USB peripherals. If you keep USB peripherals < 500mA then a 2.5A PSU is fine.
by trejan
Mon Nov 25, 2019 4:02 pm
Forum: Beginners
Topic: Pi 3 Disney+ Streaming Device
Replies: 5
Views: 14261

Re: Pi 3 Disney+ Streaming Device

If you're going to run Android on it anyway then buy a Fire TV stick. It'll be a supported platform and cheaper than a Pi setup. There are no official Android ports for the Pi and the ones that do exist have various issues like hardware accelerated graphics and video decoding not working.

Go to advanced search