Go to advanced search

by bandann
Fri Mar 06, 2015 11:31 am
Forum: Python
Topic: Opencv people counter
Replies: 4
Views: 5669

Re: Opencv people counter

Thank you for your answer.

I wish to use a more accurate solution and even a small camera on the ceiling is a nicer solution too.
by bandann
Wed Mar 04, 2015 7:19 am
Forum: Python
Topic: Opencv people counter
Replies: 4
Views: 5669

Re: Opencv people counter

Any idea?
by bandann
Sun Mar 01, 2015 12:23 pm
Forum: Python
Topic: Opencv people counter
Replies: 4
Views: 5669

Opencv people counter

Hello.


I have to count the incoming people for a shop, i need to know how many people go through the entrance.
I'm trying to do that with opencv and python, but i can't find any good tutorial for that.


Any help would be highly appreciated
by bandann
Mon Feb 16, 2015 9:02 am
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Bash script also works well.

Code: Select all

sudo echo 27 > /sys/class/gpio/export
sudo echo out > /sys/class/gpio/gpio27/direction 
sudo echo 1 > /sys/class/gpio/gpio27/value
by bandann
Mon Feb 16, 2015 7:42 am
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

ok, thank you for your test. Now i uninstalled 0.5.10 and updated to the latest dev version and tried again. It still doesn't work. I add the revision detection, it seems correct for a RPi 2B for me. Is it ok? GPIO.VERSION: 0.5.11 GPIO.RPI_REVISION: 3 GPIO.RPI_INFO: {'P1_REVISION': 3, 'RAM': '1024M'...
by bandann
Sun Feb 15, 2015 2:07 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

ok, thank you for your help and for the test softwares.
:)

I will share my experience when a new version comes out.
by bandann
Sun Feb 15, 2015 1:49 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

i tried, it doesn't work either.
by bandann
Sun Feb 15, 2015 1:35 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

I run the script always with BCM 27 pin13 if the piezo is wired to GPIO27 pin13 the result of the test is: Testing... Pull up on gpio 27 failed. Skipped non-user gpios: 0 1 28 29 30 31 Tested user gpios: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Failed user gpios: 27 When...
by bandann
Sun Feb 15, 2015 1:09 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Yes, It works well.
by bandann
Sun Feb 15, 2015 1:04 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

"I assume you are running it with sudo idle."

No, i just use console, i run python after a sudo su

Code: Select all

sudo su
 python program.py
by bandann
Sun Feb 15, 2015 12:57 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

I made the test with this, i use BCM 27 for testing:

Code: Select all

#!/usr/bin/env python
import RPi.GPIO as GPIO
import time
print (GPIO.VERSION)
GPIO.setmode(GPIO.BCM)

GPIO.setup(27, GPIO.OUT)


GPIO.output(27,True)
time.sleep(20) 
GPIO.output(27,False)
by bandann
Sun Feb 15, 2015 12:47 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

I use gpio27 (pin13)

pigpio daemon is running.

Code: Select all

pigs w 27 1

ok, the buzzer works :)

I can turn it off with

Code: Select all

pigs w 27 0
and i can read the value (0 = low, 1 = high) with

Code: Select all

pigs r 27

It don't work from Python, maybe Python is my problem somehow?
by bandann
Sun Feb 15, 2015 12:25 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

I used your solutions. Wow, they are awesome, thanks for share them! I made some tests with nothing connected to the gpios and seems like gpio output still don't work for some reason. Test bash script: Testing... Skipped non-user gpios: 0 1 28 29 30 31 Tested user gpios: 2 3 4 5 6 7 8 9 10 11 12 13 ...
by bandann
Sun Feb 15, 2015 11:52 am
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Yes, it operate from the 5v rail, and even from the 3.3V rail too like on a GPIO PIN.

On the 3.3V rail (PIN 1), the amperage is as low as 1,7mA. This is not the loudest at 3.3V, but absolutely ok for me.
by bandann
Sun Feb 15, 2015 11:35 am
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Hello Joan, yes, i can supply that from the GPIO, i used exactly the same piezo on B+. This is the piezo: http://www.conrad-electronic.co.uk/ce/en/product/710712/KEPO-KPI-G2210L-6252-piezo-transducer-42-05-kHz-22-mm datasheet: http://www.produktinfo.conrad.com/datenblaetter/700000-724999/710712-da-0...
by bandann
Sun Feb 15, 2015 10:31 am
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Thanks for the replies! I tried with the latest development version with no luck. Currently i use the Rasbian version0.5.10 (followed Ben's instructions), and nothing changed. I tried with python3 also with no luck. I can't set the pins to high state, it remains low, 0 volt. RPi.GPIO version: find /...
by bandann
Sat Feb 14, 2015 9:15 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Hello Gordon,

Tried, but there is no new package for me.

After update:

apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


GPIO.VERSION still report 0.5.10a
by bandann
Sat Feb 14, 2015 8:22 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Hello Daniel.

Thank you for your reply.
Yes, i try it on a RPi 2.

I tried the same link to try it also with 0.5.10. Got the same result, i can't set it to high state.
by bandann
Sat Feb 14, 2015 5:47 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

Re: RPi.GPIO

Thank you for the answers.


I wire a piezoelectric buzzer to PIN 13 and 14. This buzzer worked on a B+.
In addition, i measured with multimeter, it's got 0 volt.

I think i can set high with 1, GPIO.HIGH or True like Croston wrote:
http://sourceforge.net/p/raspberry-gpio ... asicUsage/
by bandann
Sat Feb 14, 2015 12:17 pm
Forum: Python
Topic: RPi.GPIO
Replies: 35
Views: 4883

RPi.GPIO

Hello! I can't set the state of the rpi.GPIO output. I updated the version to 0.5.11a already, but i can't set the output to high. If someone know the solution please tell me. This is my test code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(13, GPIO.OUT) GPIO.output(13, ...
by bandann
Tue Jun 03, 2014 6:33 am
Forum: Python
Topic: USB devices
Replies: 1
Views: 786

USB devices

Hello, i got some USB devices, barcode scanner and keyboard. They work individually, but not both together, i can't read a character from the keyboard, if the barcode is plugged in. How can i select the usb keyboard device for the character inputs? This is my code: fd = sys.stdin.fileno() old = term...
by bandann
Fri May 09, 2014 5:34 pm
Forum: Python
Topic: RC522 on CE1
Replies: 5
Views: 2689

Re: RC522 on CE1

Anyone knows how to to that?
by bandann
Thu May 08, 2014 3:07 pm
Forum: Python
Topic: RC522 on CE1
Replies: 5
Views: 2689

Re: RC522 on CE1

Hello Doug, thank you for your answer. My wiring is the same. I wish to use one rc522 and one piTFT ( https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi ) also, both on the SPI bus, so my plan is the following: The piTFT LCD panel remains on CE0, and i don't...
by bandann
Thu May 08, 2014 10:45 am
Forum: Python
Topic: RC522 on CE1
Replies: 5
Views: 2689

RC522 on CE1

Hi guys!


Who knows, witch is the simplest way to get working the rc522 on the second SPI line, on CE1?



Thank's a lot

Go to advanced search