Go to advanced search

by DougieLawson
Sat Jul 21, 2018 9:40 am
Forum: General discussion
Topic: Relay Module KY-019 5V
Replies: 196
Views: 8761

Re: Relay Module KY-019 5V

Here's a collection of functions to make driving your MCP23017 easier. It starts by setting both direction registers to outputs on all 16 GPIOs. You may need to swap pinOn and pinOff if your relays are active LOW. import smbus ADDR = 0x22 IODIRA = 0x00 IODIRB = 0x01 GPIOA = 0x12 GPIOB = 0x13 OLATA =...
by DougieLawson
Sat Jul 21, 2018 9:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Setting register bit
Replies: 6
Views: 148

Re: Setting register bit

You should be using read_word_data(0x2A, register) or read_word_data(0x2B) to get two bytes returned.

You'll need to check with i2cdetect -y 1 which address your sensor appears at.
by DougieLawson
Sat Jul 21, 2018 9:19 am
Forum: Troubleshooting
Topic: PLEASE HELP!
Replies: 6
Views: 89

Re: PLEASE HELP!

Someguyonline69 wrote:
Sat Jul 21, 2018 4:45 am
no luck, sold red light. I AM SO NERVOUS :oops:
Next time you're going to post three panicking posts in quick succession, take a look at
https://www.timeanddate.com/worldclock/ ... tml?p1=136

You posted when most of the UK and a large part of Europe were in their beds sleeping.
by DougieLawson
Sat Jul 21, 2018 9:09 am
Forum: Troubleshooting
Topic: IP Address Printed on 16x2 LCD
Replies: 3
Views: 64

Re: IP Address Printed on 16x2 LCD

Post your code on here in [code][/code] tags.
by DougieLawson
Sat Jul 21, 2018 8:56 am
Forum: Troubleshooting
Topic: How to back out of RPI-Update
Replies: 4
Views: 66

Re: How to back out of RPI-Update

I read that doing an RPI update may not be the best/smartest thing to do (of course, after the fact). It's not the smartest thing because you don't know what you're getting and it could be experimental. But this week's rpi-update isn't poisonous, thirteen of my raspberries are running on that level...
by DougieLawson
Fri Jul 20, 2018 10:40 pm
Forum: Troubleshooting
Topic: Trying to set up a Canon LBP 6030w over Wifi or USB
Replies: 10
Views: 2334

Re: Trying to set up a Canon LBP 6030w over Wifi or USB

thaidacvinh wrote:
Fri Jul 20, 2018 9:29 pm
I have contacted Canon support as well. They reply no support for Raspbian.
Take it back to the store, ask for a refund as "not fit for purpose".
by DougieLawson
Fri Jul 20, 2018 7:06 pm
Forum: Troubleshooting
Topic: Raspi in ipv6 environment can't reach outside world
Replies: 11
Views: 158

Re: Raspi in ipv6 environment can't reach outside world

sudo apt-get -o Acquire::ForceIPv4=true update sudo apt-get -o Acquire::ForceIPv4=true dist-upgrade sudo apt-get -o Acquire::ForceIPv4=true update sudo apt-get -o Acquire::ForceIPv4=true install dnsutils The first three commands are to ensure your APT system is up to date (it'll also install all av...
by DougieLawson
Fri Jul 20, 2018 6:08 pm
Forum: Troubleshooting
Topic: Raspi in ipv6 environment can't reach outside world
Replies: 11
Views: 158

Re: Raspi in ipv6 environment can't reach outside world

Ah, your resolver can't resolve AAAA addresses.

You can test that stuff with
sudo apt install dnsutils
dig AAAA ipv6.google.com
dig AAAA google.com
dig A google.com
dig A www.bbc.co.uk
by DougieLawson
Fri Jul 20, 2018 5:42 pm
Forum: General discussion
Topic: A new level of seasickness - Or how I learnt to stop worrying and love the new website
Replies: 51
Views: 1420

Re: A new level of seasickness - Or how I learnt to stop worrying and love the new website

The moderator who changed my thread title clearly has a love of Dr. Strangelove - well done.
by DougieLawson
Fri Jul 20, 2018 5:36 pm
Forum: Troubleshooting
Topic: Raspi in ipv6 environment can't reach outside world
Replies: 11
Views: 158

Re: Raspi in ipv6 environment can't reach outside world

So if you can't reach the public internet the problem doesn't lie on your Raspberry. It's on the gateway/router device.
by DougieLawson
Fri Jul 20, 2018 4:03 pm
Forum: Troubleshooting
Topic: Raspi in ipv6 environment can't reach outside world
Replies: 11
Views: 158

Re: Raspi in ipv6 environment can't reach outside world

Can you ping6 to your gateway address?

Is that 2a00::1 address one end of a IPv4/IPv6 tunnel?
by DougieLawson
Fri Jul 20, 2018 3:51 pm
Forum: Troubleshooting
Topic: Raspi in ipv6 environment can't reach outside world
Replies: 11
Views: 158

Re: Raspi in ipv6 environment can't reach outside world

Where is your gateway (2a00:????:????:????::1) running? Does the gateway machine run DHCPv6 or RADVD? What do you get from ip -6 route ? You should see something like 20??:????:????:????::/64 dev wlan0 proto kernel metric 303 mtu 1500 pref medium fe80::/64 dev wlan0 proto kernel metric 256 pref medi...
by DougieLawson
Fri Jul 20, 2018 2:08 pm
Forum: General discussion
Topic: Is it suitable? For a Computer Science course?
Replies: 10
Views: 275

Re: Is it suitable?

scotty101 wrote:
Fri Jul 20, 2018 12:23 pm
A raspberry pi would be perfect for someone doing a computer science degree.
Because that's, precisely, the reason the Raspberry Pi exists. Cambridge Uni found that the CS101 students hadn't had enough experience with single board computers or with computers that were easy to program.
by DougieLawson
Fri Jul 20, 2018 2:04 pm
Forum: Networking and servers
Topic: Need help to make an hostapd AP on an RPI2 Raspbian Stretch
Replies: 4
Views: 101

Re: Need help to make an hostapd AP on an RPI2 Raspbian Stretch

That's the problem that "predictable network names" was trying to solve. That would build wlx00c0ca96d88b & wlxb827eb1e5652 with no mucking about with udev rules needed. Move a dongle from one RPi to another and the wlx???????? name moves with it. That allows me to use a single /etc/dhcpcd.conf file...
by DougieLawson
Fri Jul 20, 2018 1:59 pm
Forum: General discussion
Topic: We're looking at introducing more swag - what would you like to see?
Replies: 43
Views: 760

Re: We're looking at introducing more swag - what would you like to see?

How about an airline sick bag with a Raspberry logo? So that we're ready for the next time that wibbly wobbly sick making things are planted on the home page. Seriously, the best swag I ever got (from BMC Software) is a keyring with bottle opener. https://www.wedunit.com.au/19005-large_default/perso...
by DougieLawson
Fri Jul 20, 2018 9:23 am
Forum: General discussion
Topic: A new level of seasickness - Or how I learnt to stop worrying and love the new website
Replies: 51
Views: 1420

Re: A new level of seasickness

mikerr wrote:
Fri Jul 20, 2018 9:16 am
Why not mention "new website theme" in the thread title ... you should know better, Dougie !
I was too busy vomiting into the paper bag.

It really is hideous.
by DougieLawson
Fri Jul 20, 2018 8:57 am
Forum: Beginners
Topic: Email
Replies: 5
Views: 107

Re: Email

https://stackoverflow.com/a/39899279

I can't test that as I don't use POP3 for email any longer. GMail is IMAP.
by DougieLawson
Thu Jul 19, 2018 11:58 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)
Replies: 21
Views: 435

Re: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)

You do NOT need a heatsink on a 3B+. No matter what you're running, they're purely cosmetic.
by DougieLawson
Thu Jul 19, 2018 10:33 pm
Forum: Troubleshooting
Topic: DPI Difficulties after upgrading to Raspian Stretch
Replies: 2
Views: 68

Re: DPI Difficulties after upgrading to Raspian Stretch

You should lose all that overscan stuff and add

Code: Select all

dtoverlay=vga666
by DougieLawson
Thu Jul 19, 2018 9:59 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)
Replies: 21
Views: 435

Re: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)

I don't think so, as it's constantly decoding the mode-S and ADS-B messages from any aircraft in view. It's a CPU hog. The USB RTL-SDR is a power hog (it don't half run hot).
by DougieLawson
Thu Jul 19, 2018 9:57 pm
Forum: Python
Topic: Adafruit DHT22 pass sensor value dynamically
Replies: 1
Views: 69

Re: Adafruit DHT22 pass sensor value dynamically

Sensortype needs to be a simple string: SENSORS = [DHT11, DHT22, AM2302]

You can read the code at: https://github.com/adafruit/Adafruit_Py ... /common.py
by DougieLawson
Thu Jul 19, 2018 9:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Setting register bit
Replies: 6
Views: 148

Re: Setting register bit

Benno, You're not going to be able to just write one bit, the smbus "write_byte_data" method expects you to write at least one byte...hence the name of the method. Furthermore, it looks like your device expects more than one byte. Yes you can. Read the register first. Use logicial OR to set a bit. ...
by DougieLawson
Thu Jul 19, 2018 6:11 pm
Forum: Beginners
Topic: Installation of Mysql connector on Pi
Replies: 14
Views: 259

Re: Installation of Mysql connector on Pi

That's an improvement, you're past the authentication error. You now need to ensure that your userid is allowed to make remote connections and can access your "temp1" database.

https://stackoverflow.com/questions/162 ... ote-access
by DougieLawson
Thu Jul 19, 2018 6:07 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)
Replies: 21
Views: 435

Re: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)

Hello there, I purchased this Raspberry Pi 3B+ from RS Malaysia (Sent out from RS Global [UK Warehouse]). OS of course is the latest version of the Raspbian Stretch either Desktop or Lite tested. FYI, this Pi only need to run very light weight of deb package from FlightAware Dump1090-fa as well as ...

Go to advanced search