rallymatt
Posts: 1
Joined: Mon Feb 09, 2015 4:20 pm

Looking to hire for a simple development

Mon Feb 09, 2015 4:24 pm

Hello All,

I'm looking for a simple program I can run on a Raspberry PI (or Arduino) for an imaging project. I'm pretty comfortable with the hardware, but I'm not a developer.

Basically, I need something that runs a small GUI and asks for a time offset. I'd enter the time in a fraction of a second (like 1/30th) and then hit go and the program would close all the GPIO pins sequentially on a Raspberry Pi B+ based on that time. This is for triggering cameras. When each GPIO connection is closed, it will be wired to a camera remote, that will fire the camera. So all 36 or so cameras will go down the line firing 1/30th of a second apart (or more, or less).

I can do the hardware easily. But not the software. Anyone here that could accomplish that for me? I'm happy to pay for it.

Thanks,

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Looking to hire for a simple development

Mon Feb 09, 2015 6:49 pm

no need for a GUI, just put this in a file (gpio_sequence.sh) and run it (bash gpio_sequence.sh)

Code: Select all

pinprep() {
	N=$1
	if [ ! -d /sys/class/gpio/gpio$N ] ; then
		echo "$N" > /sys/class/gpio/export
	fi
	echo "out" > /sys/class/gpio/gpio$N/direction
}
pinon() {
	N=$1
	echo "1" > /sys/class/gpio/gpio$N/value
}
pinoff() {
	N=$1
	echo "0" > /sys/class/gpio/gpio$N/value
}
pinclose() {
	N=$1
	echo "$N" > /sys/class/gpio/unexport
}
for N in {1..17} ; do
	pinprep $N
done
clear;
echo "pins 1 to 17 ready, enter time e.g.:0.3 then press enter"
read TIME
#if lag#TIME=$(echo "scale=3;$TIME-0.01" |bc)
F=$(date +%s)
for N in {1..17} ; do
	pinon $N
	sleep $TIME
done
T=$[$(date +%s)-$F]
echo "done in $T s"
for N in {1..17} ; do
	pinclose $N
done
If the timing is not accurate enough look into linux real time.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

User avatar
iinnovations
Posts: 621
Joined: Thu Jun 06, 2013 5:17 pm

Re: Looking to hire for a simple development

Mon Feb 09, 2015 7:15 pm

He asked for a GUI.
CuPID Controls :: Open Source browser-based sensor and device control
interfaceinnovations.org/cupidcontrols.html
cupidcontrols.com

User avatar
DougieLawson
Posts: 39837
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Looking to hire for a simple development

Mon Feb 09, 2015 7:52 pm

rallymatt wrote: I can do the hardware easily. But not the software. Anyone here that could accomplish that for me? I'm happy to pay for it.
You've got a private message.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Return to “General discussion”