United Kingdom
Offline
Faraday Member
Karma: 131
Posts: 4668
|
 |
« Reply #45 on: February 02, 2012, 10:49:34 am » |
2n2222 is intended for switching a much higher current than in this application, so its hfe (current gain) is rather low at the collector current used here. However, it should work nevertheless.
If you bought a spare 2N7000 then you could also use that, connecting it to the Arduino pin in the same way as the other 2N7000.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 99
Arduino rocks
|
 |
« Reply #46 on: February 06, 2012, 04:13:44 pm » |
Got the power button working  controlled by arduino. Now i just have to test the mode button
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 1
Posts: 474
|
 |
« Reply #47 on: February 16, 2012, 05:05:48 pm » |
i got bored and wanted to control a RC car with arduino. i got it working easily the pin for "forward" on the TX IC in the transmitter is at 3v when open, 0 when pressed on. so i put a diode from the IC pin to a arduino digital pin and used: digitalWrite(powerButton, LOW); pinMode(powerButton, OUTPUT); // Pull the signal low to activate the power button delay(500); // Wait half a second pinMode(powerButton, INPUT); // Release the power button. delay(500); // Wait half a second works awesome, if anyone wanted feedback  i made a blog post, are these right: http://dduino.blogspot.com/2012/02/trigger-buttons-with-arduino.html ?
|
|
|
|
« Last Edit: February 16, 2012, 10:11:13 pm by sirbow2 »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #48 on: May 17, 2013, 04:30:35 am » |
After a year let's revive this thread  So I'm pretty new at this Arduino stuff, and I only have basic knowledge of electronics. I started building a project, where I need to simulate pressing a button. I have the following circuit:  This circuit contains 3 sets of pads, each composed of an outer ring, and a centre contact. Over each pad a metal dome held down with an adhesive pad is placed, and the dome, when pressed, makes contact between the outer ring and the central pad. So I need to simulate this behavior of connecting the centre contact with the outer ring. Your help would be appreciated Thanks, Tiago
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19028
I don't think you connected the grounds, Dave.
|
 |
« Reply #49 on: May 17, 2013, 04:52:53 am » |
Simplest (if you don't have any more details of the existing hardware) would be a simple reed relay wired across the contacts. Some can even be driven directly by an I/O pin, but don't forget a diode across the coil.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #50 on: May 17, 2013, 05:20:52 am » |
Simplest (if you don't have any more details of the existing hardware) would be a simple reed relay wired across the contacts. Some can even be driven directly by an I/O pin, but don't forget a diode across the coil.
Yes I only know that I have to connect the inner centre to the outer circle  Can't I use a transistor or something? Relays occupy a lot o space, and since I have 3 pads I would need 3 relays. I would prefer to have something smaller, because I kind of have space constrains on what I'm working  Thanks for your suggestion Cheers, Tiago
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 137
Posts: 19028
I don't think you connected the grounds, Dave.
|
 |
« Reply #51 on: May 17, 2013, 05:26:17 am » |
You could use a 4066 analogue switch, ut I don't know what you're switching. Reed relays come in DIL packages, and relay or transistor, you'd still need three of them - you never mentioned space constraints.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #52 on: May 17, 2013, 05:40:08 am » |
You could use a 4066 analogue switch, ut I don't know what you're switching. Reed relays come in DIL packages, and relay or transistor, you'd still need three of them - you never mentioned space constraints.
Hum ok, what do you mean by ... I don't know what you're switching.
Sorry if am not understanding, and yes sorry about not mentioning the space constrains. I'll try do explain better so I want to use Arduino, for example using digital outputs such that when I send a HIGH it will connect the inner centre to the outer circle and when it is LOW then there is no connection between them. EDIT: This circuit board that I've shown is the board of apple headphone controlers http://david.carne.ca/shuffle_hax/shuffle_remote.htmlThanks, Tiago
|
|
|
|
« Last Edit: May 17, 2013, 05:44:55 am by tvcsantos »
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 1
Posts: 474
|
 |
« Reply #53 on: May 17, 2013, 12:13:39 pm » |
turn on the device and measure voltage: one probe on ground, one on the center pad measure that voltage, then measure the outer ring. now, change to continuity test mode on your voltage meter. if the outer pads are connected (~1 ohm resitance, or your meter beeps) then the the center pad needs to be switched by the arduino and have a pull down/up resistor to the outer pad.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #54 on: May 17, 2013, 02:07:05 pm » |
turn on the device and measure voltage: one probe on ground, one on the center pad measure that voltage, then measure the outer ring. now, change to continuity test mode on your voltage meter. if the outer pads are connected (~1 ohm resitance, or your meter beeps) then the the center pad needs to be switched by the arduino and have a pull down/up resistor to the outer pad.
Ok I'll do that, but what do you mean by ... then the the center pad needs to be switched by the arduino and have a pull down/up resistor to the outer pad.
switched with what?!
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #56 on: May 17, 2013, 04:40:51 pm » |
Hum ok, I think your page is starting to make sense. Tomorrow I'll measure the voltage of the remote control. Other thing you say that you have a +3v circuit, but arduino outputs +5v on digital output, isn't that a problem? EDIT: Ahh OK, I guess I'm understanding, there is not the problem that I've mentioned before, becuase you are not giving +5v to your circuit. In the first one you are all pulling to ground, so OK. In the second one you are driving the PNP with the digital ouput, but actually the current that is flowing is +3v, so OK agian. That's it, isn't it? I guess things are starting to make sense
|
|
|
|
« Last Edit: May 17, 2013, 04:46:58 pm by tvcsantos »
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 1
Posts: 474
|
 |
« Reply #57 on: May 17, 2013, 09:14:38 pm » |
yes! dont you love it when things go to together like that 
|
|
|
|
|
Logged
|
|
|
|
|
|