Go to advanced search

by DougieLawson
Sun May 20, 2018 1:51 pm
Forum: General discussion
Topic: Upgrade confusion?
Replies: 8
Views: 327

Re: Upgrade confusion?

Raspbian does tell you when a reboot is needed, but the message usually gets lost in the wall of text of a big update/upgrade. How so?... the word `reboot` does not appear in 390 lines of output from `sudo apt-get upgrade` Did that include any update to raspberrypi-kernel? If not, then you probably...
by DougieLawson
Sun May 20, 2018 1:17 pm
Forum: Python
Topic: What is the difference between code academy Python and Pi's Python?
Replies: 22
Views: 327

Re: What is the difference between code academy Python and Pi's Python?

... and finally, Python will get out of puberty and become a decent language... :lol: Sorry, but the genie is out of the bottle, python will always remain an ugly language. They couldn't even manage to make python3 compatible with python2, they won't add your features for python4/5/6/7/8. You can d...
by DougieLawson
Sun May 20, 2018 12:23 pm
Forum: Networking and servers
Topic: Ethernet not working for router, OK via hub
Replies: 1
Views: 27

Re: Ethernet not working for router, OK via hub

Does your router have MAC address filtering enabled?
by DougieLawson
Sun May 20, 2018 11:38 am
Forum: Advanced users
Topic: Pi 3 B+ fries if 3V3 rail is shorted to 5V
Replies: 19
Views: 418

Re: Pi 3 B+ fries if 3V3 rail is shorted to 5V

Crikey... Stick one of these over the 5V GPIO pins, and problem solved... https://cdn.sparkfun.com//assets/parts/2/4/0/7/09044-02-L.jpg Nice, simple, pragmatic option. If I were designing the header for the RPi I'd have kept 5V away off the header on seperate pins, but that would have added some pe...
by DougieLawson
Sat May 19, 2018 11:08 pm
Forum: General discussion
Topic: Just throwing this out there: backdir
Replies: 23
Views: 1057

Re: Just throwing this out there: backdir

Gitolite - that gives you a local git repo.
GitWeb - that works with a Gitolite repo & Apache/Lighty/NGINX and gives you a web interface to your code stored in your local repo.

I only publish code to https://github.com when it may be useful to someone else.
by DougieLawson
Sat May 19, 2018 11:05 pm
Forum: General discussion
Topic: Telegram desktop app for Raspberry pi
Replies: 3
Views: 106

Re: Telegram desktop app for Raspberry pi

It's probably safer to pull the source from https://github.com/telegramdesktop/tdesktop and build that on your Raspberry.
by DougieLawson
Sat May 19, 2018 10:34 pm
Forum: Python
Topic: What is the difference between code academy Python and Pi's Python?
Replies: 22
Views: 327

Re: What is the difference between code academy Python and Pi's Python?

Try pasting it into a file you're editing with nano /home/pi/restaurant.py then run that with python (NOT idle, idle2 or idle3). Save the file. Then cat /home/pi/restaurant.py should look like pi@endeavour:~$ cat restaurant.py #!/usr/bin/python3 def tax(bill): bill *= 1.08 print ("With tax: %f" % bi...
by DougieLawson
Sat May 19, 2018 6:34 pm
Forum: Other projects
Topic: Making an HUD
Replies: 4
Views: 116

Re: Making an HUD

You've failed at the first hurdle. There's no viable version of Android on your RPi (and it's not supported on this forum any way).
by DougieLawson
Sat May 19, 2018 6:32 pm
Forum: Python
Topic: What is the difference between code academy Python and Pi's Python?
Replies: 22
Views: 327

Re: What is the difference between code academy Python and Pi's Python?

Do it with python3 and see how you get on with understanding the differences. You'll learn a useful skill that way.

All new code should be python3.
by DougieLawson
Sat May 19, 2018 10:06 am
Forum: B+ addons
Topic: How to detect what HAT is connected
Replies: 14
Views: 297

Re: How to detect what HAT is connected

But the bottom line is that very few people think it matters (proven by the fact that only 2 people have ever asked me about it - including this thread). With a board as simple as the Pro Hat there is little gained by programming the EEPROM as no pre-configuration is necessary, since it's a complet...
by DougieLawson
Sat May 19, 2018 8:08 am
Forum: General discussion
Topic: Problem on MAX30105 sensor on Raspberry Pi 3
Replies: 14
Views: 331

Re: Problem on MAX30105 sensor on Raspberry Pi 3

Stop being a grammar nazi.
by DougieLawson
Sat May 19, 2018 8:07 am
Forum: Troubleshooting
Topic: Cant install using pip
Replies: 4
Views: 89

Re: Cant install using pip

sudo mv /usr/bin/pip /usr/bin/pip2.0
sudo ln -s /usr/bin/pip3 /usr/bin/pip
by DougieLawson
Sat May 19, 2018 7:41 am
Forum: General discussion
Topic: Problem on MAX30105 sensor on Raspberry Pi 3
Replies: 14
Views: 331

Re: Problem on MAX30105 sensor on Raspberry Pi 3

I have two I2C RTCs and a BMP180 temp sensor all running at 5V. I use 5V for MCP23017s.

I haven't fried a RPi yet. So the pull-up on the open drain is 5V safe.
by DougieLawson
Sat May 19, 2018 7:30 am
Forum: Raspbian
Topic: Raspbian hangs on reboot
Replies: 3
Views: 106

Re: Raspbian hangs on reboot

sudo rpi-update has a fix for the reboot hang (as of yesterday, so it's still a bit experimental).
by DougieLawson
Sat May 19, 2018 7:27 am
Forum: Troubleshooting
Topic: Noise from the board
Replies: 11
Views: 282

Re: Noise from the board

Your silent video is way beyond my range of hearing. It's likely something oscillating near the power supply/regulator.

Wait 30 years and the problem won't be audible.
by DougieLawson
Sat May 19, 2018 6:47 am
Forum: General discussion
Topic: Problem on MAX30105 sensor on Raspberry Pi 3
Replies: 14
Views: 331

Re: Problem on MAX30105 sensor on Raspberry Pi 3

In any case, do not connect the 30105 to 5 volts and then connect the SDA and SCL or INT lines to the RPi unless you want to "bake your Pi". Everything on the 30105 board will work with 3.3 volts except the green LED might need more. It won't interfere with pulse or sp02 functions. Good luck. The I...
by DougieLawson
Sat May 19, 2018 6:45 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI: How many bytes were sent?
Replies: 3
Views: 73

Re: SPI: How many bytes were sent?

Take a look at http://abyz.me.uk/rpi/pigpio/piscope.html that will let you see the signals you're sending on the SPI pins.
by DougieLawson
Sat May 19, 2018 6:30 am
Forum: Python
Topic: Subscribing to Multiple MQTT topics
Replies: 5
Views: 94

Re: Subscribing to Multiple MQTT topics

If you make the topics into a tree by including a / character at each branch. You can subscribe to generic topics with a "+" or a "#" topic filter. For example I've got a raspberry, an arduino and a wemos all publishing environmental data. So they publish on raspberry/out/temp, raspberry/out/pressur...
by DougieLawson
Sat May 19, 2018 6:18 am
Forum: Troubleshooting
Topic: Can't Get LED to light
Replies: 14
Views: 249

Re: Can't Get LED to light

Don't use pin#08/GPIO14 and pin#10/GPIO15 unless you've disabled the serial console (using the preferences GUI).

https://pinout.xyz
by DougieLawson
Fri May 18, 2018 6:41 pm
Forum: Raspbian
Topic: STICKY: Jessie (now defunct and replaced with Stretch) Q&A
Replies: 392
Views: 118498

Re: STICKY: Jessie (now defunct and replaced with Stretch) Q&A

ifplugd doesn't exist on current supported OS versions.

The time to upgrade to Raspbian Stretch is NOW!
by DougieLawson
Fri May 18, 2018 6:38 pm
Forum: Python
Topic: Max31855 on SPI not working
Replies: 2
Views: 370

Re: Max31855 on SPI not working

Try this: #!/usr/bin/python # -*- coding: utf-8 -*- import spidev from time import sleep m31855 = spidev.SpiDev(0,0) m31855.max_speed_hz=1000000 def c_to_f(temp): f = ((temp/5)*9)+32 return f def readTempC(): m31855.writebytes([0x00,0x00,0x00,0x00]) tempRead = m31855.readbytes(4) temp32 = tempRead[0...
by DougieLawson
Fri May 18, 2018 4:02 pm
Forum: B+ addons
Topic: How to detect what HAT is connected
Replies: 14
Views: 297

Re: How to detect what HAT is connected

alexeames wrote:
Fri May 18, 2018 3:57 pm
Actually it IS a HAT and would fully meet the HAT spec if the EEPROM was programmed. :oops:
So it's an out-of-spec HAT.
by DougieLawson
Fri May 18, 2018 3:13 pm
Forum: Windows 10 for IoT
Topic: DEP6957 error on UWP C# app deployment
Replies: 3
Views: 116

Re: DEP6957 error on UWP C# app deployment

https://social.msdn.microsoft.com/Forum ... WindowsIoT

If that doesn't answer it, post a new question on that forum.

Go to advanced search