Go to advanced search

by Bencom
Tue Sep 18, 2012 2:30 am
Forum: Graphics, sound and multimedia
Topic: Webcam - motion not working - but video ok on mplayer
Replies: 25
Views: 69743

Re: Webcam - motion not working - but video ok on mplayer

mplayer log command mplayer tv:// The odd frame makes it through however image is split (not right size with broken up into about 4 different bits) mplayer tv:// MPlayer svn r34540 (Debian), built with gcc-4.6 (C) 2000-2012 MPlayer Team mplayer: could not connect to socket mplayer: No such file or d...
by Bencom
Tue Sep 18, 2012 1:38 am
Forum: Graphics, sound and multimedia
Topic: Webcam - motion not working - but video ok on mplayer
Replies: 25
Views: 69743

Re: Webcam - motion not working - but video ok on mplayer

I think under load something is falling over. As well as streaming video I want to stream audio. I can do this with avconv via rtp and play vid and aud in a vlc session. When I run avconv the errors consistently appear although the error still occurs sooner or later if I do not run avconv as well. E...
by Bencom
Tue Sep 18, 2012 12:32 am
Forum: Graphics, sound and multimedia
Topic: Webcam - motion not working - but video ok on mplayer
Replies: 25
Views: 69743

Re: Webcam - motion not working - but video ok on mplayer

I do not know but... I have a similar issue. Give me some time and I will post more. My camera was working for a week or so and then a bug was introduced. This bug is in the kernel or a module. My camera works for a period until the first error happens. Eventually it causes motion to time out. We ca...
by Bencom
Tue Sep 18, 2012 12:02 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Opto-isolator directly driven by GPIO port?
Replies: 21
Views: 28788

Re: Opto-isolator directly driven by GPIO port?

1 x 4 Relay module $8.50USD shipping built in. Equals $10.28 NZD cheaper if ordering more. Available in 5, 12 and 24v plus 30cm cable. The link below has the circuit and is low side switched. http://www.aliexpress.com/item/5V-12V-or-24V-4-Channel-Relay-Module-Unit-30MM-cables/632669677.html I have u...
by Bencom
Mon Sep 17, 2012 3:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Opto-isolator directly driven by GPIO port?
Replies: 21
Views: 28788

Re: Opto-isolator directly driven by GPIO port?

Two units I built. The over kill one is probably more suited to other high current uses rather than just driving a relay. MC34152 Input threshold voltage max 2.6v Typ 1.58v - 1.75v Iih 200uA Iil 20uA. http://www.zlham.geek.nz/images/news/relays-cct.jpg http://www.zlham.geek.nz/images/news/relays-cct...
by Bencom
Mon Sep 17, 2012 12:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Opto-isolator directly driven by GPIO port?
Replies: 21
Views: 28788

Re: Opto-isolator directly driven by GPIO port?

Of course both potential problems can be circumvented by using a slightly different method of operating the relay: Instead of switching the GPIO between input and output, keep it in output mode but drive it high to switch on the relay, or low to switch it off. It is a PNP BJT connected as a high-si...
by Bencom
Sun Sep 16, 2012 11:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Opto-isolator directly driven by GPIO port?
Replies: 21
Views: 28788

Re: Opto-isolator directly driven by GPIO port?

Yes. Plus I tested with the board gnd disconnected. I probably need to make a break out board to test much more.
by Bencom
Sun Sep 16, 2012 11:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Opto-isolator directly driven by GPIO port?
Replies: 21
Views: 28788

Re: Opto-isolator directly driven by GPIO port?

The RPI has been exposed to this leakage current for a few weeks now (24/7). Test measurements. I did a bit of testing before connecting but not real extensive. 5.8mA idle current. (led) 76.2 - idle = 70.4mA relay current All relays on ~280mA Leakage voltage and current measured for both 5v and 3.3v...
by Bencom
Sat Sep 15, 2012 10:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Opto-isolator directly driven by GPIO port?
Replies: 21
Views: 28788

Re: Opto-isolator directly driven by GPIO port?

Back to the drawing board I guess. Had no idea leakage voltage reaches the level it does (4.2v off 3.8v on). Will see what I can do with the 6N137 opto's and a drive transistor I have coupled with the relay modules.

Thanks for the tips.
by Bencom
Fri Sep 14, 2012 11:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Opto-isolator directly driven by GPIO port?
Replies: 21
Views: 28788

Re: Opto-isolator directly driven by GPIO port?

I have posted this link several times. http://arduino-direct.com/sunshop/index.php?l=product_detail&p=181 This is the relay I use on my RPi. Switching the port to output turns the relay on, switch back to input and it is off. Could not be simpler than that. The user space program gpio, part of the w...
by Bencom
Fri Sep 14, 2012 8:52 pm
Forum: Automation, sensing and robotics
Topic: Will An Ebay Relay Board work with the pi?
Replies: 53
Views: 17039

Re: Will An Ebay Relay Board work with the pi?

I use a YwRobot 4 relay. These relays are positive logic. In other words +3.3v equals off and 0 volts equals on. I think it works this way. When the port is set as input the pin is high due to pull up enabled (Relay off). When the pin is output it is floating (Tri state) thereby 0v and the relay is ...
by Bencom
Thu Sep 13, 2012 3:05 am
Forum: General discussion
Topic: Pi Security and Firewalls
Replies: 7
Views: 1804

Re: Pi Security and Firewalls

I note very few attacks on ssh on my server even on the standard port of late. Just follow the rules and keep ssh up to date. Do not allow root login. Watch your logs with one of the packages that do that sort of thing. Linux has good enough logging for me not to log at my adls router. I run a home ...
by Bencom
Tue Sep 11, 2012 9:18 pm
Forum: Other projects
Topic: machine / laser cut metal plates ?
Replies: 4
Views: 1890

Re: machine / laser cut metal plates ?

My first priority was to make a case with a hacksaw and my Arlec mini drill. I guess about 4 hours to make two. I am lucky enough to have two machines so I can do Pi to Pi things. Gate opener end points being the proof of concept on a 3 acre lifestyle block, 150m to gate 24v + cat5e. http://www.zlha...
by Bencom
Tue Sep 11, 2012 5:49 am
Forum: Troubleshooting
Topic: help streaming
Replies: 4
Views: 680

Re: help streaming

Sorry I did not quite get what you were trying to do.
apt-get install smbclient smbfs

http://oss.sgi.com/LDP/HOWTO/SMB-HOWTO-8.html

Happy smb'ing
by Bencom
Tue Sep 11, 2012 3:21 am
Forum: Troubleshooting
Topic: messed up gcc install by accident.
Replies: 5
Views: 2603

Re: messed up gcc install by accident.

Hi Guys, I was trying to install gcc-4.7 which went fine but then it wasn't being picked up by running just gcc as it was still reporting 4.6. To try and get around this i removed apt-get remove gcc4.4 and apt-get remove gcc-4.4 That still didn't do the trick so i reinstalled gcc 4.4 and 4.6 but no...
by Bencom
Mon Sep 10, 2012 9:13 pm
Forum: Troubleshooting
Topic: help streaming
Replies: 4
Views: 680

Re: help streaming

Search samba.
apt-get install samba
You will need to learn how to configure it.
Normally I use webmin to config/setup.
by Bencom
Mon Sep 10, 2012 7:12 pm
Forum: Automation, sensing and robotics
Topic: How can you use a pi to controlled a mains switch
Replies: 32
Views: 21718

Re: How can you use a pi to controlled a mains switch

Bencom your link http://arduino-direct.com/sunshop/index.php?l=product_detail&p=181 is the closest to what I was after. Not sure if it's UK comparable. I very intresting Check out the ali express web site. You may be able to get one of quantities. Shipping may be your biggest obstacle. Some supplie...
by Bencom
Mon Sep 10, 2012 7:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: New circuit design - home alarm system
Replies: 12
Views: 6578

Re: New circuit design - home alarm system

allen_g wrote:
Yes, the sensor and switch runs vary in length from 6 feet to 30 feet. Not sure if that counts as long but I have some caps in that range on hand. Basically wire up the capacitor from the GPIO pin to ground?
Yes.
by Bencom
Mon Sep 10, 2012 12:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: New circuit design - home alarm system
Replies: 12
Views: 6578

Re: New circuit design - home alarm system

I stated this in my post... "I looked at both." Hence my view that using a transistor to switch the siren is a bad idea. Should the transistor junction break down 12v may appear on a port pin.
by Bencom
Mon Sep 10, 2012 1:43 am
Forum: Networking and servers
Topic: FTP Client / Server via Command Line?
Replies: 3
Views: 6828

Re: FTP Client / Server via Command Line?

Another suggestion. Look for an ncat/netcat tutorial. It is more than capable of sending anything.
by Bencom
Mon Sep 10, 2012 1:39 am
Forum: Networking and servers
Topic: FTP Client / Server via Command Line?
Replies: 3
Views: 6828

Re: FTP Client / Server via Command Line?

apt-get install proftpd-basic ncftp

proftpd for the sever and ncftpget/ncftpput to automate transfers
by Bencom
Mon Sep 10, 2012 1:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: New circuit design - home alarm system
Replies: 12
Views: 6578

Re: New circuit design - home alarm system

Greetings I use different methods for switches and relays. If you do not want to use the i2c bus use ports 0 1 and another one (There is another port pin with a pull up but can't remember). Then any (NO) switch or push button to ground through a 560ohm resistor is enough to register a low level (Pos...
by Bencom
Sun Sep 09, 2012 8:48 pm
Forum: Automation, sensing and robotics
Topic: How can you use a pi to controlled a mains switch
Replies: 32
Views: 21718

Re: How can you use a picture to controlled a mains switch

Much nicer to say, "I made this".
Take the precautions. Do not power it up without putting it in a box.
Of course your countries laws may come into play.
Here we can for personal use in our own home I am pretty sure.
by Bencom
Sun Sep 09, 2012 10:28 am
Forum: Automation, sensing and robotics
Topic: How can you use a pi to controlled a mains switch
Replies: 32
Views: 21718

Re: How can you use a picture to controlled a mains switch

I use relays like this on the RPI... http://arduino-direct.com/sunshop/index.php?l=product_detail&p=181 I am using a 4 relay unit for development at the moment. Search out the gpio package on the wiki, build and install. All is needed is to set the port pin to output to turn on relays and set back t...
by Bencom
Sun Sep 09, 2012 1:22 am
Forum: Beginners
Topic: RPi Will Not Boot Up
Replies: 8
Views: 4572

Re: RPi Will Not Boot Up

Command 13 (SD_CMD_SEND_STATUS) is used to verify the cards status during writes.
My guess is your SD card is the problem.

Go to advanced search