3d cam with mobile phone as viewfinder and controller

Share your projects and ideas with the community!
Post Reply
stereomii
Posts: 6
Joined: Mon May 13, 2019 3:11 pm
Location: Apeldoorn, The Netherlands
Contact:

3d cam with mobile phone as viewfinder and controller

Post by stereomii » Mon May 13, 2019 8:39 pm

I am an ethousiastic 3D Photographer and Cineast. I own a Fuji W3 stereocamera with which I made lots of picures and video's. Since it became clear that Fuji dropped 3D I searched for alternatives. StereoPi seems promising. The more because I own several Raspberry Pi's and use them as home server, camera server (with "motion" package) and energy monitor.
Last week I received my StereoPi DeLuxe kit. The supplied SLP image looks like a good starting point to realise my first objectives for a setup to enable the following:
1. Have a robust portable 3D camera
2. Use my mobile phone as viewvinder and controller
The first objective can be reached with a 3D-printed case (found on the wiki) and a suitable powerbank to run theb system from. I found an 8000 mAh bank that can deliver 2.4 A. This can provide over 10 Hours of power for the system (as the system mostly uses 700 to 800 mA).
Out of the box I can use my phone via the webinterface to view the images from the cameras and to turn recording on and off via the settings. I will try to find a way to provide an extra button and indicator to start/stop recording (help most appreciated).

I prepared a 16Gb SD-card with the SLP image, extended partition 2 with an extra 2 Gb to be able to install extra software if needed, and added a third FAT32 partition to store recordings.
My Samsung S8 is able to tether its WiFi connection so I use its hotspot to connect the StereoPi's WiFi. I also can use my laptop to connect to this hotspot. The SLP image has cifs installed so I am also able to connect a shared folder on my laptop to the StereoPi. This comes in handy for transferring recordings from StereoPi to laptop.

Upon boot the SLP image reformats the FAT32 partition and deletes all recordings. To avoid this I had to comment out a statement in (/etc/rc-local, 20190514 correction) /opt/StereoPi/run.sh .

* SSH into the StereoPi
* remount / as read/write

Code: Select all

	root>mount -o rw,remount /
* start mc and navigate to /opt/StereoPi
(this is also a good opportunity to set mc options as "use internal editor" and "always pause after a command" and save them since the root filesystem is read/write now)
* navigate to run.sh and (F4 or esc followed by 4) open it for editing
* find the next lines:

Code: Select all

	if [ "$?" != "0" ]; then
		echo "Record partion not found"
		echo "Creating new FAT32 partition"
		sudo echo -e "n\np\n3\n3932160\n\nt\n3\nc\nw\n" | fdisk /dev/mmcblk0
		reboot
	else
		sudo mkfs.vfat -F 32 /dev/mmcblk0p3 > /dev/null 2>&1
		sudo mount /dev/mmcblk0p3 /media > /dev/null 2>&1
	fi
comment-out the line after "else" so it reads:

Code: Select all

	#	sudo mkfs.vfat -F 32 /dev/mmcblk0p3 > /dev/null 2>&1
* Maybe it is a good idea to also create some folders under /mnt to mount a (cifs) shared folder under /mnt, fe:

Code: Select all

	mkdir /mnt/laptop
	mkdir /mnt/<any other mountpoint you might need>
* remount the root filesystem as read-only again

Code: Select all

	root>mount -o ro,remount /
(or simply reboot the StereoPi: root>reboot)

If you want to mount a folder on your Windows laptop you first have to define a folder as "full control" for Everybody, then:

Code: Select all

	mount -t cifs -o username=<user> //192.168.43.130/stereopi /mnt/laptop
(<user> : windows user name
192.168.43.130 : your laptops ip address
stereopi : the name of your shared folder)
Now you can use mc to easily transfer your recordings to your laptop
Last edited by stereomii on Tue May 14, 2019 12:22 pm, edited 1 time in total.

User avatar
Realizator
Site Admin
Posts: 67
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: 3d cam with mobile phone as viewfinder and controller

Post by Realizator » Mon May 13, 2019 9:34 pm

stereomii wrote:
Mon May 13, 2019 8:39 pm
Upon boot the SLP image reformats the FAT32 partition and deletes all recordings. To avoid this I had to comment out a statement in /etc/rc-local.
Hmmm... Before formatting, system checks if it is any FAT32 partition, and should not format or delete anything if partition exists. Our setups has a hundreds of reboots and all recordings are safe. May be your fixed partition size or other changed settings affects on this behavior.

As for start-stop buttons and phone-controlled 3D camera, I planned to do next article in our "The Art Of Stereoscopic Photo" series right with this purpose. :D
Eugene a.k.a. Realizator

Mr-Qu33f
Posts: 7
Joined: Mon Apr 29, 2019 12:52 pm

Re: 3d cam with mobile phone as viewfinder and controller

Post by Mr-Qu33f » Tue May 14, 2019 8:57 am

FYI, I found this powerbank which is also a wirless router and very small!
https://www.amazon.co.uk/HooToo-Wireles ... B00VBAE5Y0

its 10,400mah and highly portable. I use it when I'm travelling and have found it perfect for mobile stereopi applications

stereomii
Posts: 6
Joined: Mon May 13, 2019 3:11 pm
Location: Apeldoorn, The Netherlands
Contact:

Re: 3d cam with mobile phone as viewfinder and controller

Post by stereomii » Tue May 14, 2019 12:32 pm

Realizator wrote:
Mon May 13, 2019 9:34 pm
As for start-stop buttons and phone-controlled 3D camera, I planned to do next article in our "The Art Of Stereoscopic Photo" series right with this purpose. :D
:D Excellent :!:

Post Reply