GREAT BARRINGTON — A police officer charged with drunken driving on the Massachusetts Turnpike last month has resigned.

Great Barrington Police Chief William Walsh said Wednesday that Officer Daniel Bartini, 26, submitted a letter of resignation, effective May 21.

After his April 27 arrest, Bartini was charged in Southern Berkshire District Court with one count of operating a motor vehicle while under the influence of alcohol.

He was released on his own recognizance and pleaded not guilty to the charges at his May 20 arraignment, which had been delayed because he had entered rehabilitation immediately following the incident.

Bartini, who was off-duty, was headed west on the turnpike at 5:40 p.m. when he was pulled over by a Massachusetts State Police trooper in Otis, according to the arrest report.

The trooper's report said Bartini refused to take a Breathalyzer and failed a field sobriety test. He also refused to produce his license and registration, the report says.

The incident report also says that drivers had called state police about a speeding blue pickup moving erratically and nearly colliding with their vehicles.

Judge Paul Vrabel set Bartini's first pretrial court date for June 27.

Bartini has been stopped before for allegedly driving drunk.

In 2016, a Sheffield police officer pulled Bartini over for driving erratically and said that Bartini and his passenger appeared intoxicated.

On that occasion, Bartini was not subjected to tests or issued a citation, and police allowed the pair to be picked up by another Great Barrington police officer and driven home. The incident sparked an investigation by the town of Sheffield into police procedure.

The Eagle has requested the disciplinary report from this earlier incident, and Town Manager Jennifer Tabakin said that she consulting with the town's attorney to determine what parts of the report can be released.

Bartini could not be reached for comment.

Heather Bellow can be reached at hbellow@berkshireeagle.com or on Twitter @BE_hbellow and 413-329-6871.