Go to advanced search

by Grumpy Mike
Fri Oct 05, 2018 7:50 am
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 358

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: 358

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: 358

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: 358

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: 358

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: 358

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: 358

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...
by Grumpy Mike
Tue Oct 02, 2018 12:35 pm
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 358

Re: Wait for edge - false timeout

Even some very small 8 pin devices can have an interrupt connected to the rising/falling edge of a GPIO pin. Yes but they don't have 16 interrupt capable pins. And then you have the trouble of communicating the results back to the Pi. Using an external microprocessor is not an option. The processor...
by Grumpy Mike
Tue Oct 02, 2018 10:09 am
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 358

Re: Wait for edge - false timeout

Thanks for that. Unfortunately the pigpoid documentation for edge detection says:- Do not use this function for precise timing purposes, the edge is only checked 20 times a second. Whenever you need to know the accurate time of GPIO events use a callback function. And as we know the call back functi...
by Grumpy Mike
Tue Oct 02, 2018 9:34 am
Forum: Python
Topic: Wait for edge - false timeout
Replies: 20
Views: 358

Wait for edge - false timeout

I am having trouble with the wait_for_edge function in the RPi.GPIO libiary. I have a bunch of inputs which are being hit with 80uS pulses every 1.3mS. If they stop being hit like this I want to know. To this end I am using a wait_for_edge with a time out of 4ms and detecting when a timeout occurs. ...
by Grumpy Mike
Fri Sep 14, 2018 4:47 pm
Forum: Troubleshooting
Topic: Is it possible to run Xilinx ISE on the Pi
Replies: 3
Views: 136

Re: Is it possible to run Xilinx ISE on the Pi

Well after almost a week there has been no reply from Valentfx, I wonder if they have gone bust or is it just that they don't care. Anyway I started on an alternative solution and after a week of considerable effort I have managed to get my first LEDs blinking from a file I compiled myself. It looks...
by Grumpy Mike
Sat Sep 08, 2018 4:51 pm
Forum: Troubleshooting
Topic: Is it possible to run Xilinx ISE on the Pi
Replies: 3
Views: 136

Re: Is it possible to run Xilinx ISE on the Pi

Yes that is the one. However I haven't found that page with the contact tab, so maybe I should ask them?
Anyway do you know.
Cheers
by Grumpy Mike
Sat Sep 08, 2018 2:19 pm
Forum: Troubleshooting
Topic: Is it possible to run Xilinx ISE on the Pi
Replies: 3
Views: 136

Is it possible to run Xilinx ISE on the Pi

I have a Logi-pi FPGA board, and was hoping to develop some code to run on it. The instructions on the Logi-pi site seem to suggest you can run run Xilinx ISE on the Pi, but other web sites say you can't. I have down loaded the 7G or so tar file and unpacked it, but I can't get the xsetup to run. Sp...
by Grumpy Mike
Tue Sep 04, 2018 12:27 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 3141

Re: Bluetooth serial freezing

Please le me know ASAP.
Let you know what. It freezes end of story.
If you want a fix go and ask the people who write Linux for the Pi.
by Grumpy Mike
Thu May 31, 2018 4:27 pm
Forum: Camera board
Topic: Quality Web Cam - not high res
Replies: 1
Views: 164

Quality Web Cam - not high res

I need a few quality Web Cams, just basic 640 x 480 resolution but it is pointing down at a light table. All the ones I have tried, including the Raspberry Pi's camera give washed out image. They seem resistance to accepting camera control parameters or to have those stick once they go through Pygam...
by Grumpy Mike
Sun May 27, 2018 9:10 am
Forum: Python
Topic: Pygame set_gamma doesn't work
Replies: 0
Views: 102

Pygame set_gamma doesn't work

Pygame set_gamma doesn't appear to work. I have tried gamma = 0.8 print(pygame.display.set_gamma(gamma,gamma,gamma)) and print(pygame.display.set_gamma(gamma)) and even pygame.display.set_gamma(gamma) The call is supposed to return true when successful and these calls in the print statement all prin...
by Grumpy Mike
Wed May 16, 2018 4:04 am
Forum: Python
Topic: Streaming a Pygame window
Replies: 2
Views: 208

Re: Streaming a Pygame window

Thanks for that.
It might do, I am after replaying clips from three Pi's on a big Mac ( without fries ).
by Grumpy Mike
Mon May 14, 2018 3:36 am
Forum: Python
Topic: Streaming a Pygame window
Replies: 2
Views: 208

Streaming a Pygame window

I have a Pygame window showing an animation. I would like stream this window over Wi-Fi or Ethernet for display on another remote computer. Most of the solutions I have seen on line involve saving each frame to a folder and then stitching them together as an animated GIF or converting them into a mo...
by Grumpy Mike
Fri Apr 27, 2018 12:07 pm
Forum: Troubleshooting
Topic: wrong i2c address
Replies: 13
Views: 6965

Re: wrong i2c address

write_byte(9, 0b00000000|0b00000000|0b00001100|0b00000001) #config

Is a rather silly line, it is the logic or of 4 bytes and could be replaced with:-
write_byte(9, 0b00001101) #config
Or even better if you replaced it with:-
write_byte(9, 0xD) #config
by Grumpy Mike
Mon Apr 23, 2018 4:16 pm
Forum: Raspbian
Topic: How to disable screen timeout? Raspbian Jessie
Replies: 8
Views: 18786

Re: How to disable screen timeout? Raspbian Jessie

Dosn't work on the new OS for the V3B+ Pi
by Grumpy Mike
Fri Apr 20, 2018 6:50 pm
Forum: Networking and servers
Topic: Getting Wi-Fi to work once you have followed a bad tutorial
Replies: 2
Views: 304

Getting Wi-Fi to work once you have followed a bad tutorial

As the previous (OLD) thread has been locked I have been told by the moderators to start a new one. So please read this first:- https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=164993&p=1305471#p1305471 Basically how can I get the Wi-Fi to work again after following out of date information, w...
by Grumpy Mike
Fri Apr 20, 2018 3:44 pm
Forum: Networking and servers
Topic: how to setup RPI wireless adhoc network without internet
Replies: 15
Views: 5650

Re: how to setup RPI wireless adhoc network without internet

Thanks but sadly failed at:- [email protected]:~ $ sudo systemctl start hostapd [email protected]:~ $ sudo systemctl start dnsmasq Job for dnsmasq.service failed. See 'systemctl status dnsmasq.service' and 'journalctl -xn' for details. [email protected]:~ $ systemctl status dnsmasq.service ● dnsmasq.servi...
by Grumpy Mike
Tue Apr 17, 2018 3:38 pm
Forum: Networking and servers
Topic: how to setup RPI wireless adhoc network without internet
Replies: 15
Views: 5650

Re: how to setup RPI wireless adhoc network without internet

For a RPi3 there's an execellent article at: https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/ It might have been an excellent article in 2016 but now it just bricks the Wi-Fi. Although half way through I saw the Pi3-AP server, but now no more. Tried the edits in th...
by Grumpy Mike
Thu Mar 01, 2018 10:47 am
Forum: Troubleshooting
Topic: Trying to install L2Ork - missing packages
Replies: 1
Views: 172

Trying to install L2Ork - missing packages

I am trying to install the sound processing L2Ork on a Pi3. It is a variant on the PD ( Pure Data ) language and has specific extensions for using the Pi's GPIO port. I have followed the instructions on http://l2ork.music.vt.edu/main/make-your-own-l2ork/software/raspberry-pi/ but I am still having p...
by Grumpy Mike
Sat Feb 17, 2018 3:18 pm
Forum: Troubleshooting
Topic: wrong i2c address
Replies: 13
Views: 6965

Re: wrong i2c address

its only the differences in address of resistors.
No the registers inside the chip are at a different address and they do different things. You need to read the data sheet to see what they are.

Go to advanced search