Go to advanced search

by maniattico
Sun Oct 25, 2020 7:00 pm
Forum: Python
Topic: Detect when I remove the NFC tag
Replies: 1
Views: 202

Detect when I remove the NFC tag

Hi. I am using the MFRC522 library with an RFID-RC522 sensor, and to detect when a tag is passed I have no problem, but I would like to be able to launch a command when the RFID tag is removed. For example: when I pass the label and leave it on the sensor, launch a music player (only once), and when...
by maniattico
Sun Oct 11, 2020 3:35 pm
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

Update2: :twisted: I have changed the PIR sensor for an LDR sensor with the sensitivity to the minimum and with the LDR covered ... and the behavior is the same !!! That is, the problem does not seem to be with the PIR, but with the GPIO. The fact is that I have always tried on 17, and I also tried ...
by maniattico
Sun Oct 11, 2020 8:08 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

I update the status. I have had the sensor connected but covered for 48 hours, and very occasionally I would pass my hand, and detect the movement. All good up to there. Then I passed my hand 3 or 4 times in a minute, and it again started to test positive exactly every 5 minutes (in the same second ...
by maniattico
Wed Oct 07, 2020 6:50 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

Hi. I'll try it, but if it were BT/Wifi interference it would always be, or almost always, and it's not. For example, I ran a debug script in 20201005,12:00:00 and it's been perfectly working for a day and a half and suddenly, a lot of false positives, and after hours, again correct. See the log: 20...
by maniattico
Mon Oct 05, 2020 8:47 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

pcmanbob wrote:
Mon Oct 05, 2020 8:09 am
So what voltage are you powering the PIR with ?

If the PIR's were working correctly and they have only recently been giving you problems then the PIR's themselves my have gone faulty.
I connect it to 5v.
by maniattico
Mon Oct 05, 2020 7:25 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

It happened again (this time with pull_up_down = GPIO.PUD_DOWN): it worked perfectly for about 14 hours, and then it detected motion a couple of times in an hour, and every few minutes from then on.

It's quite frustrating.
by maniattico
Sun Oct 04, 2020 10:40 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

neilgl wrote:
Sun Oct 04, 2020 10:28 am
Is it an HC-SR501 ?
Yes!
by maniattico
Sun Oct 04, 2020 9:47 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

It has two regulators for sensitivity (distance) and time and I have been changing them without changes.

Thanks
by maniattico
Sun Oct 04, 2020 8:40 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

So your first problem is that when you have nothing connected to the gpio pin the pin will be floating , so you will have random highs and lows cause by general electrical charge on the pi and surrounding items or even static in the air. So try changing your gpio set-up line to this. GPIO.setup(pir...
by maniattico
Sat Oct 03, 2020 9:22 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Re: Erratic behavior in PIR sensor

Can you post your script using Code tags so we can look at it? Sure. it is very simple because it is only to check why it does not work correctly #!/usr/bin/python # -*- coding: utf-8 -*- import RPi.GPIO as GPIO import time pirpin = 23 GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(pirpi...
by maniattico
Sat Oct 03, 2020 8:23 am
Forum: Troubleshooting
Topic: Erratic behavior in PIR sensor or GPIO
Replies: 16
Views: 538

Erratic behavior in PIR sensor or GPIO

Hi. I have a problem with a PIR sensor on an RPi3 and it is a bit difficult to explain. A while ago it worked perfectly. The sensor detects false positives in exact cycles. In a PIR it went HIGH for 3 seconds every exactly 5 minutes. I have changed the sensor for another, and now it changes state ap...
by maniattico
Mon Jun 10, 2019 9:19 am
Forum: Graphics, sound and multimedia
Topic: Low performance in RTMP streaming
Replies: 0
Views: 260

Low performance in RTMP streaming

Hi. I want to view a realtime webcam via RTMP (VLC for example) connected to a RaspberryPI Zero W. I've setup a nginx with RTMP module in the same RaspberryPI Zero W and on a RaspberryPi3+, and can't streaming de video. I use: ffmpeg -i /dev/video0 -vf scale=480:320 -framerate 2 -vcodec libx264 -pro...
by maniattico
Wed Nov 21, 2018 12:04 pm
Forum: Advanced users
Topic: Passing text commands to Google Assistant SDK
Replies: 2
Views: 1465

Re: Passing text commands to Google Assistant SDK

I found assistant.send_text_query function, however If I put more than one line, only the last are executed.
by maniattico
Wed Nov 21, 2018 11:18 am
Forum: Advanced users
Topic: Passing text commands to Google Assistant SDK
Replies: 2
Views: 1465

Passing text commands to Google Assistant SDK

Hi! I've installed Google Assistant SDK in my RaspberryPI, and it works fine. Now I want to do something like Google Action, but in my own script. I'll explain this: I've some custom commands like this: if event.args['text'] == "turn on hall light": assistant.stop_conversation() os.system(...
by maniattico
Wed Nov 21, 2018 11:03 am
Forum: Advanced users
Topic: WIRELESS ACCESS POINT + NETWORK WIFI POSSIBLE?
Replies: 10
Views: 1885

Re: WIRELESS ACCESS POINT + NETWORK WIFI POSSIBLE?

I did that some time ago with an USB wireless card and FruityWifi (http://fruitywifi.com)
by maniattico
Sat Nov 17, 2018 3:13 pm
Forum: General discussion
Topic: Google Assistant custom hotword with Snowboy
Replies: 2
Views: 1064

Re: Google Assistant custom hotword with Snowboy

That is interesting, but what I'm looking for is a way to activate conversation saying, for instance, "Hi John"

Thankd.
by maniattico
Sat Nov 17, 2018 1:59 pm
Forum: General discussion
Topic: [SOLVED] Alarm volume in Google Assistant SDK too low
Replies: 2
Views: 465

Re: Alarm volume in Google Assistant SDK too low

I found a solution: the ON_ALERT_STARTED method: if event.type == EventType.ON_ALERT_STARTED: assistant.stop_conversation() os.system('omxplayer -o local /path/alarm.mp3 & ') Explication: when an alarm is triggered, with stop_coversation we quit assistant from conversation Run any command (in th...
by maniattico
Sat Nov 17, 2018 9:47 am
Forum: General discussion
Topic: Google Assistant custom hotword with Snowboy
Replies: 2
Views: 1064

Google Assistant custom hotword with Snowboy

Hi! I've the latest version of Google Assistant running, and I want to change the hotword ('OK Google') for another one with Snowboy. I've achieved phrase recognition with Snowboy, however I don't know how to activate Assistant when Snowboy detect hotword. All the documentation that I've found is fo...
by maniattico
Tue Nov 13, 2018 2:28 pm
Forum: Troubleshooting
Topic: [SOLVED] IR emitter with low power
Replies: 3
Views: 300

Re: IR emitter with low power

It works like a charm now!

Thank you drgeoff!
by maniattico
Tue Nov 13, 2018 12:50 pm
Forum: Automation, sensing and robotics
Topic: Control Sonoff wall swith
Replies: 3
Views: 3722

Re: Control Sonoff wall swith

I've found Espurna custom firmware:

https://github.com/xoseperez/espurna

If I finally buy that switch, I'll try it.

Regards
by maniattico
Wed Nov 07, 2018 1:31 pm
Forum: Troubleshooting
Topic: [SOLVED] IR emitter with low power
Replies: 3
Views: 300

Re: IR emitter with low power

drgeoff wrote:
Wed Nov 07, 2018 11:16 am
Make these changes.
1. Change the 10k resistor to 2k2
2. Change the 200 resistor to 100
3. Change power to IR LED from 3.3 volt to 5 volt
Thanks! I'm going to test it this weekend.

Regards.
by maniattico
Wed Nov 07, 2018 10:40 am
Forum: Automation, sensing and robotics
Topic: Control Sonoff wall swith
Replies: 3
Views: 3722

Control Sonoff wall swith

Hi! I found this: https://www.amazon.com/Sonoff-T1-US-Standard-Switch/dp/B07CN5KTLR/ref=sr_1_7?ie=UTF8&qid=1541586607&sr=8-7&keywords=sonoff Do you know if there is any way to control it via wifi with a Raspberry (python, bash...) or Home Assistant? I know that Sonoff Basic has custom fi...
by maniattico
Wed Nov 07, 2018 10:30 am
Forum: Troubleshooting
Topic: [SOLVED] IR emitter with low power
Replies: 3
Views: 300

[SOLVED] IR emitter with low power

Hi! I've used a RPi Zero W to control a heater by infrared. I followed those schemas: http://www.raspberry-pi-geek.com/Archive/2015/10/Raspberry-Pi-IR-remote https://www.hackster.io/austin-stanton/creating-a-raspberry-pi-universal-remote-with-lirc-2fd581 In both cases, the heater only power on when ...
by maniattico
Sun Sep 30, 2018 9:44 am
Forum: General discussion
Topic: [SOLVED] Alarm volume in Google Assistant SDK too low
Replies: 2
Views: 465

[SOLVED] Alarm volume in Google Assistant SDK too low

Hi. I've Google Assistant for Device SDK in my RaspberryPI. My issue is with countdown or alarm sound: it is too low (all other sounds and phrases works fine). I found that in Google Home app I can change that, however my device doen't apperars. Are there any way to increase that volume or change th...
by maniattico
Sun Sep 30, 2018 9:38 am
Forum: Troubleshooting
Topic: Can't play wav file from analog connector when HDMI cable is pluged
Replies: 5
Views: 863

Re: Can't play wav file from analog connector when HDMI cable is pluged

Thank you very much LTolledo.

I've solved it, but I don't now how. The only change that I did was play an mp3 with omxplayer before any voice command.

Regards

Go to advanced search