Andrei IRL
Senior Member
I have completed putting together a program for my strain gauge and all looks to be working perfect.
However, as soon as i unplug the programming cable the "FIRE" routine is behaving differently.
So when ADC reading is above or below preset value the program goes to FIRE routine.
In the fire routine, two relays are triggered and one LED is turned off.
There is a waitqs routinize within fire routine that loops on itself unless strain gauge reading is back to resting position.
I have a little calculation going before and after waitqs which makes sure there is no double triggering is happening unless the adc gets closer to strain gauge resting value.
I have the whole thing built on PICAXE08 Proto board with programming 3.5mm headphone socket and resistors for programming circuit.
So if i leave the USB programing cable pluged into the board then the program runs perfectly asexpected.
However, if i run the program with the programing cable disconnected then my relays flicker on and off as the ADC reading gets near the pre-set values.
However, as soon as i unplug the programming cable the "FIRE" routine is behaving differently.
So when ADC reading is above or below preset value the program goes to FIRE routine.
In the fire routine, two relays are triggered and one LED is turned off.
There is a waitqs routinize within fire routine that loops on itself unless strain gauge reading is back to resting position.
I have a little calculation going before and after waitqs which makes sure there is no double triggering is happening unless the adc gets closer to strain gauge resting value.
I have the whole thing built on PICAXE08 Proto board with programming 3.5mm headphone socket and resistors for programming circuit.
So if i leave the USB programing cable pluged into the board then the program runs perfectly asexpected.
However, if i run the program with the programing cable disconnected then my relays flicker on and off as the ADC reading gets near the pre-set values.
Last edited: