Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What lamp do you use? #2

Open
zumpchke opened this issue Jan 22, 2024 · 3 comments
Open

What lamp do you use? #2

zumpchke opened this issue Jan 22, 2024 · 3 comments

Comments

@zumpchke
Copy link

What lamp do you use?

@ghidosoft
Copy link
Owner

I used 1W RGB LED with a 15° 20mm lens found on aliexpress, the lens is smaller than the hole and I filled the space with paper and glued everything in place.

I used three LED drivers based on CN5711, you can use the small trimmer on the boards to regulate the amount of max current for your specific LED. You can drive the boards with PWM over the CE pin, you can connect this pin directly to an output pin of the mcu. The LED boards must be powered by 5V but they happily accept 3v3 on the CE pin.

Lens: https://aliexpress.com/item/1005004701092055.html

LED: https://aliexpress.com/item/1005003478040421.html

LED drivers: https://aliexpress.com/item/1005005751828800.html

@zumpchke
Copy link
Author

zumpchke commented Jan 23, 2024 via email

@ghidosoft
Copy link
Owner

Unfortunately I did not draw a schematic for this project but it's pretty simple:

  • connect power (+5V - VUSB pin) and GND to the 2 servo
  • connect power (+5V - VUSB pin) and GND to the 3 LED drivers
  • connect D1 -> pan servo motor
  • connect D2 -> tilt servo motor
  • connect D5 -> to the red LED driver CE PIN -> the output goes to the anode (+) of the RED led
  • connect D6 -> to the green LED driver CE PIN -> (same but for green)
  • connect D7 -> to the blue LED driver CE PIN -> (same but for blue)
  • connect the cathode (-) of the LED to GND

You can change the default pins here https://github.com/ghidosoft/esp8266_moving-head/blob/main/src/main.cpp#L23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants