Go to advanced search

by Lomax
Fri Feb 10, 2017 12:32 am
Forum: Raspbian
Topic: libav-tools depends on X11!?
Replies: 2
Views: 1251

libav-tools depends on X11!?

I'm trying to set up a Pi 2 with a Pi camera (OV5647 based) to stream video over the network. The Pi is headless, and I want to keep things as trimmed as humanly possible. I was disappointed to see that libav-tools pulls in X11 and a lot of other cruft: $ sudo apt-get install libav-tools libasyncns0...
by Lomax
Thu Feb 09, 2017 11:58 pm
Forum: Camera board
Topic: Best way to stream live video?
Replies: 7
Views: 14857

Re: Best way to stream live video?

What about using OpenMAX to convert to MP4 in hardware? Allegedly this is possible using avconv, but I only got my first Pi camera today so I'm still very much trying to figure things out. CPU/GPU and bandwidth usage are my main concerns; resolution is not very important, nor is latency.
by Lomax
Thu Feb 09, 2017 4:30 pm
Forum: General discussion
Topic: Who are linux-projects.org?
Replies: 7
Views: 1291

Re: Who are linux-projects.org?

jamesh wrote:The RPF do supply their own V4L2 driver....
Do tell us more!
by Lomax
Thu Feb 09, 2017 4:26 pm
Forum: General discussion
Topic: Who are linux-projects.org?
Replies: 7
Views: 1291

Re: Who are linux-projects.org?

I agree. Trusting random websites Apt key and sources is a really bad idea. Indeed. Yet I frequently find tutorials and instructions telling people to do this, without even a hint of a warning about the security implications. It seems most people don't understand the consequences of having a compro...
by Lomax
Thu Feb 09, 2017 3:19 pm
Forum: General discussion
Topic: Who are linux-projects.org?
Replies: 7
Views: 1291

Who are linux-projects.org?

I just got my first dedicated Raspberry Pi camera, and wanted to try streaming video from a Pi 2B to my desktop. After reading up a bit on how people do this, it seems the UV4L driver is the way to go. But this would require me to trust their Apt key and/or their code - something I never do based me...
by Lomax
Thu Feb 09, 2017 6:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CSI FPC DIP15 to round cable
Replies: 3
Views: 1826

CSI FPC DIP15 to round cable

I'm trying to design and build an as small as possible enclosure for a RasPi camera board, and I was planning to use these HDMI adapter boards to extend the cable. But having modeled the layout it's clear that significant space saving could be achieved if rather than going to an HDMI socket the FPC ...
by Lomax
Tue Feb 07, 2017 6:34 pm
Forum: Camera board
Topic: Camera tilt solenoid
Replies: 20
Views: 4120

Re: Camera tilt solenoid

Sorry but that won't be possible. The NOIR camera is not a thermal camera. Doh! I actually knew all that - not sure what I was thinking... :) Following the principle of the pan-tilt kit, you could mount the servo by it's horn and attach the camera board to the servo body. That gives you motorised h...
by Lomax
Tue Feb 07, 2017 5:07 pm
Forum: Camera board
Topic: Camera tilt solenoid
Replies: 20
Views: 4120

Re: Camera tilt solenoid

Thanks guys, some really great tips there! I have been thinking about the tiny "spy camera", but I know nothing about its optical properties, other than the resolution (which is high enough). One of the benefits of the Waveshare IR-Cut camera is that it takes standard M12 lenses - in fact I've alrea...
by Lomax
Mon Feb 06, 2017 6:40 pm
Forum: Camera board
Topic: Camera tilt solenoid
Replies: 20
Views: 4120

Re: Camera tilt solenoid

I have just ordered one of the Waveshare "RPi IR-Cut" cameras, and will try to cobble something together. Will be interesting just to see how it performs in day/night conditions, and easier to come up with design for the housing and tilt platform with the actual device to hand.
by Lomax
Mon Feb 06, 2017 6:07 pm
Forum: Camera board
Topic: Camera tilt solenoid
Replies: 20
Views: 4120

Re: Camera tilt solenoid

It could be mechanically simple. Just a pivot one end and a wire push-rod the other. Another benefit of servos is you can get smoother motion, less shock to the camera and chassis. If you are thinking of pan and tilt something like this might suit: Thanks, that's very cool - but also yuuuge! There'...
by Lomax
Mon Feb 06, 2017 5:09 pm
Forum: Camera board
Topic: Camera tilt solenoid
Replies: 20
Views: 4120

Re: Camera tilt solenoid

One thing that is quite appealing with using servo(s) is that it might be possible to build a camera which can rotate around the Z axis as well, allowing me too look "backwards" (or "aftwards" as it were) as well. The current plan is to have two cameras up the mast to achieve this; a single one whic...
by Lomax
Mon Feb 06, 2017 5:00 pm
Forum: Camera board
Topic: Camera tilt solenoid
Replies: 20
Views: 4120

Re: Camera tilt solenoid

I'm sure you could do this with a single 9g servo, which is tiny and also requires only one pin to control and it can be driven directly from any GPIO pin, which you can't do with a solenoid. Golly, that's a tiny servo! Thanks for the tip! That said, a solenoid could be even smaller still :) I don'...
by Lomax
Mon Feb 06, 2017 4:07 pm
Forum: Camera board
Topic: Camera tilt solenoid
Replies: 20
Views: 4120

Re: Camera tilt solenoid

Do you really only want two angles-of-view, or did you actually want more, but chose two angles because you would have been happy with that? Many thanks for your reply! I only really want two angles; I've done some testing in Blender - a brilliant tool for this kind of thing since it allows you to ...
by Lomax
Sat Feb 04, 2017 7:24 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Hardware PWM CPU usage (for fan control)
Replies: 11
Views: 4174

Re: Hardware PWM CPU usage

I'll answer that myself - it's dead easy using systemd: create a file "fancontrol.service" in /etc/systemd/system , with the contents [Unit] After=multi-user.target [Service] ExecStart=/usr/local/bin/fancontrol.sh [Install] WantedBy=default.target Make it executable with chmod u+x /etc/systemd/syste...
by Lomax
Sat Feb 04, 2017 3:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Hardware PWM CPU usage (for fan control)
Replies: 11
Views: 4174

Re: Hardware PWM CPU usage

So, I think my hardware PWM fan control script is basically done (feedback is very welcome!). But how do I turn it into a system daemon? That is, what do I need to do to be able to start/stop/reload it from an init.d script? Ideally, I would like this to appear in ps as "fancontrol", and be able to ...
by Lomax
Sat Feb 04, 2017 3:57 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Hardware PWM CPU usage (for fan control)
Replies: 11
Views: 4174

Re: Hardware PWM CPU usage

Thanks, yes I have. I really want something ultra light-weight though - I think a simple bash script that's triggered at an interval will do. Here's my take on a fancontrol.sh bash script: #!/bin/bash dev_temp=/sys/class/thermal/thermal_zone0/temp dev_pwm=/sys/class/pwm/pwmchip0/pwm0 dev_enable=$dev...
by Lomax
Sat Feb 04, 2017 2:21 am
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

Change the bind address to 0.0.0.0 and it's not tied to any interface or any network. Thanks, that's a useful tip, especially since I keep moving this Pi between two different networks. GPS UDP transfers have been working uninterrupted for many hours now, and I've set up the NTP daemon to set syste...
by Lomax
Fri Feb 03, 2017 4:52 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

Another note: You should set GPSD to listen to the public IP address of the machine - 127.0.0.1 does not work, at least it didn't for me. Changing it to the 192.nnn.nnn.nnn address it has on my local network fixed it and I am now (finally) receiving UPD NMEA datagrams with GPSD!
by Lomax
Fri Feb 03, 2017 4:16 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

For the benefit of anyone else stumbling upon this; you can monitor gpsd by watching syslog, after enabling debug output by editing /etc/default/gpsd and setting GPSD_OPTIONS="-D5" (and restarting gpsd).
by Lomax
Fri Feb 03, 2017 3:39 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

Please try: - gpsd -D5 -n -F /var/run/gpsd.sock udp://127.0.0.1:10110 N.B. Not using the upper case 'N' Oh wow, that did the trick! I had been running it with -N (and -D) in order to see what's going on. Odd that daemonising solves the issue - but I'm not going to complain; just happy it works at a...
by Lomax
Fri Feb 03, 2017 3:15 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

The daemon will open a socket listening for UDP datagrams arriving on the indicated address and port
This is the bit that's really driving me up the wall, because GPSD clearly does no such thing. :(
by Lomax
Fri Feb 03, 2017 2:58 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

In that case, thank you. So do I. And if you had looked at the manual you'd know that -S Set TCP/IP port on which to listen for GPSD clients (default is 2947). Further more, you'd have seen that Arguments are interpreted as the names of data sources. Normally, a data source is the device pathname of...
by Lomax
Fri Feb 03, 2017 2:51 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

Read the man page. http://www.catb.org/gpsd/gpsd.html man gpsd sudo gpsd -S 10110 ... Is that you being snarky, or just trying to help? Always so hard to tell on the internet... It does sting a little that you'd think I'd post here asking for help without first trying to help myself . I assure you,...
by Lomax
Fri Feb 03, 2017 2:40 pm
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Re: Trouble getting GPSD to listen on UDP port 10110

# gpsd -D5 -N -F /var/run/gpsd.sock udp://127.0.0.1:10110 gpsd:PROG: control socket opened at /var/run/gpsd.sock gpsd:INFO: launching (Version 3.11) gpsd:IO: opening IPv4 socket gpsd:IO: opening IPv6 socket gpsd:INFO: listening on port gpsd gpsd:PROG: NTPD shmat(0,0,0) succeeded, segment 0 gpsd:PRO...
by Lomax
Fri Feb 03, 2017 5:34 am
Forum: Automation, sensing and robotics
Topic: Trouble getting GPSD to listen on UDP port 10110
Replies: 13
Views: 3629

Trouble getting GPSD to listen on UDP port 10110

Hi all, I've got a GPS device on my network which is sending NMEA reports on UPD port 10110 to a Raspberry Pi. The Pi is running GPSD, and I'm struggling to get it to pick up the messages. I start GPSD manually (background daemon stopped) with: sudo gpsd -D2 -N -F /var/run/gpsd.sock udp://127.0.0.1:...

Go to advanced search