Go to advanced search

by rebootnet
Mon Nov 23, 2015 7:51 am
Forum: Python
Topic: Reading Wiegand w/ Pigpio
Replies: 3
Views: 3728

Re: Reading Wiegand w/ Pigpio

Go to http://abyz.co.uk/rpi/pigpio/examples.html#Python_wiegand_py and open the zip. Save wiegand.py as wiegand,py. Change the permission with chmod +x wiegand.py and run the module with ./wiegand.py. You need to edit the file to change 14/15 to the Broadcom numbers of the GPIO you are using for th...
by rebootnet
Mon Nov 23, 2015 7:34 am
Forum: Python
Topic: Reading Wiegand w/ Pigpio
Replies: 3
Views: 3728

Reading Wiegand w/ Pigpio

Hi, I'm trying to read wiegand input with the pigpio library and trying to test with the wiegand.py sample supplied from abyz.co.uk I'm having a problem importing "wiegand" I don't have such a library and can't seem to find it anywhere. Please see example code below: """ A class to read Wiegand code...
by rebootnet
Thu Nov 19, 2015 7:44 am
Forum: Python
Topic: Vehicle Counting with IR Sensor
Replies: 8
Views: 3020

Re: Vehicle Counting with IR Sensor

Hi bulletmark,

Tested. Works perfectly!

Thank you so much for your help!
by rebootnet
Wed Nov 18, 2015 5:19 pm
Forum: Python
Topic: Vehicle Counting with IR Sensor
Replies: 8
Views: 3020

Re: Vehicle Counting with IR Sensor

OK, I have put a modified version of your code at http://pastebin.com/GeZCmcN2. Comments and changes are: You were mixing up the classes and static function pifacedigitalio interfaces. See https://piface.github.io/pifacedigitalio/example.html. So you don't want that pfd = pio.PiFaceDigital() line a...
by rebootnet
Wed Nov 18, 2015 8:21 am
Forum: Python
Topic: Vehicle Counting with IR Sensor
Replies: 8
Views: 3020

Re: Vehicle Counting with IR Sensor

@rebootnet, I'll help you but please fix up the indentation in your posted code first so I know exactly what you are trying to do. Hi, thanks. Not sure why the indentation is doing that when pasting here. #!/usr/bin/env python import pifacedigitalio as pio import time pfd = pio.PiFaceDigital() pio....
by rebootnet
Tue Nov 17, 2015 1:51 pm
Forum: Python
Topic: Vehicle Counting with IR Sensor
Replies: 8
Views: 3020

Re: Vehicle Counting with IR Sensor

Not sure how the PIR reacts to vehicles in real world but I would guess the vehicle stops on the weigthbridge for some minimum time and the PIR shows 'detected' for that period - the passing people only trigger the PIR for a shorter time? So you would do something like: ... # wait until something d...
by rebootnet
Tue Nov 17, 2015 9:04 am
Forum: Python
Topic: Vehicle Counting with IR Sensor
Replies: 8
Views: 3020

Vehicle Counting with IR Sensor

Hi, I have an IR sensor connected to a Raspberry Pi 2 Model B with the PiFace board. I am trying to count the number of vehicles passing (specifically trucks) but it should only count one vehicle after 10 seconds for example (vehicle on weighbridge) so as to not count people who may be walking by. A...

Go to advanced search