Go to advanced search

by hub
Thu Jul 03, 2014 12:29 am
Forum: Python
Topic: PI Face
Replies: 5
Views: 1776

Re: PI Face

Any idea if it is possible to change the input intervals on the piface? What I mean is it checks the inputs every 500ms, do you know if it is possible to speed that up a little?

http://www.farnell.com/datasheets/1684425.pdf
by hub
Mon Jun 23, 2014 12:14 am
Forum: Python
Topic: PI Face
Replies: 5
Views: 1776

Re: PI Face

Thanks, could that happen when copying the image of the os?
by hub
Sat Jun 21, 2014 1:09 am
Forum: Python
Topic: PI Face
Replies: 5
Views: 1776

PI Face

What does 'digital_read' is not defined actually mean when found as an error when running a program in python
by hub
Wed Jun 04, 2014 12:40 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

Do you think you could help me with this delay script? I got a lot riding on it.
by hub
Fri May 16, 2014 1:49 am
Forum: Python
Topic: Python Script Help
Replies: 14
Views: 4371

Re: Python Script Help

So I changed to Pifaceio as pf but I am not following the script you listed. Do I need to change some other parts as well? Right now with that change it says line 27 pf.init() ##########<<<<<
pf is not defined

I just don't know where the changes need to be with what you have listed.
by hub
Tue May 13, 2014 12:39 pm
Forum: Python
Topic: Python Script Help
Replies: 14
Views: 4371

Re: Python Script Help

I have an error now that is something I have seen before. This error is common with the installation of the piface. If you google it, you can see where many people have this issue. I had it when I installed my piface, but somehow I over came it. Now when I run the new script you gave me, it says: li...
by hub
Mon May 12, 2014 2:01 am
Forum: Python
Topic: Python Script Help
Replies: 14
Views: 4371

Re: Python Script Help

ok, I think I am getting close but here is what I get when I try to run the module. line 25, in <module> win + curses.initscr() also line 33, in initscr fd=_sys._stfout_.fileno()) error: setupterm: could not find terminal do you now what any of these could mean? I looked and looked to make sure I ha...
by hub
Sun May 11, 2014 2:48 am
Forum: Python
Topic: Python Script Help
Replies: 14
Views: 4371

Re: Python Script Help

My apologies for not completely understanding all of that, but I am in way over my head here. Just to clarify. Yes, I have one input. Within that input I have the options of a input signal of 1, 5, 10, or 20 times. All I need to do turn the first relay on then off within seconds, then have the secon...
by hub
Thu May 08, 2014 9:53 pm
Forum: Python
Topic: Python Script Help
Replies: 14
Views: 4371

Re: Python Script Help

thanks for your help. So should I insert this in my current script that I am running if so where?
by hub
Wed May 07, 2014 8:49 pm
Forum: Python
Topic: Python Script Help
Replies: 14
Views: 4371

Re: Python Script Help

yes, I didn't think of it like that but you are correct. Taking it a step further, the amount of seconds is a variable. I am not sure that it will take 20 seconds to push the button 20 times, because its actually receiving it through one of the set of inputs. Is there a way to set this up then modif...
by hub
Mon May 05, 2014 5:46 pm
Forum: Python
Topic: Python Script Help
Replies: 14
Views: 4371

Python Script Help

Can someone help me modify he following script or create a new script for use with the pi face? https://gist.github.com/bulletmark/11126770 I need the be able to press the button or received an input one time in 1 seconds and have the relays turn on and off as in the attached script, then I need be ...
by hub
Tue Apr 29, 2014 2:58 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

you still with me? Almost done with this project, just need to figure this part out. Thanks in advance!
by hub
Sat Apr 26, 2014 11:13 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

the smart comment was, how complex can I make it?
by hub
Sat Apr 26, 2014 11:07 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

My input is automated, the only thing I can work with is the number of inputs within a certain amount of time. The delay is not a problem, if you know how to write it please point me in the right direction.. I am hoping that as I keep working with this scrip I will start understanding, but there is ...
by hub
Sat Apr 26, 2014 12:38 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

got it. thank you for all your help. I now have the inputs working the switchs/relays and understand how to change the time/delay. I was wondering this: could I modify the script be to say the following: if button is pressed 1 time within 5 seconds connect relay for 2 seconds, but if button/input is...
by hub
Sun Apr 20, 2014 1:20 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

ok, one more.... how about a script that will allow me to use one button to control both relays. For example, push the button and relay 1 turns on for .5sec then turns off. Then an adjustable amount of time passes, say 5 sec and the second relay turns on for .5 sec then turns off. I re-read the docu...
by hub
Thu Apr 17, 2014 12:16 am
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

If I have a device that uses 12 volts can I hook them to the inputs? You're going to have to educate yourself a little about the electronics. No, you can't feed 12v directly into those inputs. Normally, your external device would provide a dry contact, e.g. normally open, which you would wire pin 1...
by hub
Wed Apr 16, 2014 12:06 am
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

ok, so on the inputs if you ground the first two screws it is the same as pressing the button, right?
by hub
Wed Apr 16, 2014 12:00 am
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

that's great! how do you know all this? I got it like I want it now, other than the input pins. If I have a device that uses 12 volts can I hook them to the inputs? Also, how can I make the pi run this code everytime it boots up, so I don't have to manually do it? I know there is a file I have to ed...
by hub
Tue Apr 15, 2014 1:03 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

thanks for your help. A couple more questions: 1. What if I wanted it to cycle twice? Would I simply copy and past the code or are there only certain parts that I would copy. For example if you push the button the relay would switch on for the set time, then go off, then turn back on and then off. I...
by hub
Mon Apr 14, 2014 12:44 am
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

If you are saying that easy_install is missing then do this instead: sudo apt-get install python-pip sudo pip install pifaceio sudo /usr/local/bin/install-spidev.sh Then run http://pastebin.com/UMmxWVzF as I said. ok I think its working now. so, when I run the command listed, I will use python (a n...
by hub
Mon Apr 14, 2014 12:06 am
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Re: Pi Face

bulletmark wrote:

Code: Select all

sudo easy_install pifaceio
sudo install-spidev.sh
Then run this http://pastebin.com/UMmxWVzF

When I try this all I get is command not found. What am I missing?
by hub
Mon Apr 07, 2014 8:57 pm
Forum: Python
Topic: Pi Face
Replies: 23
Views: 4096

Pi Face

Can anyone help me with the code to do operate the switches and relays on the Pi Face? I want to push one of the buttons then it connect one of the relay for a predetermined amount of time. Ones this time has been reached it will release. Any ideas where to look for this? My Pi Face is fully operati...
by hub
Mon Sep 30, 2013 2:04 am
Forum: General discussion
Topic: Auto Shutdown
Replies: 4
Views: 1356

Auto Shutdown

Does anyone know of a way to have the pi shut itself off completely? I can handle to auto boot, I jus need it to shut down (without pulling the plug)
by hub
Tue Jul 09, 2013 1:18 pm
Forum: General programming discussion
Topic: R Pi Email IP On Boot Debian
Replies: 28
Views: 9347

Re: R Pi Email IP On Boot Debian

I typed the entire thing out. It was the copy paste that was hanging up. Apparently its not the same as when you type it.

Go to advanced search