Go to advanced search

by DougieLawson
Sat Feb 16, 2019 8:30 pm
Forum: Troubleshooting
Topic: Raspberry Pi won't boot up anymore (Kali)
Replies: 1
Views: 38

Re: Raspberry Pi won't boot up anymore (Kali)

You are much more likely to find someone who can help at: https://forums.kali.org
by DougieLawson
Sat Feb 16, 2019 8:28 pm
Forum: Beginners
Topic: MySQL problem: PHP extension “pdo_mysql” is disabled
Replies: 5
Views: 64

Re: MySQL problem: PHP extension “pdo_mysql” is disabled

Then you'll need to hack at the php config files in /etc/php/7.0
by DougieLawson
Sat Feb 16, 2019 4:27 pm
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 4
Views: 58

Re: Trigger script on sunset and -rise

Everything in /usr/local/... is locally created.
by DougieLawson
Sat Feb 16, 2019 2:45 pm
Forum: Advanced users
Topic: Trigger script on sunset and -rise
Replies: 4
Views: 58

Re: Trigger script on sunset and -rise

I run sunwait from a crontab twice per day. 45 4 * * * root /usr/local/bin/sunwait civ up +0:00:00 51.200000N 1.130000W ; /usr/local/bin/sunny.sh light; 30 15 * * * root /usr/local/bin/sunwait civ down -0:00:00 51.200000N 1.130000W ; /usr/local/bin/sunny.sh dark; That gets the sunny.sh shell script ...
by DougieLawson
Sat Feb 16, 2019 12:41 pm
Forum: Troubleshooting
Topic: Gpio pins dying on my Rasp 3
Replies: 7
Views: 94

Re: Gpio pins dying on my Rasp 3

If you feed a GPIO with more than 3.3V or 16mA you will burn it out. If you feed it with back EMF from a motor or solenoid it will die.

You should be switching a MOSFET with the GPIO then switching your load with that MOSFET.

Time to buy a new RPi3B+ as your existing one will soon be 100% dead.
by DougieLawson
Sat Feb 16, 2019 12:38 pm
Forum: Troubleshooting
Topic: wacom bamboo ctl-470 has no pressure
Replies: 2
Views: 34

Re: wacom bamboo ctl-470 has no pressure

If you want the kernel headers use rpi-source from https://github.com/notro/rpi-source that will pull the kernel source and headers for your current running kernel.
by DougieLawson
Sat Feb 16, 2019 10:32 am
Forum: Advanced users
Topic: Can not get RPI3B+ to boot from SD after program_gpio_bootmode=1
Replies: 9
Views: 179

Re: Can not get RPI3B+ to boot from SD after program_gpio_bootmode=1

The best guidance I can offer is DON'T DO THIS. It doesn't make enough difference to boot time.
by DougieLawson
Sat Feb 16, 2019 9:21 am
Forum: Beginners
Topic: Install software for souce hat
Replies: 3
Views: 64

Re: Install software for souce hat

You can run apt install from python with

Code: Select all

import os
cmd = 'sudo apt install sense-hat'
os.system(cmd)
by DougieLawson
Sat Feb 16, 2019 9:18 am
Forum: Beginners
Topic: Running Raspberry Pi 1 OS on Raspberry Pi 3
Replies: 3
Views: 95

Re: Running Raspberry Pi 1 OS on Raspberry Pi 3

If the old SDCard contains NOOBS with Raspbian then don't bother trying to upgrade, the process is complex and not worth the pain.
by DougieLawson
Sat Feb 16, 2019 7:50 am
Forum: Compute Module
Topic: How to set up i2c for rtc?
Replies: 2
Views: 48

Re: How to set up i2c for rtc?

njsss wrote:
Fri Feb 15, 2019 11:31 pm

Code: Select all

$ dmesg | grep pcf8523

rtc-pcf8523: probe of 1-0068 failed with error -121
Your RTC hardware is broken or not wired to the I2C sda/scl pins correctly.
https://pinout.xyz/pinout/i2c
by DougieLawson
Fri Feb 15, 2019 9:29 pm
Forum: Advanced users
Topic: Can not get RPI3B+ to boot from SD after program_gpio_bootmode=1
Replies: 9
Views: 179

Re: Can not get RPI3B+ to boot from SD after program_gpio_bootmode=1

GPIO22 disables SD1, GPIO23 disables SD2, GPIO24 disables NAND (irrelevant on a 3B+), GPIO25 disables SPI, and GPIO26 disables USB. Connect GPIO22 to 3V3 (pin#1 or pin#17) to ENable SD boot. Or connect GPIO22 to GND to DISable SD boot. If you've got the OTP settings wrong or you've ever used ancien...
by DougieLawson
Fri Feb 15, 2019 8:51 pm
Forum: General discussion
Topic: max size of SD card
Replies: 3
Views: 153

Re: max size of SD card

Will5455 wrote:
Fri Feb 15, 2019 1:06 pm
What is the maximum size of sd card raspbian use?
Linux has no practical limit. The limit is the size of your budget.

NOOBS is hard to install on any SDCard over 64GB.
Raspbian needs 8GB but ideally 16GB as a minimum.
by DougieLawson
Fri Feb 15, 2019 8:48 pm
Forum: Beginners
Topic: MySQL problem: PHP extension “pdo_mysql” is disabled
Replies: 5
Views: 64

Re: MySQL problem: PHP extension “pdo_mysql” is disabled

Install both with sudo apt-get install php7.0-mysql php7.0-gd. Then restart your web server.
by DougieLawson
Fri Feb 15, 2019 7:33 pm
Forum: Python
Topic: Problem with Piscope (pigpio) and spidev
Replies: 7
Views: 177

Re: Problem with Piscope (pigpio) and spidev

Simplest option is connect each device with it's own CE/CS/SS pin. Use /dev/spidev0.0 for CE0 and /dev/spidev0.1 for CE1. https://pinout.xyz/pinout/spi
by DougieLawson
Fri Feb 15, 2019 7:28 pm
Forum: Advanced users
Topic: [Tutorial] How to move away from NOOBS
Replies: 22
Views: 7239

Re: [Tutorial] How to move away from NOOBS

Can I just remind folks that this stuff is FIVE YEARS OLD and quite possibly out-of-date. It has not been tested by me since 1st May 2014. When it breaks your NOOBS card and leaves you with an unbootable mess of junk don't blame me. I'm also not prepared to test it at the moment with NOOBS 3.0.0. US...
by DougieLawson
Fri Feb 15, 2019 8:08 am
Forum: Off topic discussion
Topic: Is ARM doomed?
Replies: 15
Views: 389

Re: Is ARM doomed?

Imperf3kt wrote:
Fri Feb 15, 2019 8:03 am
Personally, I refuse to use RISC. Tried RISC OS once, took half an hour to figure out how to shut it down.
I tried RISCOS once, it took ten seconds to pull the power and 20 mins to rewrite the SDCard with something useful.
by DougieLawson
Fri Feb 15, 2019 7:29 am
Forum: Beginners
Topic: PiGPIO PWM Alternatives
Replies: 1
Views: 54

Re: PiGPIO PWM Alternatives

What is it about pigpio/pigpiod that doesn't work for you? It really is the best of breed.
by DougieLawson
Fri Feb 15, 2019 7:26 am
Forum: Python
Topic: Problem with Piscope (pigpio) and spidev
Replies: 7
Views: 177

Re: Problem with Piscope (pigpio) and spidev

If you have an SPI device there will be a manufacturer's datasheet for the chips that are on the device.
by DougieLawson
Fri Feb 15, 2019 7:19 am
Forum: Beginners
Topic: impossible to update jessie: pb main package
Replies: 1
Views: 24

Re: impossible to update jessie: pb main package

Why are you trying to update an OS that went end of life in AUGUST 2017 (17 months ago)? Get a new SDCard, get a copy of Raspbian Stretch 2018-11-13, get a copy of Etcher. Use Etcher to write Stretch to your new SDCard. Boot that. Mount your old Jessie SDCard in a USB reader, insert that in your RPi...
by DougieLawson
Fri Feb 15, 2019 2:28 am
Forum: General discussion
Topic: Weather station in freezing weather: questions
Replies: 17
Views: 403

Re: Weather station in freezing weather: questions

My weather station is mounted on the outside of my "man cave". The lowest I've seen it in the UK winter is -5° (it may have gone lower while I was away when the UK snow grid locked Basingstoke). No problems with that, it's still running. That's good to know! I'm assuming that you're using the stand...
by DougieLawson
Thu Feb 14, 2019 7:09 am
Forum: Python
Topic: Preventing RPi.GPIO access conflicts
Replies: 4
Views: 117

Re: Preventing RPi.GPIO access conflicts

create a daemon process that manages the GPIO and make the user applications call the service through that daemon. this is a common pattern to manage single access resources. That piece already exists. There's Joan's pigpiod daemon and the pigpio python library. That even works over a network (you ...
by DougieLawson
Thu Feb 14, 2019 7:05 am
Forum: General discussion
Topic: Weather station in freezing weather: questions
Replies: 17
Views: 403

Re: Weather station in freezing weather: questions

My weather station is mounted on the outside of my "man cave". The lowest I've seen it in the UK winter is -5° (it may have gone lower while I was away when the UK snow grid locked Basingstoke). No problems with that, it's still running.
by DougieLawson
Thu Feb 14, 2019 7:00 am
Forum: Python
Topic: Problem with Piscope (pigpio) and spidev
Replies: 7
Views: 177

Re: Problem with Piscope (pigpio)

You need to reduce the length of the time base. Your screen shot currently shows things happening in Piscope for seven seconds. Reduce it to 7 micro seconds and you'll see more detail of what's happening. If the SPI interface is dormant MISO (master in/slave out) will always be LOW. MOSI (master out...
by DougieLawson
Thu Feb 14, 2019 6:53 am
Forum: Networking and servers
Topic: Two default gatway
Replies: 2
Views: 58

Re: Two default gatway

You're not making sense. Any one IP stack can only have one default gateway.

The default gateway is the destination where the IP stack sends packets for IP addresses that don't have a specific route. Having two (without network bonding) is illogical.

Go to advanced search