An Uber driver accused of selling heroin out of his car to undercover state troopers six times is due back in South Boston Municipal Court today after cops found nearly 500 doses’ worth of the drug in his vehicle and his Lawrence home, prosecutors said.

Ariel Pimental, 26, pleaded not guilty Wednesday to distribution of a Class A substance and trafficking in heroin. Judge Michael Bolden set bail at $60,000 cash and, at prosecutors’ request, ordered Pimental to wear a GPS device, surrender his passport and remain under house arrest if he posts that amount.

The defendant, who was represented by attorney Todd Fronk for bail purposes only, returns to court today for the appointment of a permanent lawyer.

The Suffolk State Police Detective Unit began investigating Pimental this summer after receiving a tip that an Uber driver was distributing heroin in the Boston area, prosecutors said.

After making contact with him by phone, undercover troopers made six controlled substance purchases from him through the fall, prosecutors said.

On Tuesday, state police with a search warrant stopped his 2013 Chevrolet Tahoe on Congress Street, arrested him for the earlier sales and found three bags of heroin totaling about 22 grams in the car, prosecutors said. A single dose of heroin weighs approximately 1⁄10 of a gram.

State troopers and Lawrence police with search warrants found another 26 grams of heroin and about $4,000 cash at Pimental’s home on Common Street in Lawrence, prosecutors said.

His arraignment in Lawrence District Court has not yet been scheduled.

Uber spokeswoman Susan Hendrick said that Pimental’s access to the ride-hailing app has been removed.

She also said Pimental, who has a pending drug case out of Salem, N.H., went through a screening process that includes “a motor vehicle records check and criminal records check that reviews local, state and national records.”