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

Driving Triac with ESP8266 #17

Closed
samehhady opened this issue Dec 4, 2014 · 6 comments
Closed

Driving Triac with ESP8266 #17

samehhady opened this issue Dec 4, 2014 · 6 comments

Comments

@samehhady
Copy link

Hello,
First of all thank you for your great work.

I want to ask if it is possible to drive a Triac and dim 220v lamp directly with ESP8266 without using MCU
Can I use the PWN functionality to achieve this?
Can you please provide me with some hints on how to do it?

@nodemcu
Copy link
Collaborator

nodemcu commented Dec 4, 2014

You can using pwm or set gpio high or low without using a extra MCU.
But esp8266 can not drive a Triac DIRECTLY I think.
Some driver/buffer may needed between esp8266 and Triac, I guess.

@samehhady
Copy link
Author

aaah too bad, it would be great if I could drive it directly :(

@Toshik
Copy link

Toshik commented Dec 8, 2014

Use triac driver like moc3023 - it is designed to drive triac by any MCU, otherwise you will damage your device

@samehhady
Copy link
Author

Thx Toshik for the info, will I be able to directly control the moc3023 with the ESP? or will I need MCU?
If it is possible can you show me a quick snippet on how to control it?

@Toshik
Copy link

Toshik commented Dec 8, 2014

Yes, you can drive MOC3023 directly by ESP - by fact ESP acts like MCU.
It is pretty simple - use it like common LED by switch on/off any GPIO.

Here is common connection diagram: http://home.comcast.net/~donlaw/lights/mocschem.gif

@samehhady
Copy link
Author

Thank you Toshik!, you are the man ;)

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