DIY electronic car handbrake

Good Morning all, I am after some advice, i am a fabricator and i am currently building a full one off custom 'hotrod' type ambulance build, I am a bit stuck though.

I would like to learn arduino based stuffs, my first goal is i need something to control an electronic handbrake.

Basically, you press a button, a motor will run for 5 seconds (just an example) and then stay, then once the button is pressed once again the motor will run in the opposite direction, i thought this would be a fairly easy starting point but i am just completely lost!

I Have purchased a starter kit for the arduino and am slowly working my way through but i am struggling to get the hang of it really! Any advice and tips much appreciated!

Welcome to the forum.

It's all just logic. So while you may want to run a motor back and forth, for now you can make progress by…

… trying to write code so that a button press turns on one LED and a second press turns off the LED.

This would be early in any organized course of study. You can find examples in the IDE, the one I recommend working up to and through is called "state change detection".

This article goes with the example:

https://docs.arduino.cc/built-in-examples/digital/StateChangeDetection/

Later, when you've accomplished that, you can do the next part, where instead of turning on an LED, you start a motor running for five seconds, or whatever.

a7