Go to advanced search

by Tarcas
Fri Nov 07, 2014 2:09 pm
Forum: Python
Topic: python code for dht11 sensor
Replies: 36
Views: 89722

Re: python code for dht11 sensor

hi i'm new and my technical knowings are very less but i try to understand that whole thing ... so there are still some problems... because i try to use more than one DHT11 and there are not so much Pins available on the Raspberry Pi so i forced to use a MCP23017 for expanding... well i wired the M...
by Tarcas
Tue Nov 04, 2014 1:20 pm
Forum: Automation, sensing and robotics
Topic: wiringPi and omxplayer
Replies: 3
Views: 886

Re: wiringPi and omxplayer

You should be using a mosfet or preferably an H-bridge to connect the motor to the Pi. Motors draw WAY too much current for the Pi to handle. I'm surprised it works at all after powering the motor.
How do you have it wired?
by Tarcas
Sat Nov 01, 2014 1:27 pm
Forum: Automation, sensing and robotics
Topic: Reading hall sensor values
Replies: 2
Views: 1570

Re: Reading hall sensor values

Maybe something more like this: while (flag = True): sensor = GPIO.input(16) if (sensor==0): counter = counter +1 while (GPIO.input(16)==0): sleep 0.02 else sleep 0.002 I made two modifications. First, I added a sleep to your loop, so that you don't use the entire CPU spinning as fast as it can run ...
by Tarcas
Fri Oct 31, 2014 4:16 am
Forum: Automation, sensing and robotics
Topic: Installing relays to control hard-wired circuits
Replies: 6
Views: 2131

Installing relays to control hard-wired circuits

I'm interested in expanding my home automation system to control things like lights around the house. For lights that plug in, I found this: http://www.amazon.com/Etekcity%C2%AE-Wireless-Control-remotes-included/dp/B00FAII8EM/ref=sr_1_4?ie=UTF8&qid=1414728132&sr=8-4&keywords=remote+socket+outlet For...
by Tarcas
Fri Oct 31, 2014 3:39 am
Forum: Advanced users
Topic: DHCP
Replies: 6
Views: 980

Re: DHCP

I have an LED that blinks based on a few factors, one of which is having an IP. You could set up something similar to indicate that it has an IP. I've also seen tutorials for setting up a small screen to show the Pi's IP, if you need that (I just set both of mine with DHCP reservations so I always k...
by Tarcas
Thu Oct 30, 2014 12:24 pm
Forum: Advanced users
Topic: Startup script returning to login prompt after exit 0
Replies: 1
Views: 750

Re: Startup script returning to login prompt after exit 0

Run the script from init.d instead of logging in and running it from the user's .bashrc. You haven't explained how you're doing it, but if the script is started when you log in, that's my guess as to what the problem is. init.d will start the script as root, so if this is not what is desired, you wi...
by Tarcas
Thu Oct 30, 2014 1:52 am
Forum: Automation, sensing and robotics
Topic: Animatronics, sound, light and motion
Replies: 1
Views: 1718

Re: Animatronics, sound, light and motion

I haven't used any of the premanufactured pi-specific boards that you mentioned, but I have used an L298N motor controller board, which I understand work splendidly for stepper motors as well as DC motors, although I haven't used steppers myself. You can't use the Pi to drive them, as the amperage r...
by Tarcas
Thu Oct 30, 2014 1:28 am
Forum: Automation, sensing and robotics
Topic: Triggering from GPIO
Replies: 3
Views: 822

Re: Triggering from GPIO

I would use a transistor or relay, so that when you trigger that with the GPIO pin, it bridges the same contacts that the switch does. Although, I am a little unclear on the board that you're using. Can you post a link to the spec sheet?
by Tarcas
Fri Oct 17, 2014 1:04 am
Forum: Automation, sensing and robotics
Topic: Aquarium light timing with PiRelay
Replies: 10
Views: 5660

Re: Aquarium light timing with PiRelay

Hi All, new to this.. Will this work with the pi b+.... B+ is GPIO-pin-compatible with the B rev 2. It just adds more pins, so if a connector has a thick end, you may have to trim it or bend two pins. Software is also compatible, given that you're using an OS updated on or after June 2014. It is no...
by Tarcas
Mon Oct 13, 2014 1:01 am
Forum: Networking and servers
Topic: Port Forwarding issue
Replies: 7
Views: 1974

Re: Port Forwarding issue

It could be that your ISP is firewalling off that port. Have you tried different ports like 23, 80, 443, or anything else? They may also be using deep packet inspection to determine that it's peer to peer, which I have heard that some ISPs do. Have you tried forwarding a different protocol or serve...
by Tarcas
Fri Oct 10, 2014 1:45 am
Forum: Advanced users
Topic: Distributed network and file system
Replies: 10
Views: 7485

Re: Distributed network and file system

Is it necessary that each Pi has a local copy of the files?... The idea is to have every file on 2 of x nodes so one node can go down and the the sysrem will auto replicate, providing redundancy, optimal space usage, and auto scaling. Look into DFS, the distributed file system. I don't know much ab...
by Tarcas
Fri Oct 10, 2014 12:37 am
Forum: Advanced users
Topic: Distributed network and file system
Replies: 10
Views: 7485

Re: Distributed network and file system

Is it necessary that each Pi has a local copy of the files? If they can all talk to each other, why not just keep the file repository in one place and use the Pis as wireless access points (or just use wireless access points) to reach the network file share? Unless you have unmentioned requirements,...
by Tarcas
Fri Oct 10, 2014 12:34 am
Forum: Advanced users
Topic: how to make the usb interface on pi as output
Replies: 7
Views: 6925

Re: how to make the usb interface on pi as output

as you all know, the desktop led lamp is using usb in order to swtich on... How exactly was I supposed to know that? Does the USB connection from the lamp actually have logic on it to switch it on and off over USB, or is it just a USB-powered lamp like Burngate mentioned? If it has logic on it, che...
by Tarcas
Fri Oct 10, 2014 12:27 am
Forum: Advanced users
Topic: Accessing SSH when multiple Pis connected to router
Replies: 8
Views: 9355

Re: Accessing SSH when multiple Pis connected to router

You could just login to your Pi (the one with remote access) and then use ssh to login to your other machines with their local IP address. Richard S. Best answer to this solution without doing anything fancy. I've used this solution at several of my jobs, as well as at home. The Pi that you can rea...
by Tarcas
Fri Oct 10, 2014 12:20 am
Forum: Automation, sensing and robotics
Topic: Smart Home System control for B+ by Mobile & PC & Tablet
Replies: 9
Views: 6908

Re: Smart Home System control for B+ by Mobile & PC & Tablet

Why do you need a separate server from the Pi? The Pi is perfectly capable of hosting all of those connections itself. It's running a full-fledged Linux installation, after all. The only reason I could see for using a separate server in my home automation system is if the Pi and/or SD card had issue...
by Tarcas
Thu Oct 09, 2014 11:44 pm
Forum: Automation, sensing and robotics
Topic: My remote garage door opener
Replies: 70
Views: 77639

Re: My remote garage door opener

Disclaimer: I haven't used dynamic DNS in years Dynamic DNS just ties a name to your IP address, the way google.com or microsoft.com tie back to an IP address. The first step in troubleshooting is to make sure that everything works using just your IP and not the dynamic DNS name. If it doesn't work ...
by Tarcas
Tue Oct 07, 2014 3:35 am
Forum: Automation, sensing and robotics
Topic: [?] Light Switch
Replies: 37
Views: 12287

Re: [?] Light Switch

I've just used a relay board from Ebay, but I understand that some of those, although the relays are rated to 120 or 240 volts AC (I don't recall which. I'm on 120, so it doesn't matter to me) the boards are sometimes not designed to carry that high of voltage. I had no problem running line voltage ...
by Tarcas
Mon Oct 06, 2014 1:07 am
Forum: Automation, sensing and robotics
Topic: [?] Light Switch
Replies: 37
Views: 12287

Re: [?] Light Switch

Hello, After countless hours spent on the internet I still have no simple/cheap(ish) solution to control some outdoor lights. The first time a saw a relay, I thought it was going to be quite simple but things got complicated as I found out that the cheap boards with mechanical relays are not the be...
by Tarcas
Mon Oct 06, 2014 12:50 am
Forum: Automation, sensing and robotics
Topic: MOSFET switching recommendation, please. (solved)
Replies: 13
Views: 3940

Re: MOSFET switching recommendation, please.

I'm no electronics engineer, but is there any reason something like this wouldn't work? http://www.ebay.com/itm/1pcs-RD16HHF1-Silicon-MOSFET-Power-Transistor-30MHz-16W-/261557228417?pt=LH_DefaultDomain_0&hash=item3ce6069381 Ebay has a TON of cheap electronics which you can have shipped from China fo...
by Tarcas
Sat Oct 04, 2014 10:58 pm
Forum: Advanced users
Topic: Traffic Control
Replies: 7
Views: 14531

Re: Traffic Control

http://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-to-control-http-traffic/ You could give each user a diffrent port mark it with iptables than shape it with tc. Or you could dynamicly mark based on source ip (obtained from last), or mark based on donain name http://stackoverflow.com/quest...
by Tarcas
Sat Oct 04, 2014 10:21 pm
Forum: Advanced users
Topic: 5V/3A Portable Power Source?
Replies: 2
Views: 1740

Re: 5V/3A Portable Power Source?

Would it be reasonable to power the Pi from the 1A side and the rest of the project from the 2A side? The polyfuse on the A and B is 1.1A anyway, so you can't draw more than that. B+ increases it to 2A IIRC, but only actually uses 600 mA (again, IIRC.) If that doesn't work for you, could you split u...
by Tarcas
Sat Oct 04, 2014 7:02 pm
Forum: Automation, sensing and robotics
Topic: Automatic Gate Using Rpi
Replies: 8
Views: 8469

Re: Automatic Gate Using Rpi

I have the idea of the automated gate simply working like a garage door. Push button and the gate opens and push button for gate to close. Any thoughts about going that route? I did almost exactly this with my garage door. Here are the steps that I would take in your shoes: 1) Automate the gate. Us...
by Tarcas
Sat Oct 04, 2014 6:45 pm
Forum: Automation, sensing and robotics
Topic: stargate
Replies: 12
Views: 2787

Re: stargate

I didn't see that you ever mentioned it, but are the LEDs supposed to be individually controllable, or will they all (or some subsets) always be the same as each other? If the latter, then you only need 3 GPIOs per set, and you should be able to do that with the Pi and PWM, although you'll probably ...
by Tarcas
Sat Oct 04, 2014 6:29 pm
Forum: Automation, sensing and robotics
Topic: can I use one resistor with two sensors on different GPIO's?
Replies: 4
Views: 1141

Re: can I use one resistor with two sensors on different GPI

Joan: Thanks! drawing it out, I realized that to make it work, using one resistor, would mean having a direct connection between GPIO4 and GPIO18. I assume this might not be such a good idea and resistors are cheap so it's better be safe than sorry and damage the pi. Off to wire the circuit. I supp...
by Tarcas
Sun Sep 28, 2014 2:54 pm
Forum: Automation, sensing and robotics
Topic: Setting Up home automation.
Replies: 9
Views: 3347

Re: Setting Up home automation.

Could I either run the GPIO over distance to relays around the house or could I take connection off a relay and feed it to another relay at the end of cat5 cable or is there a better option. The GPIOs can only give you 16mA, so you're going to need some form of repeater/relay/transistor if the dist...

Go to advanced search