write() - Sets the servo angle in degrees. (invalid angle that is valid as pulse in microseconds is treated as microseconds) writeMicroseconds() - Sets the servo pulse width in microseconds read() - Gets the last written servo pulse width as an angle between 0 and 180. readMicroseconds() - Gets the last written servo pulse width in microseconds. (was read_us() in first release) attached() - Returns true if there is a servo attached. detach() - Stops an attached servos from pulsing its i/o pin.

Channel[timer]++; // increment to the next channel if( SERVO_INDEX(timer,Channel[timer]) < ServoCount && Channel[timer] < SERVOS_PER_TIMER) { *OCRnA = *TCNTn + SERVO(timer,Channel[timer]).ticks; if(SERVO(timer,Channel[timer]).Pin.isActive == true) // check if activated digitalWrite( SERVO(timer,Channel[timer]).Pin.nbr,HIGH); // its an active channel so pulse it high } else { // finished all channels so wait for the refresh period to expire before starting over if( (unsigned)*TCNTn < (usToTicks(REFRESH_INTERVAL) + 4) ) // allow a few ticks to ensure the next OCR1A not missed *OCRnA = (unsigned int)usToTicks(REFRESH_INTERVAL); else *OCRnA = *TCNTn + 4; // at least REFRESH_INTERVAL has elapsed Channel[timer] = -1; // this will get incremented at the end of the refresh period to start again at the first channel }}

On the subject of which, are the components you plan to use, eg the Arduino and the servo, safe for use (either intrinsically or by flash-proofing) in hazardous areas? Or will they be outside the hazardous area?

On the subject of which, are the components you plan to use, eg the Arduino and the servo, safe for use (either intrinsically or by flash-proofing) in hazardous areas? Or will they be outside the hazardous area?

Sorry for the delay.

As per any hazardous area installation, as many of the components and circuitry as possible will be installed in an adjacent safe area. So the Arduino itself will be outside and a zener barrier will be utilised along with appropriate cable and glands. Inside will be an oxygen meter and ventilation fan - these won't be in this model though, unless i find the time and motivation (and knowledge) to include them!