Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
CheddarGoblin
Jan 12, 2005
oh
Any suggestions on the cheapest/most elegant way to add some screw terminals (or something similar) to the GPIO pins? The piface looks nice but it's expensive and overkill for what I need. I'm using the pi for my DIY home security system have motion sensors attached to it, currently ghetto-rigged with some old PC fan plugs.

Adbot
ADBOT LOVES YOU

Zaphod42
Sep 13, 2012

If there's anything more important than my ego around, I want it caught and shot now.

HATE TROLL TIM posted:

I really like the case SparkFun sells: https://www.sparkfun.com/products/11623

I've been meaning to mention it since I got mine in last week. Not only is it one of the cheapest cases on the market, it's basically the only one I've found that provided open access to the 26-Pin GPIO header! By using one of Adafruit's passthrough headers, I was able to plug various boards in and have them fit on top of the case for easy access!



I have that case and I love it. The first case I bought also allowed access to the GPIO pins (which is important), but it was like 2x as big and pretty stupidly designed, one of the pegs that held it together broke the day I got the drat thing.

Got that one as a replacement, and I absolutely love it. Brilliant design, easy to put together, fits a perfect form-factor so it doesn't take up any extra room in your pocket. Everything has holes exactly as they should be, very snug. There's even some little plastic things to make the board LEDs visible from the case shell! Very good design.

I also like the PiBow, and if you really want a cheap case, you could copy the lego case designs people have made. Lego are pretty drat sturdy.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
I like the case-chat. I haven't got my Pi yet, so I didn't know about the box. That sounds great until I trash it, then I'll move onto Lego. Thanks, guys. Sparkfun is pretty out of the question because they have some pretty stupid shipping options to Canada.

HATE TROLL TIM
Dec 14, 2006

ante posted:

I like the case-chat. I haven't got my Pi yet, so I didn't know about the box. That sounds great until I trash it, then I'll move onto Lego. Thanks, guys. Sparkfun is pretty out of the question because they have some pretty stupid shipping options to Canada.

Have you checked Amazon.com/.ca? That's where I got my first case from! It was a wooden version of the PiBow:





Some guy took the PiBow pattern and cut it on his laser engraver using locally sourced lumber. Mine smelt like a campfire! Not bad for $!5 really. I don't think they'll have that specific case, but I know Amazon sells a bunch of other, normal mass produced inexpensive ones. Just an option. :)


the nicker posted:

Any suggestions on the cheapest/most elegant way to add some screw terminals (or something similar) to the GPIO pins? The piface looks nice but it's expensive and overkill for what I need. I'm using the pi for my DIY home security system have motion sensors attached to it, currently ghetto-rigged with some old PC fan plugs.



How about an Adafruit Proto Pi Plate: http://adafruit.com/products/801

It gives you screw terminals and standard female headers for all the GPIO pins, with handy labels! It also adds a small (13x2) breadboard style solder area plus a tiny area to convert an SOIC to DIP if you ever had the need.

Personally, I took one of their Tiny Breadboards and attached it to mine, so I've got an easy to access prototype area. Combined it with one of their passthrough headers so I can plug another board in on top of it. It's about my second most used Pi accessory, next to the Gertboard.

CheddarGoblin
Jan 12, 2005
oh

HATE TROLL TIM posted:

How about an Adafruit Proto Pi Plate: http://adafruit.com/products/801


This looks perfect! Thank you

doritos
Dec 6, 2010

by Y Kant Ozma Post
Hey has the Raspberry Pi become anyone's kid's Commodore 64 equivalent yet?

Just checking. Thanks.

Migishu
Oct 22, 2005

I'll eat your fucking eyeballs if you're not careful

Grimey Drawer
Is there any place in the US where I can get all the cables I need to hook up a rPi to a lapdock? I'm heading overseas soon and want to bring my rPi/Lapdock along to show a friend, but one or two of the cables I need have to come from China, and most places don't offer express shipping (or those that do want $20 shipping)

HATE TROLL TIM
Dec 14, 2006

Migishu posted:

Is there any place in the US where I can get all the cables I need to hook up a rPi to a lapdock? I'm heading overseas soon and want to bring my rPi/Lapdock along to show a friend, but one or two of the cables I need have to come from China, and most places don't offer express shipping (or those that do want $20 shipping)

Nope, I spent a good 3+ hours searching for Micro-HDMI Male to HDMI and Micro-USB Male to *USB and everything come from China. I did find one place on Amazon that had a 3" Micro HDMI Female-Male cable, so you *could* get that cable, cut the male end off and wire it up to a real USB cable.

Now, what I ended up doing on my first Lapdock was opening it up and soldering the individual wires to a normal HDMI cable. I've still got the wire color to pinout notes for this HDMI cable if want to go that route. Below is my previous post on the subject.

HATE TROLL TIM posted:

Speaking of displays... Got my Lapdock going last night! I ended up cutting the end off an HDMI cable and wiring it directly into the JHDMI connector on the Lapdock's mainboard. I decided having a 1m cable pair coming out of the back would be the ideal setup for me, versus having connectors on the Lapdock itself. Plus I don't have to wait 3 years for the micro-HDMI gender changers to get here from China!





Now I've just got to get that all bundled up and tight, then move on to the USB.

HATE TROLL TIM fucked around with this message at 01:20 on May 6, 2013

Migishu
Oct 22, 2005

I'll eat your fucking eyeballs if you're not careful

Grimey Drawer

HATE TROLL TIM posted:

Nope, I spent a good 3+ hours searching for Micro-HDMI Male to HDMI and Micro-USB Male to *USB and everything come from China. I did find one place on Amazon that had a 3" Micro HDMI Female-Male cable, so you *could* get that cable, cut the male end off and wire it up to a real USB cable.

That's what I was thinking of but the cables are kinda expensive. It will probably be the best thing to do, since i can get a Micro HDMI Male to HDMI female adaptor for cheap.

I want to look into getting one of these, due to this post. I have a newer revision board (without the F1/F2 fuses).

I don't want to rip open the lapdock, in case I want to sell it later.

HATE TROLL TIM
Dec 14, 2006

Migishu posted:

That's what I was thinking of but the cables are kinda expensive. It will probably be the best thing to do, since i can get a Micro HDMI Male to HDMI female adaptor for cheap.

I want to look into getting one of these, due to this post. I have a newer revision board (without the F1/F2 fuses).

I don't want to rip open the lapdock, in case I want to sell it later.

You don't need the Y adapter if you have a newer revision board. All you have to do is plug straight into one of the two USB ports on the Pi and it'll backfeed power just fine. That Y adapter was only for people who have fuses onboard.

For my second Lapdock, I found a good deal on eBay. Micro HDMI F to F + Micro USB F to USB-A F

Here's my setup:







I've got 1.5m cables that I simply braided together. I attached the two adapters together on the Lapdock side with a bit of rubber padding (made from self-stick rubber tape) and zip ties; I also added some padding at the base of the connectors and a metal bar on the HDMI adapter to act as strain relief.

Right now I'm waiting on 50 Micro HDMI Female Surface Mount PCB connectors to get here. I've got a small circuit board drawn up with Micro USB and HDMI connectors on one side and full sized ones on the other. I've also put a 10uF super capacitor onboard to keep the RPi powered while closing and opening the Lapdock's lid. I'm going to get a batch of PCBs made up with a solder mask stencil so I can do the boards myself. If it works well I'll try to get a small case to fit it and see about selling them.

Migishu
Oct 22, 2005

I'll eat your fucking eyeballs if you're not careful

Grimey Drawer
Is there a howto guide on adding the super capacitor? I saw the screenshots on the rPi site, but it really didn't help me much (I'm a beginner at electronics)

HATE TROLL TIM
Dec 14, 2006

Migishu posted:

Is there a howto guide on adding the super capacitor? I saw the screenshots on the rPi site, but it really didn't help me much (I'm a beginner at electronics)

The quick and dirty way is to just attach it straight across +5v and ground somewhere. You could solder it straight onto the bottom of the RPi's USB jack or cut the USB cable and tie it in that way. What I'd do is just solder it onto a 1"x1" piece of perfboard and add a little 2x2 female header so you can plug it right into the GPIO connector.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

Since when is 10uF "super"?

HATE TROLL TIM
Dec 14, 2006

peepsalot posted:

Since when is 10uF "super"?

That's a mistype, I meant 10f. So used to putting a "u" there, force of habit I guess!

The Automator
Jan 16, 2009
Alright I've had this idea kicking around in my head for a while, and a Raspberry Pi seems perfect for it. I just want to run it by you guys to see if it's possible.

I work at a company that puts people through simulated situations, like getting money out of an ATM. Right now we have a picture of an ATM with a $10 taped to it. Obviously not even remotely realistic at all. In fact, I'd say it's definitely our weakest spot in regards to realism.

We've been thinking about how to do a fairly realistic ATM for a long time and reading up on Raspberry Pi stuff has given me an idea.

Okay, so I plan to make a simple GUI, like an ATM. First screen is a welcome, second is language, third is PIN, fourth is the student has to type in a dollar amount and hit enter. I plan on the screen being a small monitor, and the input being done with a USB keypad, like this..

So, what I want to be able to do is, the student walks up and swipes their card. The 'card reader' is just a plastic shell with a PIR motion sensor in it. Once it sees the card swiped, the video changes from Welcome to asking for language. Once language is selected, the student has to input a PIN we give them. PIN is entered, dollar amount is entered, 15 second wait, small door slides open and the student can take their money and be on their way. After about 30 seconds, the door shuts and the program flips back to the welcome screen.

So I've been looking, and it seems pretty trivial to have the Pi to control a small DC motor in order to open the door, and also trivial to have it pick up motion sensor input. However, I know next to nothing about this stuff, though I want to learn.

My main question is, is this possible? Does this make sense? Is there a better way to do this?

Zaphod42
Sep 13, 2012

If there's anything more important than my ego around, I want it caught and shot now.
Seems possible and pretty sensible to me. Connecting a Usb keyboard to a text interface and having a simple program like that is ezmode. So like you said, the challenges are going to be the physical door sliding and the card reader. I like your solution, just having a motion detector in the card slot is tons easier than actually using a card reader.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

A simple optointerrupter would make more sense than an actual motion sensor, unless that's what you meant to say.

The Automator
Jan 16, 2009

Zaphod42 posted:

Seems possible and pretty sensible to me. Connecting a Usb keyboard to a text interface and having a simple program like that is ezmode. So like you said, the challenges are going to be the physical door sliding and the card reader. I like your solution, just having a motion detector in the card slot is tons easier than actually using a card reader.

Yeah I won't be using any data from the card, just want to make the student swipe it.

Both a motion sensor and a motor can run from the same breadboard, right?

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
Yes, but you won't be able to run the motor directly from the Pi. It draws too much current and will burn out your board. Get a little motor controller board from eBay, like $2.

veni veni veni
Jun 5, 2005


Anyone used one of these cases? http://www.etsy.com/listing/93162730/bramble-pi-raspberry-pi-model-b-laser?ref=shop_home_active I just ordered a Pi and it's a shitload cooler looking than the plastic ones on Amazon for only a few more dollars. Can't tell how sturdy it is though. Any case recommendations would be appreciated.

Alternately, I do have like 30 pounds of Legos sitting back at my parents house so I guess I could do that too.

Schizophrenic Orb
Nov 16, 2009

Intriguing...

The Automator posted:

Alright I've had this idea kicking around in my head for a while, and a Raspberry Pi seems perfect for it. I just want to run it by you guys to see if it's possible.

So I've been looking, and it seems pretty trivial to have the Pi to control a small DC motor in order to open the door, and also trivial to have it pick up motion sensor input. However, I know next to nothing about this stuff, though I want to learn.

My main question is, is this possible? Does this make sense? Is there a better way to do this?

Adafruit has excellent tutorials. Lessons 8, 9, and 12 will probably get you on the right track. And if you're not familiar with python, it's fairly easy to figure out how to modify their scripts to do what you want.

The Automator
Jan 16, 2009

Schizophrenic Orb posted:

Adafruit has excellent tutorials. Lessons 8, 9, and 12 will probably get you on the right track. And if you're not familiar with python, it's fairly easy to figure out how to modify their scripts to do what you want.

That's what gave me the idea.


ante posted:

Yes, but you won't be able to run the motor directly from the Pi. It draws too much current and will burn out your board. Get a little motor controller board from eBay, like $2.

Speaking of those tutorials, in them they show the motors not needing an external power source. Is this because of the PIR needing power also?

bobua
Mar 23, 2003
I'd trade it all for just a little more.

The Automator posted:

Alright I've had this idea kicking around in my head for a while, and a Raspberry Pi seems perfect for it. I just want to run it by you guys to see if it's possible.

I work at a company that puts people through simulated situations, like getting money out of an ATM. Right now we have a picture of an ATM with a $10 taped to it. Obviously not even remotely realistic at all. In fact, I'd say it's definitely our weakest spot in regards to realism.

We've been thinking about how to do a fairly realistic ATM for a long time and reading up on Raspberry Pi stuff has given me an idea.

Okay, so I plan to make a simple GUI, like an ATM. First screen is a welcome, second is language, third is PIN, fourth is the student has to type in a dollar amount and hit enter. I plan on the screen being a small monitor, and the input being done with a USB keypad, like this..

So, what I want to be able to do is, the student walks up and swipes their card. The 'card reader' is just a plastic shell with a PIR motion sensor in it. Once it sees the card swiped, the video changes from Welcome to asking for language. Once language is selected, the student has to input a PIN we give them. PIN is entered, dollar amount is entered, 15 second wait, small door slides open and the student can take their money and be on their way. After about 30 seconds, the door shuts and the program flips back to the welcome screen.

So I've been looking, and it seems pretty trivial to have the Pi to control a small DC motor in order to open the door, and also trivial to have it pick up motion sensor input. However, I know next to nothing about this stuff, though I want to learn.

My main question is, is this possible? Does this make sense? Is there a better way to do this?

The plastic door and card motion thing seem like a waste unless you are really doing this more for fun. A lot of real ATM's don't have a sliding door like that. Rigging up a card reader seems like a waste because a real one is so cheap(you probably have to buy one to modify it anyway), and you can just tie an event to the input from it or something. Not that any of it is that difficult, just seems like extra work for no benefit.

The Automator
Jan 16, 2009

bobua posted:

The plastic door and card motion thing seem like a waste unless you are really doing this more for fun. A lot of real ATM's don't have a sliding door like that. Rigging up a card reader seems like a waste because a real one is so cheap(you probably have to buy one to modify it anyway), and you can just tie an event to the input from it or something. Not that any of it is that difficult, just seems like extra work for no benefit.

The machine has to have a user interface. It has to include a card swiping mechanism, and it has to give the student money. I couldn't think of a better way for it to give out money than to have a couple bills in a tray that has a door in front of it. I mean, if its easy to spit out cash into a tray, I'm all ears, but I think a small sliding door to reveal cash would be easier.

I can rig up something visually close enough to a card reader to work. I've looked at card readers online and they run about $50 at the lowest end compared to under $10 for a motion sensor.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

The Automator posted:

The machine has to have a user interface. It has to include a card swiping mechanism, and it has to give the student money. I couldn't think of a better way for it to give out money than to have a couple bills in a tray that has a door in front of it. I mean, if its easy to spit out cash into a tray, I'm all ears, but I think a small sliding door to reveal cash would be easier.

I can rig up something visually close enough to a card reader to work. I've looked at card readers online and they run about $50 at the lowest end compared to under $10 for a motion sensor.
Get some old scrap lovely bubblejet or whatever printer and just have it page feed a bill at a time like a real atm.

Guy Axlerod
Dec 29, 2008

The Automator posted:

The machine has to have a user interface. It has to include a card swiping mechanism, and it has to give the student money. I couldn't think of a better way for it to give out money than to have a couple bills in a tray that has a door in front of it. I mean, if its easy to spit out cash into a tray, I'm all ears, but I think a small sliding door to reveal cash would be easier.

I can rig up something visually close enough to a card reader to work. I've looked at card readers online and they run about $50 at the lowest end compared to under $10 for a motion sensor.

You keep saying motion sensor. A beam break sensor or micro switch will be much more reliable.

For the door, a solenoid might be easier to use than a motor. Turn on the solenoid, door is open. Turn off the solenoid, door is closed. With a motor, you have to worry about how long to run it for, what position it is in?, or use home sensors.

bobua
Mar 23, 2003
I'd trade it all for just a little more.

The Automator posted:

The machine has to have a user interface. It has to include a card swiping mechanism, and it has to give the student money. I couldn't think of a better way for it to give out money than to have a couple bills in a tray that has a door in front of it. I mean, if its easy to spit out cash into a tray, I'm all ears, but I think a small sliding door to reveal cash would be easier.

I can rig up something visually close enough to a card reader to work. I've looked at card readers online and they run about $50 at the lowest end compared to under $10 for a motion sensor.

Auh, good call. Didn't think about 'giving' the money somehow. Card readers can be had for cheap though http://www.digikey.com/product-detail/en/V3A-4K/Z2064-ND/503130 ($22)

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS

bobua posted:

Auh, good call. Didn't think about 'giving' the money somehow. Card readers can be had for cheap though http://www.digikey.com/product-detail/en/V3A-4K/Z2064-ND/503130 ($22)

Yeah, but as mentioned, he just needs a photo interrupter switch. Like this:



If he takes apart a printer to get the rollers/motor assembly to feed the user money, he'll also find a whole shitton of those switches.

bobua
Mar 23, 2003
I'd trade it all for just a little more.

Well fine let's just do all the things that you want to do.

My Rhythmic Crotch
Jan 13, 2011

Beaglebone Black update: Newark sent me two of them, even though I only ordered one :woop:

The default Angstrom distribution was pretty meh, but others might like it a lot more because it includes a javascript library to access the I2C and GPIO, etc. I ran 'opkg update && opkg upgrade' and it bricked the install. Fortunately, booting from microSD still works perfectly. As long as you have a Linux machine, you can easily make an SD card with Ubuntu, Debian, or several others. Right now I'm running Debian (console only) and it's awesome to have any package I could ever want available. I popped this wifi adapter in and was able to get it running without a lot of problems. I need to get a micro HDMI cable before I can evaluate the video performance.

Overall I would say, there are so many advantages to the BBB compared to the Pi, I really think its just a matter of time before it gains a large following.

HATE TROLL TIM
Dec 14, 2006

My Rhythmic Crotch posted:

Beaglebone Black update: Newark sent me two of them, even though I only ordered one :woop:

The default Angstrom distribution was pretty meh, but others might like it a lot more because it includes a javascript library to access the I2C and GPIO, etc. I ran 'opkg update && opkg upgrade' and it bricked the install. Fortunately, booting from microSD still works perfectly. As long as you have a Linux machine, you can easily make an SD card with Ubuntu, Debian, or several others. Right now I'm running Debian (console only) and it's awesome to have any package I could ever want available. I popped this wifi adapter in and was able to get it running without a lot of problems. I need to get a micro HDMI cable before I can evaluate the video performance.

Overall I would say, there are so many advantages to the BBB compared to the Pi, I really think its just a matter of time before it gains a large following.

I've been investigating making up a BBB to RPi GPIO adapter and it seems 100% doable. Maybe make it Arduino shield compatible as well and you'd have the perfect little platform IMO.

Though, one thing about the RPi is it still costs $35. I burnt one out tonight and instead of cursing and putting a hole in the wall I just shrugged and plugged in a new one. Poor RPi Mk.1, brought down by a RaspiRobot Board. :(

Edit: Though I suppose $45 vs $35 isn't too bad, especially for the performance boost.

HATE TROLL TIM fucked around with this message at 07:56 on May 12, 2013

The Automator
Jan 16, 2009

peepsalot posted:

Get some old scrap lovely bubblejet or whatever printer and just have it page feed a bill at a time like a real atm.

I like the idea, but it will be a pain to fill. It's going to be placed fairly permanently in place, with maybe just an access panel to turn on/off the equipment.


Guy Axlerod posted:

You keep saying motion sensor. A beam break sensor or micro switch will be much more reliable.

For the door, a solenoid might be easier to use than a motor. Turn on the solenoid, door is open. Turn off the solenoid, door is closed. With a motor, you have to worry about how long to run it for, what position it is in?, or use home sensors.

Yeah, a beam break will be much better.

A solenoid is something to look into for sure. I'm still in the planning stages, so I'll certainly take it into consideration.


ante posted:

Yeah, but as mentioned, he just needs a photo interrupter switch. Like this:



If he takes apart a printer to get the rollers/motor assembly to feed the user money, he'll also find a whole shitton of those switches.


Yes, that's perfect for what I need.

baka kaba
Jul 19, 2003

PLEASE ASK ME, THE SELF-PROFESSED NO #1 PAUL CATTERMOLE FAN IN THE SOMETHING AWFUL S-CLUB 7 MEGATHREAD, TO NAME A SINGLE SONG BY HIS EXCELLENT NU-METAL SIDE PROJECT, SKUA, AND IF I CAN'T PLEASE TELL ME TO
EAT SHIT

The Automator posted:

I like the idea, but it will be a pain to fill. It's going to be placed fairly permanently in place, with maybe just an access panel to turn on/off the equipment.


Is someone going to fill the money box each time? You could just have a hinged/flexible ramp that lies flat with the cash on it, and then a solenoid lifts the ramp to let the money slide down and pop out of a slot like a real ATM. You could have the student put it back through a little door or whatever if you need to

HATE TROLL TIM
Dec 14, 2006
Have the bubble jet literally print the money each time, thus representing how America prints money to payoff debt and the ideals behind the disposable credit of the nouveau riche living the American Dream; the receipt would be an IOU with the Student's name to Uncle Sam, showing that we all really owe our soul to the company store that is this country. American Dream? Nah, more like American Nightmare.

Seriously though, I think taking an old printer apart for the feeder mechanism would be a smart move. You can adapt those parts really easily to do what *you* want.

HATE TROLL TIM fucked around with this message at 21:04 on May 12, 2013

The Automator
Jan 16, 2009

baka kaba posted:

Is someone going to fill the money box each time? You could just have a hinged/flexible ramp that lies flat with the cash on it, and then a solenoid lifts the ramp to let the money slide down and pop out of a slot like a real ATM. You could have the student put it back through a little door or whatever if you need to

Basically we have classes of around 10-15 students. Each student runs through a scenario that lasts maybe 5 minutes. After the scenario we reset everything for the next student. We run maybe 5 or 6 different scenarios throughout the day.

So yeah, we would put the same cash used by the previous student back in the machine, so we wouldn't have to have a large stash of cash on hand to fill up the machine.

I do like the idea of the cash falling into a little tray like a real ATM, though, and that's a good way to do it.

SYSV Fanfic
Sep 9, 2003

by Pragmatica
You know, switching from openbox to fluxbox as the window manager and disabling showing window contents on move makes X on raspbian so much nicer to use.

Also holy crap. With RISC OS and BBC basic's mode command the pi looks and acts like an eight bit computer running a basic interpreter...

SYSV Fanfic fucked around with this message at 23:11 on May 12, 2013

HATE TROLL TIM
Dec 14, 2006

keyvin posted:

You know, switching from openbox to fluxbox as the window manager and disabling showing window contents on move makes X on raspbian so much nicer to use.

Also holy crap. With RISC OS and BBC basic's mode command the pi looks and acts like an eight bit computer running a basic interpreter...

Try loading up awesome-wm instead, it makes the thing loving fly. Plus you get full and total keyboard control of everything.

(And yeah, I love loading up RISCOS sometimes just to play with BBC Basic. If you have Amazon Prime and a Kindle you can borrow for free the book about programming the Raspberry Pi in Assembly. I've been reading through it and the whole thing is in RISCOS. It's a very nice little primer.)

Factory Factory
Mar 19, 2010

This is what
Arcane Velocity was like.
E: What the... wrong thread.

CheddarGoblin
Jan 12, 2005
oh
Noob electronics question. I'm using my pi for home security type stuff. Right now I've got two motion sensors wired in. - they're the basic cheap PIR sensors and because I've got them outside I need to upgrade them significantly to eliminate false alarms. The potential problem I see is power, though. My current sensors only use 10ma max (at 12v). I've got some 5v->12v converters wired in with the sensors, which if my calculations are correct (and they may not be) works out to about 23ma at 5v, so I'm drawing less than 50ma total with the two sensors. The new sensors I'm looking at use a lot more power, up to 62ma at 12v (or 150ma at 5v). That's 300ma total, which I believe is too much. Especially since I've got other things drawing power as well (right now just my remote gate opener, I'm honestly not sure how much power it pulls but it's working right now).

So, I think I need a separate power supply for the sensors. A 12v supply would be nice since it eliminates the need for the voltage converter things. Will that work? Will I still be able to read the alarm signal on my GPIO pins, or do the power supply and raspberry pi need to share a common ground? Is it just as simple as connecting the grounds together? Seems like that could be dangerous. I've no idea what I'm doing.

Adbot
ADBOT LOVES YOU

Factory Factory
Mar 19, 2010

This is what
Arcane Velocity was like.

the nicker posted:

Noob electronics question. I'm using my pi for home security type stuff. Right now I've got two motion sensors wired in. - they're the basic cheap PIR sensors and because I've got them outside I need to upgrade them significantly to eliminate false alarms. The potential problem I see is power, though. My current sensors only use 10ma max (at 12v). I've got some 5v->12v converters wired in with the sensors, which if my calculations are correct (and they may not be) works out to about 23ma at 5v, so I'm drawing less than 50ma total with the two sensors. The new sensors I'm looking at use a lot more power, up to 62ma at 12v (or 150ma at 5v). That's 300ma total, which I believe is too much. Especially since I've got other things drawing power as well (right now just my remote gate opener, I'm honestly not sure how much power it pulls but it's working right now).

So, I think I need a separate power supply for the sensors. A 12v supply would be nice since it eliminates the need for the voltage converter things. Will that work? Will I still be able to read the alarm signal on my GPIO pins, or do the power supply and raspberry pi need to share a common ground? Is it just as simple as connecting the grounds together? Seems like that could be dangerous. I've no idea what I'm doing.

Power and signal are entirely separate and there's no problem getting your +5V and +12V and +3.3V from entirely different sources, as long as you make sure nothing's cross-wired and about to release magic blue smoke. The only potential issue is if you're using a single-wire signal that relies on ground, but that's simple, because you can bridge the ground no problem between 5V and 12V. In fact, shared ground is probably the better idea.

Factory Factory fucked around with this message at 17:07 on May 13, 2013

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply