Page 1 of 1

Looking to hire for a simple development

Posted: Mon Feb 09, 2015 4:24 pm
by rallymatt
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,

Re: Looking to hire for a simple development

Posted: Mon Feb 09, 2015 6:49 pm
by elatllat
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.

Re: Looking to hire for a simple development

Posted: Mon Feb 09, 2015 7:15 pm
by iinnovations
He asked for a GUI.

Re: Looking to hire for a simple development

Posted: Mon Feb 09, 2015 7:52 pm
by DougieLawson
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.