Help Please - Connecting 5V Relay to ATTiny85 (Digispark)

Hi there,

I've doing a small project with simulating a touch on an iPhone/Touch devices without the help of human touch. ( No stylus )

So basically, I have successfully made it using Arduino UNO with 5V sugar cube Relay. Please see the attached diagram for the successfully working layout.

It basically sends the pulse from the PIN4 and activates the relay and simulating a touch by a small current from ground connections.

Now, due to the size of this board. I wanted to bring it something even smaller similar to the size of the relay. Such as Digispark ATTiny85 ( this board : http://goo.gl/ziW3Mu )

I need help to connecting the same diagram as shown in the attached file, But with ATTiny85 Controller. Can you guys help me how to power up the 5V Relay.

I tried using the PIN1 as PIN4 and connected the 2 grounds in MCB Ground. But this doesn't work. I mean.. the relay is not working.

I would really appreciate what is wrong here ? Kindly help me to finish this project.

Thanks.

Not really advisable using the arduino pins to power a relay considering the current required to turn the relay ON. The arduino puts out a max of 50mA and I'm sure the relay requires a little more than that.

This is just the off the top of my mind, why don't you use a transistor as a switch configuration?
Here's a link to a H-bridge circuit. It has +VCC and GND and 4 channels you can use to turn on/off higher powered devices like relays or motors.

L293D

Instead of connecting the I/P pins to PWM pins, direct them to your digital pins and the channels will work as simple switches then

Thanks vikram for taking the time to reply back. Please excuse me for the dumb questions, I'm new to this.

Basically, What I want to achieve is a touch simulation without the help of a human hands or a stylus. When I searched the internet, I found the relays were used to do this with UNO's and which is why I used the same style.

But Does this L293D Chip will work for what I want to achieve ? If Yes, Can you help me with a rough fritzing diagram ? I know I cannot ask more, But I would really appreciate this help.

Thanks again, Vikram. (thumbs up)

Okay so, you're basically using a low power 5V signal from the uno to turn on a higher power one to turn ON a relay.
Sad part is, I've never used fritzing. Here's an attachment though to help you out better.

Look at the diagram. Consider the first motor. Replace that with a relay of your choice. Another change you''ll be doing is, take one terminal of the relay and connect to output 1 and the other term of the relay to ground. Final change (optional) - pin 8 of the diagram has been connected to 12V, you can switch to the 5V of your power supply.
Now, Connect input1 of the IC to any one of the dig pins of the UNO and pull them high, the relay should turn On/Off . The advantage here is, you can do this to all output pins on the l293d, you'll end-up having 4 relays.

l293d_motor_connections.gif

Here's a simpler circuit. Single relay, smaller components

PFA

Thanks Vikram for your efforts. really appreciate it buddy. But I'm afraid I don't understand it correctly.

But please find this both attached diagrams which I made based on your suggestions and let me know if that is correct.

I hope this makes the touch to be simulated automatically without human interaction ?

PS: I found this video which is exactly the same I want to achieve with the relay but with ATTINY85

I read in the comments of that video.. it says, connecting the relay paths to ground causes them to sense a "finger". And without a relay you cannot just send a GND signal straight from the Arduino.

please help ?

Vikram or anyone ?