Hello everyone,
I am doing a project for school where I am making a distance measure using an ultrasonic distance sensor, atmega328 with ardunio and LM3914's. For the project I am not allowed to use all programmable circuitry, so I had to come up with alternatives. What I thought of was to use the arduino to find the distance, and output three different pwm signals for each digit of the distance, then run that through a low pass filter then onto a LM3914 so the LM3914 would allow a unique LED to turn on for each number. For example if the distance is 123 cm, LED 1 then 2 then 3 would turn on on three separate bar displays to give you the distance.
I have this working well, however I would now like to display the distance using seven segment displays for ease of use. At first I thought it may be as simple as connecting each output the corresponding segments on the display, but once I tried this all the segments would light up for each number as they were all connected. I have done a fair amount of research and can't find a way to do this without using hundreds of diodes. I have spent quite a lot of time on this project so far so ideally don't want to change the circuit I currently have.
I will upload the schematic of the circuit, just note that as I am new to the software I used I don't know how to add my own IC's, so the picaxe chip represents the LM3914. Also, the LM3914 chip works with LED's of common anode thats why I have put common anode seven seg displays on the schematic.

Any help would be greatly appreciated.
I am doing a project for school where I am making a distance measure using an ultrasonic distance sensor, atmega328 with ardunio and LM3914's. For the project I am not allowed to use all programmable circuitry, so I had to come up with alternatives. What I thought of was to use the arduino to find the distance, and output three different pwm signals for each digit of the distance, then run that through a low pass filter then onto a LM3914 so the LM3914 would allow a unique LED to turn on for each number. For example if the distance is 123 cm, LED 1 then 2 then 3 would turn on on three separate bar displays to give you the distance.
I have this working well, however I would now like to display the distance using seven segment displays for ease of use. At first I thought it may be as simple as connecting each output the corresponding segments on the display, but once I tried this all the segments would light up for each number as they were all connected. I have done a fair amount of research and can't find a way to do this without using hundreds of diodes. I have spent quite a lot of time on this project so far so ideally don't want to change the circuit I currently have.
I will upload the schematic of the circuit, just note that as I am new to the software I used I don't know how to add my own IC's, so the picaxe chip represents the LM3914. Also, the LM3914 chip works with LED's of common anode thats why I have put common anode seven seg displays on the schematic.

Any help would be greatly appreciated.