Go to advanced search

by Chris_J
Thu Apr 13, 2017 9:22 am
Forum: Graphics, sound and multimedia
Topic: Camera Module creating 0 bytes file
Replies: 5
Views: 949

Re: Camera Module creating 0 bytes file

It looks like my issue has been solved by reducing the potentiometers on the PIR, rather than anything to do with the code.

After testing for a 12 hour period in the field, the video files are being created properly.

Chris
by Chris_J
Wed Apr 12, 2017 8:27 am
Forum: Graphics, sound and multimedia
Topic: Camera Module creating 0 bytes file
Replies: 5
Views: 949

Re: Camera Module creating 0 bytes file

I'm still witnessing the problem above. Below I've posted my entire program. Could it be something to do with the fact that the PIR is always being polled? Would it be better to use a GPIO interrupt? I'm not overly familiar with this so tell me if I'm talking nonsense! If I understand it correctly, ...
by Chris_J
Mon Mar 20, 2017 6:57 pm
Forum: Graphics, sound and multimedia
Topic: Camera Module creating 0 bytes file
Replies: 5
Views: 949

Re: Camera Module creating 0 bytes file

The camera works as expected when running raspivid and raspistill, recording the media to files with more than 1 byte.

When left running for a long time, would there be any reason the camera wouldn't record properly?

Thanks,

Chris
by Chris_J
Sun Mar 19, 2017 9:59 am
Forum: Graphics, sound and multimedia
Topic: Camera Module creating 0 bytes file
Replies: 5
Views: 949

Re: Camera Module creating 0 bytes file

I'll test raspistill and raspivid soon. Otherwise the storage devices are not full.
by Chris_J
Fri Mar 17, 2017 1:53 pm
Forum: Graphics, sound and multimedia
Topic: Camera Module creating 0 bytes file
Replies: 5
Views: 949

Camera Module creating 0 bytes file

I have been working on a motion sensitive camera using the camera module, a PIR and some python to program it all. It's a pretty simple setup where after recording the video, the file is saved to a USB drive or the SD card if no drive is present. There are no IR LEDs or anything like that present ju...
by Chris_J
Sat Oct 01, 2016 1:05 pm
Forum: Beginners
Topic: Auto mounting a USB drive on Raspberry Pi Zero
Replies: 8
Views: 1405

Re: Auto mounting a USB drive on Raspberry Pi Zero

I've been playing with this for a while now and still can't seem to get the USB drive to auto mount. Just to re-iterate, I'm using a Raspberry Pi Zero. I've updated and upgraded to the latest packages. I'm connecting the USB drive to the Pi using one of these adapters: https://www.amazon.co.uk/Start...
by Chris_J
Thu Sep 29, 2016 8:45 am
Forum: Beginners
Topic: Auto mounting a USB drive on Raspberry Pi Zero
Replies: 8
Views: 1405

Re: Auto mounting a USB drive on Raspberry Pi Zero

If you have a B+, you can also run the blkid command there (with the USB drive attached, of course). Does the UUID I find from doing this remain the same when it's plugged into all devices? For some reason I thought it might change? If that fails, I'll try what's been suggested and write the result...
by Chris_J
Wed Sep 28, 2016 6:36 pm
Forum: Beginners
Topic: Auto mounting a USB drive on Raspberry Pi Zero
Replies: 8
Views: 1405

Re: Auto mounting a USB drive on Raspberry Pi Zero

Thanks Dougie, I'll just have to be patient and wait until I can connect via hdmi.
by Chris_J
Wed Sep 28, 2016 2:39 pm
Forum: Beginners
Topic: Auto mounting a USB drive on Raspberry Pi Zero
Replies: 8
Views: 1405

Auto mounting a USB drive on Raspberry Pi Zero

I'm trying to auto mount a USB stick on a Raspberry Pi Zero but have the circular problem in that when I access the pi over SSH using a WiFi dongle, I'm using the only USB port and therefore can't attach the USB stick to find out its UUID etc. I don't have an HDMI cable (it's on order) to access the...
by Chris_J
Sun Sep 25, 2016 8:58 am
Forum: Python
Topic: Running a bash command from python with arguments
Replies: 5
Views: 1528

Re: Running a bash command from python with arguments

Thank you all to your quick replies. timestamp = datetime.now().strftime('%d-%m-%y_%H-%M-%S') # I've removed colons and spaces input_video = "/home/pi/video.h264" output_video = "/home/pi/videos/{}.mp4".format(timestamp) call(["MP4Box", "-add", input_video, output_video]) This helped a lot. I didn't...
by Chris_J
Sat Sep 24, 2016 10:26 pm
Forum: Python
Topic: Running a bash command from python with arguments
Replies: 5
Views: 1528

Running a bash command from python with arguments

I'm running a Python program that creates a video file and saves it to a location. After the file has been saved, I'd then like to run a bash command that converts the video from a h264 file to an mp4. At the same time, I'd like to give the mp4 file a name that contains a timestamp but I can't figur...
by Chris_J
Tue Sep 06, 2016 7:18 am
Forum: Troubleshooting
Topic: Ethernet stops working on B+ after using SD card with RPi Ze
Replies: 4
Views: 661

Re: Ethernet stops working on B+ after using SD card with RP

Hi Dougie, Thanks for your comment. To the best of my knowledge, I haven't changed anything in either of these two files (or any other files related to networking). Are these files altered at all when running apt-get update ? I purposefully didn't run apt-get upgrade in case this was the culprit. Th...
by Chris_J
Mon Sep 05, 2016 7:13 pm
Forum: Troubleshooting
Topic: Ethernet stops working on B+ after using SD card with RPi Ze
Replies: 4
Views: 661

Re: Ethernet stops working on B+ after using SD card with RP

Been struggling with this for a while now.

As part of the set up for the Pi Zero, I've run the following commands:

sudo apt-get install python3 python3-dev git i2c-tools python3-pip
sudo pip3 install gpiozero picamera RPi.GPIO spidev

Would this render the ethernet port inoperable for the B+?
by Chris_J
Mon Sep 05, 2016 12:12 pm
Forum: Troubleshooting
Topic: pi 2b can't get to google but put sd card in pi3 and it can
Replies: 8
Views: 1133

Re: pi 2b can't get to google but put sd card in pi3 and it

Hi Paul, I've come across an issue that sounds very similar. I've been working on a B+ and installed Jessie Lite, did a bit of programming etc, without problem. I take the SD card out and put it into a Pi Zero (but don't connect to it at all). Then I re-insert the SD from the Pi Zero back into the B...
by Chris_J
Sun Sep 04, 2016 1:05 pm
Forum: Troubleshooting
Topic: Ethernet stops working on B+ after using SD card with RPi Ze
Replies: 4
Views: 661

Ethernet stops working on B+ after using SD card with RPi Ze

I have this weird issue where I cannot connect via ethernet to my RPi B+ after using the same SD card in my RPi Zero. I have a B+ using an SD card on which I have installed Jessie Lite. I've access this via SSH through my network over the ethernet port without issue. I updated the packages etc, expa...
by Chris_J
Wed Apr 13, 2016 8:37 am
Forum: Automation, sensing and robotics
Topic: Motion dectection power consumption: PIR vs software
Replies: 2
Views: 674

Re: Motion dectection power consumption: PIR vs software

Hi Moe,

Thanks for confirming. I expected as much but wasn't certain.

I know that commercial camera traps can run on 8 AAs for weeks just idling so I knew there must be a way to have something similar for a RPi given a decent battery.

Thanks,

Chris
by Chris_J
Mon Apr 11, 2016 1:58 pm
Forum: Automation, sensing and robotics
Topic: Magic Mirror
Replies: 2
Views: 978

Re: Magic Mirror

I used an A+ for this project. The single USB port was used attach a WiFi dongle that connected to the network to served the webpage (that had all the information shown for the mirror).
by Chris_J
Mon Apr 11, 2016 1:22 pm
Forum: Automation, sensing and robotics
Topic: Motion dectection power consumption: PIR vs software
Replies: 2
Views: 674

Motion dectection power consumption: PIR vs software

I'm making a wildlife camera (not a new project by any means) and because of the remote location, it needs to operate using batteries. The whole project will be very simple. Just a RPi with a camera board that writes images/movies to a USB or the SD card. In order to get the most out of the batterie...
by Chris_J
Thu Sep 24, 2015 6:20 pm
Forum: General discussion
Topic: Power cable splitting
Replies: 25
Views: 4427

Re: Power cable splitting

Thanks for your comments. I have studied some basic electronics recently but really wanted to find out more about the technique of splitting cables. It may be possible that I can use the normal power supplies for each device and plug them both into a 2 gang extension lead thus having only one plug a...
by Chris_J
Thu Sep 24, 2015 2:41 pm
Forum: General discussion
Topic: Power cable splitting
Replies: 25
Views: 4427

Re: Power cable splitting

No, unfortunately not.

Yea, I'm aware of the potential hazards for messing around with power supplies hence asking whether or not it was practical :?

I'm guessing it isn't practical but if you don't ask, you don't know.
by Chris_J
Thu Sep 24, 2015 2:18 pm
Forum: General discussion
Topic: Power cable splitting
Replies: 25
Views: 4427

Re: Power cable splitting

This is what I pulled from the monitor spec.

Power:
Input Voltage: 120 V AC - 230 V AC
Operating Consumption: 18.10W
Standby: 450mW
Off: 350mW
by Chris_J
Thu Sep 24, 2015 1:55 pm
Forum: General discussion
Topic: Power cable splitting
Replies: 25
Views: 4427

Re: Power cable splitting

No, I'm a novice where this is concerned.

The point of getting the voltage is to see if it will supply enough to power both devices?
by Chris_J
Thu Sep 24, 2015 1:51 pm
Forum: General discussion
Topic: Power cable splitting
Replies: 25
Views: 4427

Re: Power cable splitting

The complicating factor is that the Pi doesn't just need a power cable, it needs a power supply. Thanks for the quick reply. Perhaps I'm mistaken or I've not explained myself as well as I could have done. I'd like to know if it's possible to take a normal monitor power cable and split it to add a m...
by Chris_J
Thu Sep 24, 2015 1:29 pm
Forum: General discussion
Topic: Power cable splitting
Replies: 25
Views: 4427

Power cable splitting

I'm building a project using a Raspberry Pi outputting its display to a monitor via HDMI. Straightforward enough. Rather than having a power cable for both the monitor and RPi, it would be really convenient if I could power both devices using one power cable. Is it possible (and practical) to split ...
by Chris_J
Wed Apr 01, 2015 8:24 am
Forum: Automation, sensing and robotics
Topic: 2 axis joystick input for servos
Replies: 3
Views: 1638

Re: 2 axis joystick input for servos

Thanks for the response Rich, I've managed to get set up with an MCP3008 as described in the blog you posted. I managed to find it not long after posting this question so one way or another, I would have got there. Being a novice, I'm glad this was available because it gives me a good little introdu...

Go to advanced search