Go to advanced search

by bryanhun
Fri Jun 28, 2013 7:46 pm
Forum: Automation, sensing and robotics
Topic: Read GPIO Input with 9v
Replies: 2
Views: 846

Re: Read GPIO Input with 9v

Same concept, but I am using 10k and 22k resistors.
I just was not sure about there only being one wire in my case.. or do I need to find a ground from the device as well?
Ultrasonic-Module-Circuit-e1356208885394.png
Ultrasonic-Module-Circuit-e1356208885394.png (34.91 KiB) Viewed 835 times
by bryanhun
Fri Jun 28, 2013 7:29 pm
Forum: Automation, sensing and robotics
Topic: Read GPIO Input with 9v
Replies: 2
Views: 846

Read GPIO Input with 9v

I have a single wire that reads either 9.25 volts or -50 mV when it is toggled on/off. I would like to read the on/off via GPIO input, but I am getting false positives with a voltage divider. Can anyone help with another option or with an example wiring diagram for how it should be wired? Any help i...
by bryanhun
Mon Jun 03, 2013 4:53 pm
Forum: General discussion
Topic: LED Status On/Off GPIO Input Reading
Replies: 13
Views: 2949

Re: LED Status On/Off GPIO Input Reading

Thanks again sprinkmeier. I think I understand. Using the voltage divider circuit (similar to the ultrasonic module image above), I simply can add a 3V zenner to provide some protection.. And to do that, I just need to jump it across the RasPi GPIO and RasPi GND? Otherwise, I can use an optocoupler....
by bryanhun
Thu May 30, 2013 11:44 pm
Forum: General discussion
Topic: LED Status On/Off GPIO Input Reading
Replies: 13
Views: 2949

Re: LED Status On/Off GPIO Input Reading

Thank you for the info sprinkmeier.

The device itself runs on 24v, but I am using a single wire that either has 0v or 9v to signal if something is over the sensor. With the voltage divider (10k and 22k) resistors, what could it handle at most? 9v?
by bryanhun
Thu May 30, 2013 5:48 pm
Forum: General discussion
Topic: LED Status On/Off GPIO Input Reading
Replies: 13
Views: 2949

Re: LED Status On/Off GPIO Input Reading

The voltage divider works great.. thank you! It reduced the 9v to 2.8v and triggers the gpio input correctly. Do I also need to run the ground wire from the device (as I do with the 9v battery)? Also, what if there is a spike in voltage from the device over 9v? Do I need something like a optocoupler...
by bryanhun
Wed May 29, 2013 4:46 pm
Forum: General discussion
Topic: LED Status On/Off GPIO Input Reading
Replies: 13
Views: 2949

Re: LED Status On/Off GPIO Input Reading

Thank you Pluggy. Would it end up something like the image below? But, I would swap the "Echo" with the positive end of the battery, and the negative would be the "Ground" on the module in the image? (R1 would be 22k and R2 would be 10k) Thanks again for your help. Ultrasonic-Module-Circuit-e1356208...
by bryanhun
Wed May 29, 2013 2:44 pm
Forum: General discussion
Topic: LED Status On/Off GPIO Input Reading
Replies: 13
Views: 2949

Re: LED Status On/Off GPIO Input Reading

Yes, the LED circuit can be connected to the pi. If there is a better solution to detect the 9v, I am also open to that as well.
by bryanhun
Wed May 29, 2013 2:31 pm
Forum: General discussion
Topic: LED Status On/Off GPIO Input Reading
Replies: 13
Views: 2949

Re: LED Status On/Off GPIO Input Reading

I simply have one resistor between the + end of the LED and positive end of the battery. It drops it down to around 2.2v. The reason I am using 9v is because in this particular application, there is a device that either has 0v or 9v in the line to signal a 1 or a 0 that I need to be able to read. Wh...
by bryanhun
Wed May 29, 2013 1:37 am
Forum: General discussion
Topic: LED Status On/Off GPIO Input Reading
Replies: 13
Views: 2949

LED Status On/Off GPIO Input Reading

Is it possible to use a GPIO input to tell if a LED is on or off? It is separately powered from a 9v battery in this example.

GPIO.setup(pin, GPIO.IN) is giving me false positives. Any help is appreciated!
by bryanhun
Sat May 11, 2013 1:17 am
Forum: Automation, sensing and robotics
Topic: Photosensor Wiring to Pi
Replies: 3
Views: 1363

Photosensor Wiring to Pi

I have a photo sensor that I would like to hook up and read using the Pi. I am just not 100% clear on the wiring and if it will work. It states the supply voltage and current is: 20 to 250V ac (50/60 Hz), average current is 20 mA and the pead current is: 200 mA @ 20V ac, 500 mA @ 120V ac, 750 mA @ 2...
by bryanhun
Wed Apr 24, 2013 7:27 pm
Forum: General discussion
Topic: Control Conveyor Zone Stop
Replies: 0
Views: 411

Control Conveyor Zone Stop

I would like to be able to control a zone stop on a piece of conveyor using a raspberry pi. The module on the conveyor: "is equipped with terminal block connections to accept a zone stop signal from a switch, PLC, etc. This built-in feature will allow any zone to become a workstation zone or an “int...

Go to advanced search