Go to advanced search

by ats1080
Mon Jan 08, 2018 2:24 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

I'm a bit late, but pigpio is the best one I've found to date. Let me know if you find anything else that works well. Really is a shame that development has stopped on RPI.GPIO.
by ats1080
Tue May 30, 2017 1:23 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

Looks like pigpio is now part of the Raspbian image. If anyone finds this thread and has the same issues with rpi.gpio just switch over to pigpio since development on rpi.gpio is dead. Start the pigpio daemon on boot by running the command "sudo systemctl enable pigpiod.service" then use the python ...
by ats1080
Thu Feb 02, 2017 7:57 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

Yep, definitely an issue with how interrupts are handled. It's been over a year since I created this thread and even longer since I saw it first mentioned. I wouldn't get your hopes up on it getting fixed, seems like development is dead. Hopefully someone else (maybe they have by now?) forks this li...
by ats1080
Mon Aug 08, 2016 2:33 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

croston wrote:
ats1080 wrote:Just wanted to check back and see how this new class is coming along?
I've not had time to touch it recently - I'm too busy trying to earn a living.
After 7 months I guess I'll stop holding my breath for this one.
by ats1080
Tue Jul 12, 2016 4:26 pm
Forum: Beginners
Topic: Detect 3.3v from external source
Replies: 14
Views: 2277

Re: Detect 3.3v from external source

Thanks for the info. I ended up ordering some PC817 optocouplers.
by ats1080
Tue Jul 12, 2016 3:47 pm
Forum: Beginners
Topic: Detect 3.3v from external source
Replies: 14
Views: 2277

Re: Detect 3.3v from external source

So assuming I go with http://www.vishay.com/docs/83657/mct5211.pdf what does that look like in my circuit? Do I just hook up +12v to pin 1 and the output of the receiver to pin 2, then hook up the GPIO pin to pin 5 and the Pi's ground to pin 4?
by ats1080
Tue Jul 12, 2016 2:37 pm
Forum: Beginners
Topic: Detect 3.3v from external source
Replies: 14
Views: 2277

Re: Detect 3.3v from external source

I'm looking at datasheets for a couple optocouplers and they all list the input voltage as 1.5v max forward and 6v minimum reverse. What does that mean? Here are just 2 of the one's I've looked at so far http://www.vishay.com/docs/83657/mct5211.pdf http://mkpochtoi.narod.ru/pc817_ds.pdf
by ats1080
Tue Jul 12, 2016 12:42 pm
Forum: Beginners
Topic: Detect 3.3v from external source
Replies: 14
Views: 2277

Re: Detect 3.3v from external source

http://www.automationdirect.com/static/specs/pe18mmthroughbeamfb.pdf This is the receiver. I have +12v going to the + pin and ground going to the - pin. On the AMS1117 I have pin 1 going to + pin on the receiver, pin 2 was going to the Pi GPIO, and pin 3 is going to the output pin of the receiver. T...
by ats1080
Tue Jul 12, 2016 1:32 am
Forum: Beginners
Topic: Detect 3.3v from external source
Replies: 14
Views: 2277

Re: Detect 3.3v from external source

How is a voltage divider different than a voltage regulator? My question is why did it fry the pi? Frankly, I've never heard of using a voltage regulator the way you are trying to use it. Wrong part for the job. The simplest, if you are certain that your voltage will never exceed 12V, is to use a vo...
by ats1080
Mon Jul 11, 2016 6:31 pm
Forum: Beginners
Topic: Detect 3.3v from external source
Replies: 14
Views: 2277

Re: Detect 3.3v from external source

Best solution: Use an opto isolator, you can find sample circuits in the datasheet for whichever one you use. I'm aware of opto isolators and relays but I'm trying to keep the parts list to a minimum. I guess my question is more along the lines of why did the AMS1117 fry the Pi and is there any way...
by ats1080
Mon Jul 11, 2016 5:56 pm
Forum: Beginners
Topic: Detect 3.3v from external source
Replies: 14
Views: 2277

Detect 3.3v from external source

I have a photocell, basically a garage door sensor, that runs on 10v-30v that I would like to monitor with a Pi. I'm currently powering the photocells with a 12v power supply. The receiver has a transistor that is open when it receives light from the transmitter and closes when there is no light. My...
by ats1080
Tue May 03, 2016 1:02 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

My solution to the issues that have been raised will probably be to add a new pushbutton class to RPi.GPIO. This will maintain compatibility with everyone's existing code by not changing the existing lower level behaviour for event detection. The new pushbutton class will be designed to work around...
by ats1080
Fri Mar 25, 2016 1:10 pm
Forum: Automation, sensing and robotics
Topic: Multiple SPI
Replies: 28
Views: 7643

Re: Multiple SPI

So the issue in schematic that was posted is that it doesn't include the ground and 3.3v connections. I was thinking the ground and 3.3v connections he had were all that was needed, but you have to hook up exactly has he has it (pin numbers not physical layout) and attach another 3.3 and ground the ...
by ats1080
Thu Mar 24, 2016 1:16 am
Forum: Automation, sensing and robotics
Topic: Multiple SPI
Replies: 28
Views: 7643

Re: Multiple SPI

After some serious trial and error (and luck that I didn't fry the chip in the process) I got it working! I'll post an explanation tomorrow of how I have it hooked up that is hopefully a little more clear for the simple people like me :lol:
by ats1080
Thu Mar 24, 2016 12:41 am
Forum: Automation, sensing and robotics
Topic: Multiple SPI
Replies: 28
Views: 7643

Re: Multiple SPI

So this is my problem: http://i.imgur.com/P6ZuAQB.png What is A, B, C, G1, G2A, and G2b??? Hopefully I did not try this chip, because I was thinking the image here was created with physical pin numbers in mind. Instead it seems that the numbers and placement have no real bearing on anything that I c...
by ats1080
Wed Mar 23, 2016 11:50 pm
Forum: Automation, sensing and robotics
Topic: Multiple SPI
Replies: 28
Views: 7643

Re: Multiple SPI

Well I got all the parts and got my perf board soldered up. I hooked it up the the pi and ran your script and it came back with: [email protected]:~/Python $ python thermo.py Probe 0: Temperature : 0.0℃ Probe 1: Temperature : 0.0℃ Probe 2: Temperature : 0.0℃ Probe 3: Temperature : 0.0℃ Probe 4: Tempera...
by ats1080
Mon Mar 21, 2016 7:15 pm
Forum: Automation, sensing and robotics
Topic: Multiple SPI
Replies: 28
Views: 7643

Re: Multiple SPI

Thanks for all the info Daniel. I ordered the parts below, I will post back with results when I have everything. http://www.amazon.com/8-8ft-Thermocouple-Temperature-Control-Sensor/dp/B00843IKWK/ref=sr_1_13?ie=UTF8&qid=1458570181&sr=8-13&keywords=Thermocouple http://www.amazon.com/uxcell-Thread-Ther...
by ats1080
Thu Feb 11, 2016 5:17 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

croston wrote:It will have callbacks for button press, button release and button hold rather than edges.
That's exactly what I need, can't wait to see it!
by ats1080
Thu Feb 11, 2016 3:56 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

Your problem was caused by bugs in RPi.GPIO which also made you increase the debounce time too high. Generally switches do not bounce for 200ms, but people can press and release a switch within that time and often will. When the library is ignoring the falling edge because it is within the debounce...
by ats1080
Thu Feb 11, 2016 2:59 pm
Forum: Troubleshooting
Topic: Avoiding False Hits with RPi.GPIO Edge Detection
Replies: 18
Views: 19479

Re: Avoiding False Hits with RPi.GPIO Edge Detection

There is no bug in RPi.GPIO with edge detection. It only does what it is told by external circuits, the SOC and the kernel. The difference is that pigpio reads the GPIO input value (high/low) to confirm the edge type that was triggered by the kernel before running any callbacks. This would explain ...
by ats1080
Thu Feb 11, 2016 2:40 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

...if you have a switch that is so badly behaved that a software debounce alone impacts your ability to detect switch events. I tried a switch that you recommended earlier in this thread (SPDT) along with about 10 different push buttons (probably about 4 different styles) and got the same results w...
by ats1080
Tue Feb 09, 2016 5:25 pm
Forum: Troubleshooting
Topic: Avoiding False Hits with RPi.GPIO Edge Detection
Replies: 18
Views: 19479

Re: Avoiding False Hits with RPi.GPIO Edge Detection

I'm clearly still missing something then, as I'd have thought that the best way to teach someone (beginner or otherwise) how to deal with a problem would be to promote the widely accepted electronically correct way of doing it, which also happens to involve far fewer external components and no requ...
by ats1080
Tue Feb 09, 2016 5:08 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

Talk about odd timing...I just got a notification that they accepted my bug report http://sourceforge.net/p/raspberry-gpio ... ckets/121/
by ats1080
Tue Feb 09, 2016 2:26 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

Sorry it's taken so long...just now got around to testing this. I hooked up the button per your picture and it worked! (if you saw my post before I edited it I was being stupid and had my button rotated 90 degrees :x )
by ats1080
Fri Jan 22, 2016 4:57 pm
Forum: Troubleshooting
Topic: Push Button Input Troubles
Replies: 75
Views: 18932

Re: Push Button Input Troubles

My only requirement is that my program recognizes that a button has been pressed every single time without missing any button presses within reason (I can't imagine it being pressed more than twice per second) and not duplicating any button presses. Realistically there should only be 1 button press ...

Go to advanced search