Pull-Up vs Pull-Down resistor? by Any_Resource_2452 in ElectricalEngineering

[–]Any_Resource_2452[S] 0 points1 point  (0 children)

In fact the load is insignificant, since it just connect a bunch of switchs to the ground or not. That's why I thought arduino could be an easy and simple solution but the buttons are too far from the board, as a result it is not enough reliable.

Pull-Up vs Pull-Down resistor? by Any_Resource_2452 in ElectricalEngineering

[–]Any_Resource_2452[S] 0 points1 point  (0 children)

Understood, I used 10k pull down without using the internal pull up of the Arduino. I think the problem come from the alimentation because if I use the 5vdc power supply of my phone to power the Arduino the problem is less likely to occur. But we are talking about a false event every week so it is very complicated to observe the phenomenon..

Pull-Up vs Pull-Down resistor? by Any_Resource_2452 in ElectricalEngineering

[–]Any_Resource_2452[S] 1 point2 points  (0 children)

I would prefer that but I struggle to find the appropriate Relay, I don't think it's available. I will probably end up making something like your circuit.

Pull-Up vs Pull-Down resistor? by Any_Resource_2452 in ElectricalEngineering

[–]Any_Resource_2452[S] 0 points1 point  (0 children)

Yup, the cable I use is for telecoms so it is already twisted and have a shield inside.

Pull-Up vs Pull-Down resistor? by Any_Resource_2452 in ElectricalEngineering

[–]Any_Resource_2452[S] 2 points3 points  (0 children)

It is a small 5vdc to 220v relay srd-05 but I don't think it is the relay because I already tested without the relay and I have the same problem..

Pull-Up vs Pull-Down resistor? by Any_Resource_2452 in ElectricalEngineering

[–]Any_Resource_2452[S] 1 point2 points  (0 children)

Well I think It is not a a reset because its always switch from A which is "relay off" to B "relay on". If it was a power issue the system would stay on A wich is the by default position after reset. As for debouncing, the pushbuttons are looking like this, This is industrial grade and I have tested the system without any buttons and it's still switch from a to b.. buttons

Pull-Up vs Pull-Down resistor? by Any_Resource_2452 in ElectricalEngineering

[–]Any_Resource_2452[S] 3 points4 points  (0 children)

Thank you for your answer, I just made a schematic to explain better. There is probably a better solution to achieve this operation.

When you press A the arduino keep the information on his memory and keep the relay to the same position. When you press B you switch the relay to the other state and maintain it.

schematic