Go to advanced search

by kghunt
Sat Aug 17, 2013 8:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Do I need to regulate a 12v source?
Replies: 3
Views: 986

Do I need to regulate a 12v source?

I am gathering components to solder up a test board. I will be using a 12v supply stepped down to 5 to power the pi and the board but I will also be breaking out a 12v rail to power other stuff (not directly connected to the pi) Should this 12v source be regulated? It will be coming from either a wa...
by kghunt
Sat Aug 17, 2013 8:38 pm
Forum: Beginners
Topic: Running bash script as a service?
Replies: 12
Views: 1985

Re: Running bash script as a service?

Ahh that was me too :-) I use upstart all the time.
by kghunt
Sat Aug 17, 2013 8:12 pm
Forum: Beginners
Topic: Running bash script as a service?
Replies: 12
Views: 1985

Re: Running bash script as a service?

A more stable way is to install upstart and create an upstart service (easier than it sounds).
by kghunt
Wed Aug 14, 2013 9:21 pm
Forum: Advanced users
Topic: GSM modem for sending SMS text ?
Replies: 10
Views: 29858

Re: GSM modem for sending SMS text ?

My huewai e156g worked out of the box and is reliable. Texts can be delayed but in my experience where I was the sender and the receiver the biggest delay I came across was a couple of minutes. Your experience across the other side of the pond may differ though on account of the sheer size of the mo...
by kghunt
Mon Aug 12, 2013 1:02 pm
Forum: General programming discussion
Topic: Multiple actions triggered from edge detection
Replies: 6
Views: 2607

Re: Multiple actions triggered from edge detection

There are a thousand ways to skin a cat but if I was doing this I would have loop thread check a global variable eg buttonstate = 0 when it goes to 1 play the sound. Then have the edge detect set that same variable to the correct value while falling and then climbing again. Then I could have as many...
by kghunt
Mon Aug 12, 2013 12:47 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Using the door sensor? If that's the case then you may be using the wrong pi pin.
by kghunt
Mon Aug 12, 2013 12:46 pm
Forum: General discussion
Topic: Paper-Duino-Pi
Replies: 33
Views: 12130

Re: Paper-Duino-Pi

I would prefer the piduino to have a switching regulator on it so that I can power it and the pi from a 6 to 19v source.
by kghunt
Mon Aug 12, 2013 7:59 am
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

10k is 10 kilo ohms so 10000 ohms it's much higher. That maybe too high to light the led but give it a try.
by kghunt
Sun Aug 11, 2013 7:31 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Touch the gpio you are using to ground. Or use any resistor as long as its of higher value it will just bit lit more dimly (grammar I know!)
by kghunt
Sun Aug 11, 2013 11:57 am
Forum: Off topic discussion
Topic: Arduino upload by http?
Replies: 1
Views: 613

Arduino upload by http?

Has this been done? I use my pi headless and it would be nice to be able to upload sketches to an arduino connected to my pi. My plan is to have a python script on the pi check a web service for sketches and if there is a new one download it and upload it to the arduino. The web service could be on ...
by kghunt
Sun Aug 11, 2013 11:33 am
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

5v to 330 ohm resistor then to one screw then the other screw to ground. As you bring the unwired half into proximity the led state will change.
by kghunt
Sun Aug 11, 2013 7:47 am
Forum: Automation, sensing and robotics
Topic: Easy & Cheap DIY Arduino add-on for the Raspberry Pi
Replies: 6
Views: 3230

Re: Easy & Cheap DIY Arduino add-on for the Raspberry Pi

Offset headers I thought that is what needle nose pliers were for? :D
by kghunt
Sat Aug 10, 2013 9:27 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Test with an LED take the pi out of the equation.
by kghunt
Sat Aug 10, 2013 6:15 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

No its a physical switch. Both wires go in one side And the magnet in the other peice throws the switch when in proximity. If not a pictures a wiring diagram.
by kghunt
Sat Aug 10, 2013 6:22 am
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

A simple test for the reed switch is to run an led through it.
by kghunt
Sat Aug 10, 2013 5:13 am
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Post a picture of your wiring
by kghunt
Fri Aug 09, 2013 3:52 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

try this #!/usr/bin/env python try: #import the Rpi.GPIO module catching runtime error if not run as root import RPi.GPIO as GPIO except RuntimeError: print "You need to be root Dumbass" import time #import time module GPIO.setup(12, GPIO.IN, initial=GPIO.HIGH) # set pin 12 as in and enable internal...
by kghunt
Fri Aug 09, 2013 12:05 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

I grabbed some contacts from our stock room they are flush mount ones but the principle and connections are the same. The 2 silver contacts are the ones you want all the others are adjustment screws. one silver screw goes to ground and the other to the GPIO pin. Here is an example I did with my ardu...
by kghunt
Fri Aug 09, 2013 11:43 am
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Probably not as I would enable the internal pull up then use the reed to pull it back down to 0v. So one side to the GPIO and the other to ground.

Then if you monitor the GPIO it will be high going low or vice versa.
by kghunt
Fri Aug 09, 2013 5:04 am
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Well my web page knowledge is pretty non existent but my php card editor is easily adapted to show access as I log that all ready.
by kghunt
Thu Aug 08, 2013 6:32 pm
Forum: General discussion
Topic: Recommend a Pi alternative for a (usable) NAS?
Replies: 15
Views: 10252

Re: Recommend a Pi alternative for a (usable) NAS?

Get a synology. They are very powerful well supported and rock solid.
by kghunt
Thu Aug 08, 2013 6:30 pm
Forum: Beginners
Topic: Help with a startup script.
Replies: 7
Views: 1232

Re: Help with a startup script.

You are probably right. @reboot does work though. I have a python script that I run from cron every 12 hours. It posts information about my pi (load,local ip, public ip etc) into a google spreadsheet. I use at reboot to call it at boot too.
by kghunt
Thu Aug 08, 2013 6:28 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Last night I was experimenting and I set up using a file to store badges and wrote a simple php web page to add remove badges. They might be up your street?
by kghunt
Wed Aug 07, 2013 7:30 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

Here it is modified again but this time it uses a file. You will need to create the file cards.db in the same directory as the script and put a card number on each line. #!/usr/bin/env python #The shebang f = open('cards.db','r') cards = f.read() cards = cards.split('\n') def main(): # define a main...
by kghunt
Wed Aug 07, 2013 7:13 pm
Forum: Python
Topic: USB RFID door alarm system help with code needed
Replies: 48
Views: 7001

Re: USB RFID door alarm system help with code needed

here it is slightly modified and uses a list instead. #!/usr/bin/env python #The shebang card = ['0019171125','1','2'] #card = '0019171125' # Stored good card number consider using a list or a file. def main(): # define a main function. while True: # loop until the program encounters an error. badge...

Go to advanced search