T
T
timka2282021-06-04 19:56:18
Arduino
timka228, 2021-06-04 19:56:18

How to turn on LEDs with a light sensor with Aliexpress?

I need to turn on the LEDs when it gets dark. The
following board was purchased on Ali:. 46photo.jpgAlso purchased mosfet transistors 2n7000. When I ordered, I thought that everything was so. Now the orders have come, there are problems.
Firstly, the illumination module gives a signal when it is light, not dark. Secondly, as I understand it, when triggered (when it is light), it gives a low signal (ground, minus) to the digital output. And when it's dark - nothing gives. Maybe I'm wrong, but it seems so. Well, the transistor needs a high signal (plus).
What to do?))) I don’t want to order other components, it’s a long wait and a pity for money. What can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
evgeniy_lm, 2021-06-04
@timka228

First, the light module gives a signal when it is light,

What a news! He is a "module of illumination", and not "darkening"
as I understand it, when triggered (when it is light), it gives a low signal (ground, minus) to the digital output. And when it's dark - nothing gives.

IT'S DIGITAL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! sensor. It outputs 0 or 1 TTL level, i.e. 0V or 5V voltage. And you have it like in that riddle "it will go out, then it will go out"
What is the problem, if when it is light at the 5V output, invert the signal with any npn transistor. There is no need to order such garbage on alik.
PS For example, it didn’t even occur to me to order all this crap on alik, in any nearest online store it costs the same, only delivery within a couple of days
PS PS And what are you going to include 2n7000? It has a maximum allowable current of 1A, i.e. for several hours it will draw no more than 0.3A. For a 12V LED strip, this is 3.6W. Not enough like that. I would take IRFZ44N, you can hang 3A on it without a radiator

B
Borys Latysh, 2021-07-15
@nava2002

With all due respect. There is an obvious lack of knowledge.
Buy any book that says Arduino. Read it and ALL of the above questions will disappear.
Actually, in order to answer the questions posed, you need to read the course of electronics, digital technology and programming ..... You definitely need knowledge and unfortunately you will NOT get it within the framework of the "Blog".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question