If your new to electronics I'd strongly suggest avoiding anything to do with mains voltage - lethal voltages are not the place to start.
I'm sorry, what I meant to say is that I am new to arduinos and microchips etc. I have built several tesla coils over 1kw and many other dangerous hv projects, so safety should not be a concern. I just really need someone to help me out with the coding of this project and with the pin connections I did not understand. Or provide me with a link with the answers in them. I have not found the answers anywhere which is why I am needing help with them.
If this is the wrong place to be asking, where should I repost this question.
I think I understand most of it. Basically you are detecting then the ac switches from pos. to neg. and telling the triac not to turn on until a few miliseconds after that, and the delay essentially controles how bright the light will be.
Here is what I dont understand: -for the IL250 schematic, what is the top right pin hooked up to (pin B) ? it says DIP_6 IL250 or something.
- for the second schematic, what is pin 6 of the MOC3020 connected to? it looks like a plug for ac?
-for pin 1 of the MOC3020, what is that connected to? I'm not sure what Vcc means (I think it means +v?) and what is the value of the resistor with it? (Rin).
-How would the code be writen? Does the IL250 zero cross detection send a high or a low signal into the arduino? And how would you use that information to send to the triac?
As you can tell, I am pretty new to electronics and arduino's, but I absolutely need to get this project done.
It could be made to work, it would act as an extremely power source of radio frequency interference and solving that would be more complicated than using a standard solution, a zero-crossing dimmer IC driving a triac.
is there an easy to follow instruction guide that you know of to do this? This would be what I want to do: (but only needing to control 1 light) but some things in this video confuse me such as any of the coding, and pin connections
So the more leds that I hook up, will that affect yhe current or voltage? I am hoping to make a box that I can just attach different amounts or types of led christmas lights too, so its not exactly an exact amount of lights or exact type that I will always be using. Kind of like a universal dc variable power supply to leds
There's no issue of "universality" here. I think you have the wrong idea.
> > > Still, applying HVDC to the AC plug, as I believe you propose, would result only lighting, possibly, half the LEDs - if they're like dirtside's (and I don't insist that they are). What to do depends on what you have. There's no "universal" here, none.
Ok, just one last quick question if you don't mind. Say I hooked up led Christmas lights to mains, but just wanted to dim them manually, would I use a variable resistor rheostat or a variac?
See my previous reply. (There are no "ac leds".) Read the link in the previous reply, too.
Oh ok! Sweet! So the more leds that I hook up, will that affect yhe current or voltage? I am hoping to make a box that I can just attach different amounts or types of led christmas lights too, so its not exactly an exact amount of lights or exact type that I will always be using. Kind of like a universal dc variable power supply to leds
Well I just think triacs and zero volt detection is pretty complicated for people like me who are new to electronics and coding. My idea only uses 3 simple main parts that are easy to understand their function. As for the coding, I don't understand at all the coding involved with zero volt detection and then how to send that into a triac etc. Where as with my idea, the only coding involved is sending variable voltage to the pin of the mosfet I.e. digitalWrite(pin, output value from 0-255);
Also, I am using this to dim led christmas lights, so I don't know how well that will work with a triac.
Ill take a look at those links, but in the meantime, could someone shed some light on if my idea has any potential of working?
I'm almost sure this won't work because someone would have done this before, so I guess I'm mostly asking WHY this wouldn't work..
I've been looking at ways to dim lights with an arduino. It is rediculously complicated (especially for someone like me who is new to electronics) using a triac and zero volt detection and stuff.
And I was also looking at using a mosfet to control them, until I learned that a mosfet will only work with AC.
So I was thinking, what if I had ac mains converted to dc power (transformed, rectified, and smoothed) ran the dc through a mosfet controled by the arduino (so now I have the dc variable power) and then ran that through an inverter. So the inverter output will be variable because it is getting variable dc input from the mosfet.
What am I missing here? Is there any chance of something like this working?
It works fine, however I am using it to detect audio to make leds flash. I only want them to flash when there is a bass beat. for example, a steady bass beat with someone singing over it would only flash with the bass beat and not with the singing. Instead, this circuit picks up treble and bass, so whenever I play any song, the led flashes like a jumbled mess along with singing. It almost looks like it is flashing at random when music is playing.
any tips? I am new to electronics (this is actually my first arduino project) so bear with me.
2) the voltage I was talking about was the respective points vs. ground.
1) i meant from the output (0-3v) to the ground.
2) oh ok, sorry.
q1: b = 0.63v c = 0.86v q2: b = 4.5-6.5v (depending on sound) e = 5v c = 0 - 3.5v (depending on sound) (the led lights up to sound from this pin to ground, but it doesnt have the slow decay which i am assuming is what the next transistor is for)
q3: e = 0v (no matter what sound), b = 0v (no matter what sound) c = 0v (no matter what sound)
so I am assuming the problem is somewhere around the last transistor...