Go to advanced search

by yonubear
Fri Jan 03, 2014 12:03 am
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

well I just got done some testing with an LED ground hooked up to the optocouplers and I am thinking I actually may have a bad batch no matter how I connect the LED I can't get it to light when I power the couplers anyone happen to have a pinout for a PC123 optocoupler just wondering if they sent me...
by yonubear
Thu Jan 02, 2014 7:47 pm
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

Something along the lines of this diagram
BB.jpg
BB.jpg (39.3 KiB) Viewed 2856 times
by yonubear
Thu Jan 02, 2014 7:39 pm
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

question

since they will all pull off the same 3.3v rail anyway can I simply pull the pull up current for each pin from the gpio side of my 1wire or is that a stupid idea?
by yonubear
Thu Jan 02, 2014 4:03 pm
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

Ok I take it using the internal pull-up resisters just doesn't cut it
by yonubear
Thu Jan 02, 2014 2:37 am
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

ok I got it to behave at least to stop multi triggering the problem I have now is this I can't get the optocouplers to trigger as you can see from the diagram i posted I am pulling the current from the 3.3v to the switches and passing it through a 220ohm resister IC before it hits the optocouplers n...
by yonubear
Thu Jan 02, 2014 2:07 am
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

ok all sorry to ask again I have narrowed it down that it isn't code related and I have put together a new board accept this time I used single pins instead of a ribbon cable so I could narrow it down I rebuild with optocouplers as suggested however I get the same effect as soon as I connect any Gpi...
by yonubear
Tue Dec 31, 2013 4:42 am
Forum: General discussion
Topic: 4x3 keypad?
Replies: 2
Views: 469

Re: 4x3 keypad?

ok thanks wasn't sure if inturrputs would work with a matrix keypad due to the way they are connected.

thanks,
yonu
by yonubear
Tue Dec 31, 2013 4:23 am
Forum: General discussion
Topic: 4x3 keypad?
Replies: 2
Views: 469

4x3 keypad?

ok I know that keypads have been brought up before but I have a question is it possible to have them act as an interrupt when say the * key is pressed as I want to have the system monitoring several sensors so I hate to have a loop running to wait on a keypress.

thanks,
yonu
by yonubear
Mon Dec 30, 2013 3:07 am
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

ok now just so I know how this was meant is this due to the facet that it is a pointless endeavor on the Pi or is it because of damaging the Pi

yonu
by yonubear
Mon Dec 30, 2013 12:48 am
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

well I got smart I installed webiopi so I could see what the pins were doing in realtime easier and apparently I have an issue in the PCB I made for all my connection as the pins are going nuts until I disconnect the board then they quit guess I am gonna start from scratch.

Thanks,
Yonu
by yonubear
Mon Dec 30, 2013 12:29 am
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

yes each pin sorry was typing from my cell phone I am currently in the process of wiring in the optocouplers

Thanks,
Yonu
by yonubear
Sun Dec 29, 2013 8:30 pm
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

Ok I plan to wire in optocouplers however I just finished rechecking my wiring and I am getting a 1400ohm reading between each pi I assume I should have used an external pull up resistor. Or is this something the optocoupler will solve on its own?
by yonubear
Sun Dec 29, 2013 6:06 pm
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

thanks I will look at using optocouplers hadden't really thought about that part yet since I am only using about 3 feet of wire at the moment for testing I am gonna recheck the PCB in a few to make sure I didn't merge any traces just for good measure.

Thanks,
Yonu
by yonubear
Sun Dec 29, 2013 3:59 pm
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

ok thank I have used the tutorial and here is my code as that is easier than having to post sections as to hardware there are currently 2 magnetic door switches all connected using 1 cat3 cable and a 12c temp sensor the Pir sensor that is noted hasn't arrived yet import RPIO import threading import ...
by yonubear
Sun Dec 29, 2013 4:42 am
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

Re: multiple GPIO triggering issue

I am using gpio interrupts rather than a loop. as to elements are you refering to hardware or software?

thanks,
yonu
by yonubear
Sat Dec 28, 2013 9:46 pm
Forum: Automation, sensing and robotics
Topic: multiple GPIO triggering issue
Replies: 26
Views: 3819

multiple GPIO triggering issue

I am having a slight issue and I am hoping someone has an idea as I am lost Iif I only connect one switch it seems to work fine however if I have multiple switches hooked up on say pins 17, 23 and 24 if i short pin 23 to GND the others trigger as well. As best I can tell the only connection between ...
by yonubear
Wed Dec 11, 2013 3:07 am
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

thanks I didn't even notice that must have done it when I was taking out comments from where I was sorting through issues that fixed it.

Thanks,
Yonu
by yonubear
Wed Dec 11, 2013 2:11 am
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

hey would it be possible to get a second set of eyes on this code I had everything working or atleast I thought I did but now that I have all the hardware assembled I notice it rus twice on the timer then stops and sets there but doesn't exit the script.I am hopeing that I am just overlooking someth...
by yonubear
Thu Dec 05, 2013 3:11 pm
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

question about the threading timers if I want a 5min gap between runs should I split the difference between the 2 timers or just pick one and set it at 5min? I have everything working how I want it now I just have to get the timing how I want it.

Thanks,
Yonu
by yonubear
Wed Dec 04, 2013 8:01 pm
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

Ok that works great now to ask I want to do another thread and I better off calling the function at the end of the first one or is it more complicated than that.

Thanks,
Yonu
by yonubear
Wed Dec 04, 2013 2:02 pm
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

thank I was thinking that but wasn't sure.

Thanks,
Yonu
by yonubear
Wed Dec 04, 2013 4:00 am
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

ok sorry I think I am losing it do i put what i want to happen on the timer in the function where it says wait or down where it says main code?

sorry,
yonu
by yonubear
Wed Dec 04, 2013 3:07 am
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

thanks that makes slightly more sense than what I had found will give it a go

Thanks,
Yonu
by yonubear
Wed Dec 04, 2013 1:19 am
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

thanks for the info all I have been reading up on the timer however I have a dumb question I assume it need to be in a while loop to run every 30sec, 1min, etc. and if I place it in a while will that while look take up the majority of cpu time or will it only function when the timer is active. Sorry...
by yonubear
Sun Dec 01, 2013 7:10 pm
Forum: Python
Topic: run a function every x min
Replies: 21
Views: 6839

Re: run a function every x min

thanks but I actually meant a function inside the script not the actual script

yonu

Go to advanced search