LED brightness automation - My First Project

Looks good from what I am seeing. While you are waiting on the parts download KiCad and play with it for a while. It is a gread CAD program and it is up to you if you want to leave a donation.

How will the Arduino be powered?

Thanks for the reply, and good point I forgot to draw the usb on the controller, I was imagining plugging into wall with a 5v phone charger....although now that you mention it, I'm wondering if there is a better way I read there are unregulated and regulated power options as well. Recommendations?

Thanks for tip and approval, I'll go try it out this week!

A useful "schematic" (actually a block diagram but...)

All looks fine except .. you havent given a link for the relay, and the Arduino is "unlikely" to provide enough current to power it.

Looks great
But two things are there
Check the data sheet and required current of every component

It is recommended to always use good block diagram rather than hand written it will be easy to understand

1 Like

Not true.

A hand drawn diagram is acceptable.

Ya its acceptable but what I am saying that it is a bit difficult to understand

1 Like

Not true. OP has drawn a good representation of the system being controlled with an ESP32 which senses day/night/solareclipse using a BH1750 to activate the relay (referenced by johnerrington in Post #6) which passes mains to the LED power supply while the ESP32 varies the PWM through the PC817 to control DIM+/DIM- for brightness of the IP67. I encourage more of this type of drawing. paulpaulson probably likes it better than my ASCIImatics.

1 Like

Thanks for the correction good to know the correct wording.

Last night I found a relay: SunFounder 4 Channel 5V Relay
It says it is compatible with the Arduino and is rated at AC250V 10A ; DC30V 10A. Since I believe I am using the AC side I looked at the input requirement for my driver (on the data sheet and on the actual driver) where it states 277VAC and 1.1A, I believe this is ok given that the relay should be able to handle up to 2500 ac watts with only about 305 being sent...Please let me know if I have read something wrong, thank you!

Thanks for the advice Krishna, do you have a free website you like that can make these "good" block diagrams? I will include data sheets later today maybe with an updated block diagram!

Thank you xfpd, I am glad you could understand it I was a little worried given this is one of the first block diagram I've drawn since doing RLC circuits in High School.

Here is a data sheet for that relay.. Depending on which Arduino that you are using, how the Arduino is powered and what other things are powered by the Arduino 5V rail you may need an external power source to drive the relay coil. The switch side specs are not relevant to the Arduino, only the coil voltage and current.

Thank you for clarifying what I should be looking at...I want to make sure I am reading this right

If I have the high sensitivity model then if I run it at 5VDC I will need 71.4 mA.
If I have the regular model (I think the one I have hyper linked above) operating at 5 VDC I will need to provide 89.3 mA. Or another way I'm thinking about it is that you need either .36w or .45w to drive the coil.

To connect them I'm thinking of using the esp32 powering it with the 5v usb, then attaching the Vin to drive the relay (and the BH1750 )...My question is what calculation do I need to do to determine if I can drive the relay(or other devices) through the esp32, is this about total number of watts from the usb power supply or is it about how many watts the esp32 can put out before reaching its limit? Thanks and updated block diagram coming later!

Ya there are many free website as well as free software.

But I prfer two of them
Website
Software

1 Like

Thanks Krishna I'll check them out

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.