Go to advanced search

by Grumpy Mike
Tue Dec 10, 2019 7:09 am
Forum: General discussion
Topic: Pi 4 a cautionary tale
Replies: 14
Views: 772

Re: Pi 4 a cautionary tale

Thanks for all the input. I have removed "self adhesive" heat sinks with a small screwdriver in the past quite successfully, but always with much bigger chips. No damage to the tracks on the Pi's PCB by the way. I will not use a fan end of. There is no need, but I have been using thick aluminum base...
by Grumpy Mike
Mon Dec 09, 2019 5:16 am
Forum: General discussion
Topic: Pi 4 a cautionary tale
Replies: 14
Views: 772

Pi 4 a cautionary tale

I got all the components together to try out my new Pi 4 this weekend. This included the nice looking wrap around heat sink. This made the Wi-Fi performance a lot less sensitive as I suspected, but the connection was also dropping out regularly. Therefore I removed the heatsink top and just screwed ...
by Grumpy Mike
Fri Dec 06, 2019 3:10 pm
Forum: Python
Topic: Pi 4 How to install IDLE3 ?
Replies: 2
Views: 109

Re: Pi 4 How to install IDLE3 ?

Thanks, but I have already found this thread. It was for the Pi 3 and as you know when you change the Pi model along with the OS the normal state of things is that all posts prior to that new release no longer work. One reply stated:- idle 3.7 is not in 'Stretch' but will be in 'Buster' when it is r...
by Grumpy Mike
Fri Dec 06, 2019 2:43 pm
Forum: Python
Topic: Pi 4 How to install IDLE3 ?
Replies: 2
Views: 109

Pi 4 How to install IDLE3 ?

Just trying to set up my new Pi4 today. As usual with a new OS nothing much works.
So has anyone got an idea of how to install IDLE3?
I tried apt and pip and they both failed.
Thanks
by Grumpy Mike
Thu Sep 05, 2019 4:21 pm
Forum: Networking and servers
Topic: VNC working one way but not the other
Replies: 12
Views: 548

Re: VNC working one way but not the other

Thanks. Well the good news is that I got it working over Wi-Fi by using the sudo raspi-config Method which I did try yesterday to no effect. Mind you yesterday I was trying to use the Ethernet cable which is now not working but hey such is Linux. Now to try and get the cable working again. Thanks fo...
by Grumpy Mike
Thu Sep 05, 2019 2:57 pm
Forum: Networking and servers
Topic: VNC working one way but not the other
Replies: 12
Views: 548

Re: VNC working one way but not the other

I didn't say it was from something you put but something has stopped the Ethernet cable from working. Obvious statement - does it have the GUI running at start up? Yes the Pi is set to boot up into the desktop. Can I check what version of the OS you are using? Not sure if it is relevant because it h...
by Grumpy Mike
Thu Sep 05, 2019 2:18 pm
Forum: Networking and servers
Topic: VNC working one way but not the other
Replies: 12
Views: 548

Re: VNC working one way but not the other

Thanks for the reply. Sadly like most things Linux related when you try and fix things it gets worse. As a result of trying the stuff yesterday I can no longer get an Ethernet connection. All I get is alternate flashing arrows on the network icon and words saying "configuring" after half an hour, I ...
by Grumpy Mike
Wed Sep 04, 2019 4:22 pm
Forum: Networking and servers
Topic: VNC working one way but not the other
Replies: 12
Views: 548

Re: VNC working one way but not the other

Thanks for the responses, Are you using a beta OS on your Mac? No I am using Mojave V 10.14.6 latest update from only yesterday. I had the same problem last week before the update. Are you using the RealVNC client (VNC Viewer) on the Mac? Yes. Have you registered the client on the Pi? It does not ma...
by Grumpy Mike
Wed Sep 04, 2019 1:06 pm
Forum: Networking and servers
Topic: VNC working one way but not the other
Replies: 12
Views: 548

VNC working one way but not the other

I am trying to share the Raspberry Pi's screen on my Mac. I can successfully do it the other way round and control my Mac's screen from the Pi but when I try to connect from the Mac to the Pi using RealVNC I either get a "no response from computer" or a time out. I do not get the validation box on t...
by Grumpy Mike
Wed Feb 27, 2019 4:34 pm
Forum: Python
Topic: Sudo and IDLE3
Replies: 2
Views: 294

Re: Sudo and IDLE3

Thanks, I can fudge it by left clicking on the IDLE entry in the Programming menu. Then selecting proprieties and then the Desktop Entry tab. Then I can change the command box to include the sudo. But this means I will always run IDLE in supervisor mode and I would like it to work how it did on the ...
by Grumpy Mike
Wed Feb 27, 2019 3:22 pm
Forum: Python
Topic: Sudo and IDLE3
Replies: 2
Views: 294

Sudo and IDLE3

I have an odd problem. I am trying to connect to a Bluetooth low power device using IDLE3. I have two Pis, one is running with Debian Version 9.3 and this is working fine. The other is working with Debian Version 9.4 and in order for it to work I have to have run IDLE3 in the sudo mode launched from...
by Grumpy Mike
Wed Feb 20, 2019 11:50 am
Forum: Python
Topic: What does "from . import *" mean.
Replies: 6
Views: 674

Re: What does "from . import *" mean.

with the code:-

Code: Select all

from pylgbst.peripherals import ColorDistanceSensor
from . import *
I get the error message

Code: Select all

from . import *
SystemError: Parent module '' not loaded, cannot perform relative import
This is example code from the libiary so it is supposed to work. Any ideas?
by Grumpy Mike
Tue Feb 12, 2019 10:57 pm
Forum: Advanced users
Topic: Using QEMU on the Pi.
Replies: 3
Views: 361

Re: Using QEMU on the Pi.

It is called S2Bot from http://www.picaxe.com/Teaching/Other-So ... per-Apps/
It is designed to take channel Bluetooth BLE messages in and out of Scratch. So I don't know if I would need a x86 version of Scratch as well.
by Grumpy Mike
Tue Feb 12, 2019 10:17 pm
Forum: Advanced users
Topic: Using QEMU on the Pi.
Replies: 3
Views: 361

Using QEMU on the Pi.

I have a package that is only available as a ready compiled X86 Linux version, with no access to the source code. Someone suggested that it might be possible to run this under QEMU. Has any one tried using QEMU on a Raspberry Pi using the latest image (downloaded just last week)? Does it work or not...
by Grumpy Mike
Tue Feb 12, 2019 6:58 pm
Forum: Python
Topic: GPIO setup as an INPUT
Replies: 2
Views: 304

Re: GPIO setup as an INPUT

can someone explain me this code? It reads data from an external MCP3008 analogue to digital converter which is attached to some of the GPIO pins. If you want to look at the data sheet you will see the internal structure of this chip and how it needs to be accessed, this code does that. The adcnum ...
by Grumpy Mike
Mon Feb 11, 2019 3:49 am
Forum: Python
Topic: What does "from . import *" mean.
Replies: 6
Views: 674

Re: What does "from . import *" mean.

Thanks guys, The email notification dosn't seem to be working so sorry for the delay. Yes it does seem a bit confusing, I did read one post where it was advised never to use it. Just to clear up a point ( pun intended ) is the current directory set automatically to the place where IDLE3 is running t...
by Grumpy Mike
Sun Feb 10, 2019 6:39 pm
Forum: Python
Topic: What does "from . import *" mean.
Replies: 6
Views: 674

What does "from . import *" mean.

The title says it all. I found this in some code that talks to a Bluetooth device but I have failed to find what it means.
I get the "import *" bit, I understand this to mean import all of the module, but what does the period mean? What is being used to import everything from?
by Grumpy Mike
Fri Dec 07, 2018 4:53 pm
Forum: Python
Topic: MIDI - occasional quit without error message
Replies: 0
Views: 287

MIDI - occasional quit without error message

I am simply reading the MIDI messages from a Korg nano keyboard. It works fine, but then after some random number of key presses the program simply quits with no error message. This is a example of the problem, striped down to the minimum. # #!/usr/bin/env python3 # MIDI crash minimum example import...
by Grumpy Mike
Fri Oct 05, 2018 7:50 am
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 2334

Re: Wait for edge - false timeout

Thanks guys - it's a wrap. Got it going as a class libiary. The trick was the glitch_filter settings, it seems to work slightly faster in the class code. I was getting what the filter does wrong. It turns out the setting in the filter gives you the pulse size to ignore, so I had to take it to the ti...
by Grumpy Mike
Thu Oct 04, 2018 5:05 pm
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 2334

Re: Wait for edge - false timeout

If cbf is a member of the class you refer to it as self.cbf within the class. Yes but it is not a member of the class I took it from the line on your original code cb[i] = pi.callback(i, pigpio.EITHER_EDGE, cbf) If I do use self.cbf then the whole thing goes into a loop spewing the callback print m...
by Grumpy Mike
Thu Oct 04, 2018 4:55 pm
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 2334

Re: Wait for edge - false timeout

I'd guess the 1300 microseconds is too short a timeout. On the contrary, I have it working down to 80 microseconds. Although I think this might be milliseconds, which would make sense. However I am now attempting to put the code in to a class libiary and I am having trouble with defining the call b...
by Grumpy Mike
Wed Oct 03, 2018 8:00 pm
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 2334

Re: Wait for edge - false timeout

Are the pulses synchronized? No they are all displaced in time from each other. Do you care that the pulses are there or is the concern is if the pulses are not there? I want to know the state pulses or not as they represent the state of switches being pressed to transfer the pulses to the GPIO or ...
by Grumpy Mike
Wed Oct 03, 2018 1:32 pm
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 2334

Re: Wait for edge - false timeout

Thank you for the code you posted. I shortened the time you had to wait to see if a button had a stream or not, from one hour to 10 seconds. Unfortunately all the code did was to report random pins as being steady for too long. It occasionally reported the one pin that was not receiving pulses but a...
by Grumpy Mike
Tue Oct 02, 2018 9:19 pm
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 2334

Re: Wait for edge - false timeout

If you are looking for a warning of a single missed pulse on any one of a number of inputs then it looks tough challenge for a pi without external hardware. Well no that is not quite the situation. I have 16 inputs, some of them will be receiving no pulses, others will be receiving a continuous str...
by Grumpy Mike
Tue Oct 02, 2018 1:52 pm
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 2334

Re: Wait for edge - false timeout

Thanks. However a) The Arduino Mega has 24 interrupt capable lines - not possible in your case but included for completeness Well you can have all the pins on an Uno generate an interrupt with the pin change interrupt if I was thinking of going down that route. Sadly I am not looking to change the O...

Go to advanced search