Go to advanced search

by pi9
Fri May 24, 2019 1:26 pm
Forum: General discussion
Topic: Relay triggering GPIO
Replies: 1
Views: 129

Relay triggering GPIO

My question is related to the post below, but I felt it is better I start a new post for future reference. https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=230964&p=1461058#p1461058 Instead of a tactile switch, I would be using an HID reader with a controller called V1000 and a V100 (too much...
by pi9
Sat Apr 27, 2019 1:58 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

When I tested it two days ago, I put the capacitor between the GPIO and GND like mahjongg suggested. I added some .2 extra delays on top of the delay I already had and I stopped getting the false signals, but this is in my lab situation. In the production environment I think it may be different. The...
by pi9
Thu Apr 25, 2019 3:32 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

I tried 0.1 uF 63V, slight improvement, but still catches up some stuff. I guess I am back to the software solution.
by pi9
Tue Apr 23, 2019 5:35 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

Sorry for my ignorance, but is there anyway I can use a diode? I don't have any capacitors until I get a chance to go buy some.
by pi9
Tue Apr 23, 2019 4:36 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

I am back :( The issue still exists. In the lab test, I had the pi on my messy desk and the switch was coincidentally placed next to my coffee warmer. After I finished my coffee I turned off the coffee warmer and this is when the printer spit out a ticket.. I tried different resistor values, i tried...
by pi9
Wed Apr 17, 2019 3:38 am
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

I corrected the mistake yesterday (that's about 5 hours ago) and so far I see very few unused tickets. This could be random or may be someone pressed the button too many times. But since the site closed I don't yet see random tickets; i'll have to keep an eye on it tomorrow. I noticed it is a lot le...
by pi9
Mon Apr 15, 2019 12:00 am
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

So you are still using a pull down circuit I see my problem right there. Actually I am using neither. In my original bench wiring I had it wired like the pull up drawing and I thought it was an error IMG_3567.JPG (Sorry for the rotated image. I rotated on the computer, but it still goes in like that.
by pi9
Sun Apr 14, 2019 3:56 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

Does my wiring look right? The GPIO is connected to the ground until the button is pressed, then it connects to the +3.3V
If I wanted to measure the actual voltage, do I check between the GPIO and the +ve and -ve individually (using GPIO as my common so to speak)?
by pi9
Sun Apr 14, 2019 1:35 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

Thanks for catching this. I also had it in the class constructor, so it was already being called on software startup. Now I removed it. It seemed to lower the false clicks, but during the day it is picking up random clicks more often (5 or six times an hour instead of 2). Does the type of cable matt...
by pi9
Sat Apr 13, 2019 8:12 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

I tried that, same results. Out of desperation I even tried changing the PUD_DOWN to PUD_UP.
by pi9
Sat Apr 13, 2019 2:33 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

Thanks. I will try that. I actually have this in my python script

Code: Select all

GPIO.setup(self.GPIO_Pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) 
by pi9
Sat Apr 13, 2019 1:45 pm
Forum: General discussion
Topic: Connecting a tactile switch
Replies: 37
Views: 1470

Re: Connecting a tactile switch

Hi I am revisiting this issue. I resistors as you can see in the picture because the pi would detect the switch as pressed at random. This seems to have resolved the problem in bench testing. When I put it in a real life scenario, I was using a different type of push button switch (not a tactile swi...
by pi9
Thu Apr 11, 2019 12:07 am
Forum: Networking and servers
Topic: Can I assign the pi two ip addresses
Replies: 6
Views: 438

Re: Can I assign the pi two ip addresses

Awesome. Do they both have to be static? Can I have one static and one DHCP? I need kind of a virtual ip in case the original address is forgotten. I would use this in a commercial environment. Also I don't see any problem with having multiple PIs with the same virtual IP, of course if I need to acc...
by pi9
Wed Apr 10, 2019 1:55 am
Forum: Networking and servers
Topic: Can I assign the pi two ip addresses
Replies: 6
Views: 438

Re: Can I assign the pi two ip addresses

How?
The only way that works for me to assign a static ip is by editing the /etc/dhcpcd.conf file
I have the usual eth0 entries. Do I add similar entries for the same interface for each address that I need to assign?
by pi9
Tue Apr 09, 2019 1:40 am
Forum: Networking and servers
Topic: Can I assign the pi two ip addresses
Replies: 6
Views: 438

Can I assign the pi two ip addresses

Can I assign 2 ip addresses to eth0 just like we can do in windows?
by pi9
Fri Apr 05, 2019 1:31 am
Forum: Automation, sensing and robotics
Topic: Looking for help with DHT11 humidity and temperature sensor
Replies: 12
Views: 556

Re: Looking for help with DHT11 humidity and temperature sensor

I have a few of these sensors and other types of sensors (door contacts, motion detector, photoresistors) around the house. They are controlled by a nodemcu module (a little board like arduino). The nodemcu connects to my wifi, collects temperature at regular intervals and sends it wirelessly by cal...
by pi9
Thu Apr 04, 2019 1:45 am
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

The problem is not enough current for the relay coil. Thanks. Now I understand the problem, however I don't really understand the explanation in your link. I mean I am not sure how to wire it. Also, since I am abandoning the 3v relay (which I originally bought because I thought I could wire directl...
by pi9
Wed Apr 03, 2019 12:20 am
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

One more image
Current is a constant 0.58mA reglardless of state
IMG_3534.JPG
IMG_3534.JPG (134.13 KiB) Viewed 596 times
by pi9
Wed Apr 03, 2019 12:19 am
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

Please see the images below IMG_3536.JPG IMG_3537.JPG IMG_3532.jpg I removed the purple wire from the Vcc on the relay and put the meter alone and ran my software. The voltage goes from 0 to close to 3v as the software triggers it. It looks to me like the voltage level is not enough or something.
by pi9
Mon Apr 01, 2019 12:41 pm
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

Yes. I tested it like you said and it worked. Will post pictures later when I get home.
by pi9
Mon Apr 01, 2019 12:27 am
Forum: Python
Topic: Hiding/Closing an image file
Replies: 0
Views: 72

Hiding/Closing an image file

Hi 1. From the code below, the image file opens and then I can't close it again. How can I close it so it releases everything related to the image from memory? 2. I am using Stani's Python Editor SPE. On the Pi 2 and 3B I didn't have any problems with the search. On the latest OS I downloaded and in...
by pi9
Sun Mar 31, 2019 7:23 pm
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

I replaced the tablet power adapter that I was using (rated for 2.1A) with an adapter that I had bought with the pi (rated 2.5A) and that took care of the red LED issue, so good news here :) I tested the opto isolator with the multimeter, that worked too. When I wired it to the relay, it didn't work...
by pi9
Sun Mar 31, 2019 5:28 pm
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

I did some more trials directly with the relay since I can't figure out why the opto isolator doesn't work. With an external power supply I am able to consistently turn the relay on and off with no issue to the pi. No flickering LEDs on the PI or the relay. The red LED on the Pi doesn't go off (I am...
by pi9
Sun Mar 31, 2019 1:15 am
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

I got the components. I chose the 4N26 244F (whatever that 244F is) because it specifically mentioned 4N26 on it. The 4N25 had some other numbers. I got 470R (1W) I don't think the wattage should make a difference since I am on low voltage. Long story short, it doesn't work. I verified that when I t...
by pi9
Sat Mar 30, 2019 1:08 pm
Forum: Automation, sensing and robotics
Topic: Wiring relay to Pi
Replies: 27
Views: 1139

Re: Wiring relay to Pi

The transistor in the opto is powered from the power supply and it is grounded via the relay board back to the power supply. What I am struggling to understand is where the transistor negative is. I can see the optical diode has a + and -, the transistor only has +3v. In my mind the other side of t...

Go to advanced search