Making a system with an ultrasonic sensor, two LDR, a RGB, a OLED and 12 leds

Hello,
I'm trying to make a system in which an ultrasonic sensor is turning on 12 LEDS depending on the distance to an object, those LEDS in turn would make two LDRs react and display a message on the OLED and change the colour of the RGB.
Anyone out here who has done something like this and has some advise or code examples?
I'm really grateful for any help.

turning on 12 LEDS depending on the distance to an object

What does that mean?- turn them on in sequence so that the number lit is an indicator of the distance?

LEDS in turn would make two LDRs react

No idea what that means.

Do you mean they shine on the ldrs, whose state then causes the message to appear? If so that seems redundant, since the number of leds is a function of the distance which you already know, so you might as well use that fact again, and display the message (or not) based on the distance. But maybe I have misunderstood.

The closer the object would be to the sensor, the more LEDs would turn on. I would preferably have two rows to show if the object is closer to the right or the left side. I know it makes no sense to use two LDR to check the LEDs by turning a RGB to a certain colour. But it's what I need to do for a school project.

Can you share the requirements and/or specifications that your instructor gave you.

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Do you have any code written?

Thanks... Tom.... :slight_smile: