WEEK 5 hw – Carla Molins

 

 

  • Goal of the project and/or desired interaction

Create a circuit that activates an LED just when both photocell is covered and ultrasonic sensor has something close enough.

  • Quick description of assembly and list of core components

1x Arduino

1 x medium breadboard.

1 x red LED

1x ultrasonic sensor

1 x photocell

1x resistors (220 ohms) – resistor

1 x resistors ( 10K ohms) – photocell

Jump wires

  • How it works

By default the light is off (LOW). When the photocell is covered OR the ultrasonic detects an object the LED stays the same. Just when both are covered triggers the system to light up the LED.

  • Any problems you encountered and/or solved

I had to think through my if statements before coding.

Images of your circuit 

https://github.com/Lywa/carla_molins_Pcomp/tree/master/WEEK_5_hw

Leave a Reply

Your email address will not be published. Required fields are marked *