O'Connor is accused of driving his Chrysler 300C on a road in Port Seton, East Lothian, after taking an as-yet-unknown substance.
The former Hibs striker was stopped on the B1348 by police officers at around 8pm on 19 June. He was subsequently arrested and charged and taken to St Leonard's police station in Edinburgh, where he was examined by a doctor and forced to give a blood sample.
O'Connor pleaded not guilty to two charges during an appearance at Haddington Sheriff Court yesterday.
The 30-year-old, who has still to be picked up by a club since being released by Russian side Tom Tomsk last December, was granted bail at Edinburgh Sheriff Court on 16 January this year. He is due to stand trial in March.