How to use interrupt for arduino to initialize GPS shield

Hi

I am fairly new to the arduino and therefore any advice will be greatly appreciated.

I am looking to use the interrupt function to act as a trigger to a GPS data logging shield.

The trigger will be initialized from the a input to the analogue pins and from there switch the gps shield on to then log a location.

Essentially I want to use the logic 1 and 0 for the analogue pins as a trigger to log a gps location.

So if logic 1 - log gps data. If logic 0 then keep running.

Any suggestions to how I would be able to do this ?

Thanks

Tom

Any suggestions to how I would be able to do this ?

Don't use an interrupt.
Just read the trigger input (why an analogue pin ?) and when it becomes HIGH read the GPS data and log what you want. Keep reading the GPS data at all times but only look at it when it is needed.

thanks for the reply,

I need to use the analogue pins as the trigger is a result of a voltage being over a certain threshold.

i.e if the above 1.1V log gps location with a time stamp.

I had looked at a similar tutorial for a comparator with a microphone - where the frequency peak provided a voltage of a certain value.

It is for that reason that I was looking at using an interrupt.

I need the GPS to be triggered and create a gps stamp when a voltage of above 'ref voltage' is inserted into the analogue pins of the uno.

what do you suggest ?

I am pretty new to all of this, but thanks again for the reply.

Thanks

Tom

Currently I am using a signal generator to represent the voltage which will be inputted to the arduino and with that being frequency based, I can have it at 2 pulses a second to prove the concept and to make use of the arduino.

However for its actual desired use, the frequency is nano seconds and therefore I don't think that the arduino has the power to register that.

I need to just be able to receive a voltage of above 1.1V and then from there log it with the GPS shield.

The tutorial i was using was :