United Kingdom
Asked — Edited
Resolved Resolved by Rich!

Bypassing A Mini Push Button Switch

Hi there, I am looking at adding a cool lighting system to my new robot "Trakx" (creative I know), the lighting is similar to the under car systems neon systems you can buy. My version uses a torn down led wire that you can attach to a bike. I have removed it from its casing and using simple wiring have managed to bypass the switch, but the question is will the v4 allow me to use the 3 different modes and how to wire it up?

I was thinking about using the modes as a visual warning system (ie the closer Trakx gets to something/one the faster it flashes)

Thanks for looking

Any advice welcome


Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

United Kingdom

How do you change/set the modes? Do you have any instructions, wiring diagrams etc. for the LED wire?

The short answer is yes, probably. But we don't have enough info to help you wire it.

United Kingdom

Hi there Rich,

It is a simple 3v circuit, you change the modes by pressing the mini push button

Mode 1 = continually on Mode 2 = slow flash Mode 3 = faster flash

Pressing the button again will turn it off.

As for a circuit diagram I will go and try to do a bit more research

United Kingdom

You can replicate a push button press quite easily. Have a look at this topic and see if a TIP122 based circuit would do the job. It's basically an easy on/off switch which uses the High/Low of a signal pin to activate the transistor. You may need to script it so it turns on, sleeps for a few milliseconds then turns off but it should work. The circuit itself may need a little modification but something along the same lines could work.

You may even be able to put the signal direct to the switch depending on voltage etc. much like the old EZ-Camera push switch mod. If you can find out what happens (voltage wise) to the switch when it's pushed it should be pretty simple to do.


I believe Also a 555 or 556 circuit would work.

United Kingdom

Very probably however wouldn't that be over complicating things?

Mel, do you have a circuit in mind already for using the 555 to achieve this? I'm always interested in other methods as, thus far, I've not used a 555 timer and am itching to try one out:)

United Kingdom

Hi @Rich,

i will have a look at building the TIP122 at the weekend. However my electronics knowladge is relitively small, whilst it is growing can you please give me an indication on what i shoul dbe looking for "voltage" wise from the switch.

Thanks @MovieMaker, do you have any way/ideas how to incorperate the 555 timer into the curcuit to make this work?

i appreciate your pactience with me on this.

thanks guys


United Kingdom

Usually when the switch is pushed it applies voltage to a specific part or pin of an IC. So what you need to do is find out what that voltage is and where it applies it.

When I get home later tonight I'll sit down and sketch up some circuits etc.

United Kingdom

Sorry, didn't have chance to sit down last night.

Basically, if you get a multimeter set to DC volts. Place the red lead on one side of the switch. Place the black lead on the other side of the switch. The voltage should (hopefully) read 0v. Press the switch. Check what the voltage now reads.

If it's a positive voltage then you need to somehow bypass the switch and apply that voltage to where the red lead is connected (or a point along it's trace).

If it's a negative voltage the same applies but to where the black lead is connected.

There are a few solutions. One could be simply using the signal of a digital port (however we would need to check a few things). Another would be to use a TIP122 and relay to short the switch. Once we have the the above info we can see how to proceed with it:)

If it doesn't make sense or you need further help just shout and I'll try to make a short video or sketches or something.

United Kingdom

Hi there @Rich,

I have ran the multimeter across the switch, which gave me a reading of around 3v, then when I pressed the switch the voltage dropped to varying levels (different each time) for each press (during the depression), returning to about 3v whilst the light was doing each set.

I hope I have done this correct and it is the information you need to help me.

I cannot thank you enough for your assistance with this as my ideas out way my skill, but I am learning.


United Kingdom

Sounds like it's possibly a normally closed switch in that case, which is the other way around to what I had imagined (and hoped).

I'm sure it's still possible to use the EZ-B to simulate a switch push, it will involve me thinking a bit more about it though and right now my brain is fried.


How about a normally closed relay. You can wire the coil of the relay to the TIP circuit and trigger that with the EZB and scripts.

United Kingdom

Thanks for all your assistance guys, do you know if there has been a date set for the shipping of the v4 yet?


@mgodsell1973... Anytime in July is the current estimate of Revolution to begin shipping...

United Kingdom

Thanks @Richard R, getting very excited now :-)

United Kingdom

Hi @Rich, I was wondering how things were going with my problem. I know that you probably have lots on. But I just want to get cracking :-) thanks for your time and assistance.

United Kingdom

Sorry, I hadn't forgotten I just hadn't got around to it... or more to the point hadn't got around to sketching it out.

Basically, the easiest way would be to do as Dave said and use a relay over the existing switch (or in place of it).

Use the TIP122 circuit to power a relay (I believe the relay would require the use of the diode mentioned in the circuit).

The relay would be opened/closed by the TIP circuit which would then switch the switch on the light board.

Quick scripts such as;

Set(D0, On)
Set(D0, Off)

these would simulate a button push. Change D0 for the port as required.

A quick and dirty schematic...

User-inserted image

So it's the simple TIP circuit as explained in my tutorial but rather than feed a lamp it feeds a relay. When the signal is high on the base of the transistor the relay is energised and closes. The other side of the relay connects (or replaces) the push button on the lighting board, when the relay is energised the switch is closed (i.e. button is pushed).

The short script simulates a push of 100ms, you may need to adjust the sleep to suit depending on the board itself. This will be trial and error.

United Kingdom

Slight amendment, check the continuity of the push switch on the lighting board before connecting to it. If it is shorted (0 ohms) when not pressed use the NC pins of the relay not the NO pins. If it's open (infinity/>299/>999 or similar reading) when not pressed use the NO pins as my schematic.

From what you posted I believe it's a normally closed switch (NC)

United Kingdom

Once again thanks @Rich, I will post when working.

United Kingdom

hello again, i have built the curcuit (thanks @Rich). but........ theres always a but. i want to test that it works and tried to write code for my Arduino to send a pulse to when and object comes within a certain range to run the first mode, then again if the distance to the object decreases and again if distance closes even more. (like a visual waring system).

but resets once out of the set "a

unfortunatly the fine folk on the arduino forum don't appear as helpful with my plight.

does anyone know how to code "Adruino" or are able to provide me with code for EZ-B V4 that i can use to do this?

i can provide my atempt at "Arduino" code if needed.

thanks once again for being so supportive




If you are using Rich's circuit and code above... In ARC to turn that circuit on and off is very easy...

set(D0,ON) #Turn on circuit

set(D0,OFF) #Turn off the circuit

Sorry, I don't do Arduino..... :D But you need a way to make the arduino's port go "HIGH" then low briefly to simulate a button push....

United Kingdom

I'm not that great with Arduino code but from my limited knowledge it would just need to turn a pin to high to enable the relay, then drop back to low which should simulate a button push.

Arduino code:

  digitalWrite(13, HIGH);   // set the pin to high
  delay(1000);               // wait for a second
  digitalWrite(13, LOW);    // set the pin to low

It's very much like the blinking LED tutorial but without the loop and without the second delay (in fact that's what I copied for the above pretty much).

EZ-Script code:

Set(D13, On)
Set(D13, Off)

If required change the sleep/delay from 1000 (1 second) to a lower value if a 1 second button push is too long.

I believe the Arduino has an LED on pin 13 too which should also be illuminated when the relay is switched, which should verify the code is working.

If it's not obvious the above code/script are only snippets which need to be part of a bigger code/script.


@Rich, sorry, I did not see the question until now. 555 and 556 circuits are everywhere.


try this:

United Kingdom

Mel, I'm not sure how you are imagining a 555 timer would achieve what the OP wants to achieve in this. It's basic simulation of a button press of an existing circuit not control and sequencing of lighting patterns.

United Kingdom

thanks guys, i think i may have been over thinking the coding on arduino.

as i had used a "switch case" to tell when an object was "X" distance from the sensor and the closer my robots gets to the object the more "reps" of code it runs, but just to test the curcuit your code will be ideal.

looking forward to working with ARC/EZ script, just waiting for the holy grail "item shipped" email.


United Kingdom

Hi @Rich & @Richard R, i would just like to share the fact the i got the light toggling between modes this evening and would like to pass on my gratitude for your assistance and patience in helping me solve my problem.

i can;t stop smiling on my small yet significant step. i have learnt so much over the past couple of weeks.

thanks once again.



United Kingdom

Awesome news, well done:)


.... Thanks, but I think Rich deserves all the credit...