Hello,
What components I need to connect a USB cable used for computer power to ATTINY2313?
Circuit controls the relay 220V.
Do I need voltage regulator? Diode?
Thank you
Hello,
What components I need to connect a USB cable used for computer power to ATTINY2313?
Circuit controls the relay 220V.
Do I need voltage regulator? Diode?
Thank you
Operating Voltages
2.7 ~ 5.5V (ATtiny2313)
Nothing need, connect directly VCC to +5V and GND to GND.
VMwareUser:
What components I need to connect a USB cable used for computer power to ATTINY2313?
Circuit controls the relay 220V.Do I need voltage regulator? Diode?
You don't need anything. Just cut the plug off and find the red/black wires.
I connected the cable without additional components and it works.
But there is a problem,
There is a program operated by the relay for 5 minutes and turn it off for 5 minutes automatically.
When the relay changes from On to Off then there is electronic interruptions other USB devices connected to the computer like a mouse.
3 ways,
Number 2 is easiest, worth to try first.
sonnyyu:
3 ways,
- Replace relay to SSR (solid state relay), AC load use dc-ac type, and for DC load use dc-dc type.
- Add big value capacitor cross 5 V and GND.
- Use wireless USB power module to isolate power supply.
Number 2 is easiest, worth to try first.
I don't think the capacitor will help if the problem is when it goes "On to Off.
More likely there's a big spike coming back from the relay. You need a diode across the relay input to stop them.
YOu should connect the relay like this:
fungus:
sonnyyu:
3 ways,
- Replace relay to SSR (solid state relay), AC load use dc-ac type, and for DC load use dc-dc type.
- Add big value capacitor cross 5 V and GND.
- Use wireless USB power module to isolate power supply.
Number 2 is easiest, worth to try first.
I don't think the capacitor will help if the problem is when it goes "On to Off.
More likely there's a big spike coming back from the relay. You need a diode across the relay input to stop them.
YOu should connect the relay like this:
OK, now we are talking EMI, Capacitor will take care E portion. The computer by design will be OK for some kind of "M". plus the OP play with ATTINY2313 (Pro level). I would remind him/her "Do not forget connect flyback/protection diode" even he does forget.
add protection with flyback diode.
Thank you all for your help,
Which diode I need to connect?
sonnyyu:
OK, now we are talking EMI, Capacitor will take care E portion.
But not all capacitors are equal for this job.
VMwareUser:
Which diode I need to connect?
It tells you on the page I gave the link to.
fungus:
VMwareUser:
Which diode I need to connect?It tells you on the page I gave the link to.
Is the 1N5408 diode is it for?
Thank you
VMwareUser:
fungus:
VMwareUser:
Which diode I need to connect?It tells you on the page I gave the link to.
Is the 1N5408 diode is it for?
Thank you
Yes.
fungus:
VMwareUser:
fungus:
VMwareUser:
Which diode I need to connect?It tells you on the page I gave the link to.
Is the 1N5408 diode is it for?
Thank you
Yes.
Thank you