CLINTON >> A local man who made headlines last year after he built a gun-firing drone and posted a video of it online has been arrested on felony charges of enticing a minor with a computer, attempt to commit fourth-degree sexual assault, risk of injury and possession of child pornography.

Austin Grant Haughwout, 19, of Egypt Lane, was served with an arrest warrant in Superior Court in Middletown Wednesday afternoon that police obtained after a lengthy investigation, Clinton police said in a release. The arrest warrant has been sealed by the court.

Bond was set at $35,000 cash only and he is due to appear back in Middletown court Friday.

Haughwout has three pending cases in Middletown court charging him with interfering, assaulting a police officer, disobeying an officer’s signal, criminal trespass and misuse of the 911 system. He is set to appear in court in those cases July 14.

Haughwout was arrested last July by Clinton police after he allegedly assaulted two officers. He had been asked to surrender on a warrant stemming from another incident on July 19, 2014, when police had tried to stop and question him and he allegedly sped away.

Officers were told to let Haughwout go in fear that he would ram a police cruiser, strike an officer or engage in a pursuit and put the public in danger, according to a warrant in that case.

When he came to the station to turn himself in, he had a GoPro camera with him. Haughwout later said online that he went to his car to return the GoPro, “at which point I was thrown to the ground and had my head bashed against the wall and floor until I vomited and passed out. I woke up 45 minutes later in the hospital stripped naked.” He also posted video from the police station.

Police say Haughwout refused to obey an officer’s commands, and when he attempted to leave the station, they attempted to arrest him and a physical altercation ensued.

Officers eventually were able to apprehend Haughwout, put him in handcuffs and take him to a cell. Two officers sustained minor injuries, police said.

Once in the cell, Haughwout showed signs of difficulty breathing, vomited and was taken to Middlesex Memorial Shoreline Clinic in Westbrook for evaluation.

At the hospital, a nurse found a cellphone hidden in Haughwout’s underwear, according to an officer’s report of the incident. The phone was on and recording at the time, police said. The phone was secured as possible evidence.

A week before that arrest, Haughwout made headlines after posting a 14-second YouTube video of a drone firing a handgun in the woods. Police and FAA officials investigated to determine whether any aviation violations took place, but police later said they were unable to find any state laws or local ordinances banning such a device.

The Connecticut legislature discussed banning weaponized drones during the 2016 session, but no action was taken.

Haughwout later filed a lawsuit against Central Connecticut State University, where he had been an engineering student, after the school expelled him over the drone incident. That lawsuit was dismissed by a judge in February.