Go to advanced search

by kiloleader
Wed Feb 11, 2015 11:55 am
Forum: Beginners
Topic: PIGPIO raspbian 31-01-2015
Replies: 4
Views: 6299

Re: PIGPIO raspbian 31-01-2015

Update: I have tried: pigs t pigs pigpv pigs hwver in the terminal, all return socket connection failed. Also, cat /dev/pigerr& returns: [1] 18077 I then tried: sudo killall -USR2 pigpiod sudo killall -USR2 pigpiod sudo killall -USR2 pigpiod sudo killall -USR2 pigpiod sudo killall -USR2 pigpiod sudo...
by kiloleader
Wed Feb 11, 2015 11:40 am
Forum: Beginners
Topic: PIGPIO raspbian 31-01-2015
Replies: 4
Views: 6299

PIGPIO raspbian 31-01-2015

Hi all, Does anyone know if PIGPIO runs on the latest raspian. I am using a model B+ (not a 2) and have had pigpio running quite happily. I have now upgraded to the 31-01-2015 release of Raspian and I get the following error when trying to run my program: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
by kiloleader
Tue Nov 25, 2014 4:51 pm
Forum: Python
Topic: Setting up your own keyboard interrupts
Replies: 1
Views: 556

Setting up your own keyboard interrupts

Hi all, I have a script (to run at start-up) that listens for incoming IR pulses or button interrupts. Part of the code uses the Ctrl C keyboard interrupt to interrupt the listening and allow me to type messages into the program. I have tested this in idle with no problems, but when I make it run at...
by kiloleader
Mon Nov 03, 2014 4:58 pm
Forum: Beginners
Topic: C code to read GPIO input
Replies: 7
Views: 7355

Re: C code to read GPIO input

Many thanks for you help. Understanding how an IR hash is generated has helped no end!
by kiloleader
Mon Nov 03, 2014 4:34 pm
Forum: Beginners
Topic: C code to read GPIO input
Replies: 7
Views: 7355

Re: C code to read GPIO input

The hasher just creates a number from the length of the individual pulses which make up the IR code (by comparing the last and current pulse lengths). The hash itself uses a standard published algorithm. Generating a hash is much simpler then trying to decode the myriad of different remote control ...
by kiloleader
Mon Nov 03, 2014 2:43 pm
Forum: Beginners
Topic: C code to read GPIO input
Replies: 7
Views: 7355

Re: C code to read GPIO input

You can use pigpio to get IR signals. It certainly works with some of my remotes. Try the Python IR receiver at http://abyz.co.uk/rpi/pigpio/examples.html#Python_code Hi Joan, I can detect 'hash' values using your IR_haser.py. Unfortunately, I am sending and receiving 8 bit serial ASCI characters, ...
by kiloleader
Mon Nov 03, 2014 2:14 pm
Forum: General discussion
Topic: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve it
Replies: 57
Views: 15238

Re: Pi B+ won't shutdown? Tying pin 28 to GND seems to solve

Hi,

I have a similar thing on pin 21 (BCM). I am connecting the GPIO pins to IR sensors (powered by Pi) which seems to cause a reboot on shutdown. In addition, if I try to set up an GPIO.add_event_detect on pin 21 it fails with 'RunTimeError : Failed to add edge detection'.

Any ideas?
by kiloleader
Mon Nov 03, 2014 11:07 am
Forum: Beginners
Topic: C code to read GPIO input
Replies: 7
Views: 7355

C code to read GPIO input

Hi all, Does anyone have any c code (or super speedy Python?) to read the pulse length of a GPIO input. I am trying to read demodulated IR pulses, in the order of 1ms - 5ms. The input signal appears as active low and typically goes: 5ms low 'start' bit 1ms high space 8 x data bits (either low 1.5ms ...
by kiloleader
Wed Oct 22, 2014 2:45 pm
Forum: Beginners
Topic: Calling C programs from python script
Replies: 1
Views: 953

Calling C programs from python script

Hi All, I have been trying to get a Python program to, at a definable point in the code, call a separate C program, run the C program and then continue back in Python. I am trying to communicate over GPIB using the Pi. I have got one way communication (with the Pi talking), but due to the high-level...
by kiloleader
Tue Oct 14, 2014 9:56 am
Forum: Beginners
Topic: Inconsistant pulse widths
Replies: 1
Views: 292

Inconsistant pulse widths

Hi all, I am trying to use a Pi to control GPIB instruments. I have an Arduino mega 2560 acting as a serial to gpib converter taking care of the gpib side of things; no problems there. I want to communicate with the Arduino via infrared LED's and receivers (I have a hardware solution to the 38KHz ca...

Go to advanced search