Making a sliding mechanism

Hello from Italy.
I want to make a sliding door mechanism for the door in my lab.
The goal is to:

Press a button from one side of the door;
The door should close afte X time;
If pressed two time the door should stay open;
Press another button from the other side of the door.

I already have in the house and Arduino UNO and a board with a single motor driver vnh2sp30 a wiper motor from BOSCH and of course wires and whatnot.
My experience wi A is very limited and the basics of electronic too…
If you want to help it’s appreciated

Here’s a video of the awesome animation (like it’s very difficult to understand)
https://sugar0.tinytake.com/tt/MzU4NjQzN18xMDgzMDE5NQ

And the wiper motor is at 99% like this

A motor like that can be easily control by relays.

You can uild that logic with a button, endswitch + relays.

I forgot to mention i also bought limit switches.

larryd:
A motor like that can be easily control by relays.

zwieblum:
You can uild that logic with a button, endswitch + relays.

Do you have schemas already from which i can learn ?

Here is a similar cct. that you can start with.

larryd:
Here is a similar cct. that you can start with.

Thanks! Now i have only to learn basic electronic schemas reading and understanding! :slight_smile:

sugar0:
Thanks! Now i have only to learn basic electronic schemas reading and understanding! :slight_smile:

Were you wanting to get an estimate for someone to do it all for you?

Paul

Paul_KD7HB:
Were you wanting to get an estimate for someone to do it all for you?

Paul

Sorry i wasn't neing sarcastic but maybe a bit overwhelmed by that image! Let's see if i can undestand something.

https://learn.sparkfun.com/tutorials/how-to-read-a-schematic

larryd:
How to Read a Schematic - learn.sparkfun.com

I was just whatching that! And referencing to his list of symbols i have some questions:

Are K1A and K2a Solenoids?
K1B,K2B and K2C switches?
S3 and S4 push buttons?
And i quite did'nt get Q1 and Q2
Also this scheme come with some code to look at? Thanks again

Are K1A and K2a Solenoids?
These are relays, more correctly, these are the coils of the relays K1 and K2.

K1B,K2B and K2C switches?
K1B is the C/contact in the SPDT relay K1
K2B and K2C are the C/contacts in the DPDT relay K2

S3 and S4 push buttons?
Yes

And i quite did’nt get Q1 and Q2
These are NPN transistors.

FYI
Parts of a relay

Types of relays

DPDT

12V DPDT RELAY
https://www.jameco.com/z/DS2Y-S-DC12V-NAIS-Aromat-Electromechanical-Relay-DPDT-2A-12-Volt-720-Ohm-Through-Hole_99311.html

i think i'm at 50% of the understanding of the logic scheme.
i'm more familiar with the concept of a relay instead of transistor's. need more research!
i also couldnt find what TVS1 is. Transformer maybe?

Transient Voltage suppressor.

You could use a MOV, varistor also:

https://www.jameco.com/z/ERZ-V10D470-Panasonic-Varistor-30V-5A-Clamp_1384536.html

Ok, so. I'm making progresses i think. I have some other questions:

1)relays are phisically separated from themself in the circuit drawing (solenoid and the switch) right? In reality they are a one component but i think it's the standard rappresentation for drawings.

2)Everytime S3 or S4 are pressed both D7 and D8 are outputting signal right? One that open the gate K1B and the other that switch polarity for the motor depending on the limit switch state?

3)at this point isn't arduino a bit useless for only outputting 2 signals that they even triggered by an external sourrce (buttons)? (poor guy!)

If that's the case i think i understood the diagram.. so the other questions is:

4)are there PCB already designed for this on sale? Or would be a better idea (or funnier) to make it myself?

5)Or else ditch "en masse" relays and use only inputs and outputs from arduino(less practical maybe?)

  1. I almost forgot about the vnh2sp30 motor driver. Is it useless?

1)relays are phisically separated from themself in the circuit drawing (solenoid and the switch) right? In reality they are a one component but i think it's the standard rappresentation for drawings.
The relays in the schematic are drawn in a heterogeneous fashion as it makes the schematic easier to follow and read.
You can think of the relay coil as physically separate from the contacts giving galvanic isolation from input to output.
Relays are one component.

2)Everytime S3 or S4 are pressed both D7 and D8 are outputting signal right? One that open the gate K1B and the other that switch polarity for the motor depending on the limit switch state?
This depends entirely on what your control software does.
For example, you could write code to ‘pick’ K1 when K2 is ‘dropped’. picked=ON=energized dropped=OFF=de-energized.
This could happen at 3 in the afternoon or what ever.
You could write code to look at S3 to see if it was pressed ‘5 times in a row’, then if so, pick K2 then K1 to reverse the direction of the door motor.

3)at this point isn't arduino a bit useless for only outputting 2 signals that they even triggered by an external sourrce (buttons)? (poor guy!)
Software in the Arduino makes control of outputs and input sampling easy.
Software is easily changed and added to as needed.
An Arduino is not always needed, it’s all up to you and your requirements.

If that's the case i think i understood the diagram.. so the other questions is:

4)are there PCB already designed for this on sale? Or would be a better idea (or funnier) to make it myself?
If you have a few construction skills, it’s very simple to wire ccts. like this on breadboard material.

5)Or else ditch "en masse" relays and use only inputs and outputs from arduino(less practical maybe?)
To drive high current loads, you need drivers like transistors, relays, solid state drivers.
The Arduino itself is very limited in its drive capabilities.

  1. I almost forgot about the vnh2sp30 motor driver. Is it useless?
    You can use one of these, it’s all up to you and your abilities.
    I suggest new people use a simple relay cct. for: low speed, not often operated, applications like this.
    Often what happens with a motor driver and a noob is something gets miswired, shorted, or there is static discharge rendering the motor driver dead. :frowning:

Thanks again Larry for taking your time to teach me (and i hope others too)!
In the end your drawing is all i need to complete the task?
I'm defentely buying all the parts this week and give it a try!
I also stumbled upon this video Creepy Creations - Wiper Motor Control - YouTube and i understood more the need to ditch a motor driver and use relays instead.
I'll let you know my progress!

I have one more question: i'll be able to program arduino to make the task where i want the door open forever instead of "X" seconds ? Like a double press button? I'm sure it's possible

If you look at this thread, you will find posts showing breadboard wiring, chassis ideas and much more, sorry 400+ posts to go through.

Don’t have the time to direct you to the exact ones.

The schematic is a bit generic but should cover your needs.

Note, the pins on your relay may be different from that in the schematic.

To make it simple, you can use a DPDT relay for both relays.

Remember to get a prototyping breadboard to mount your components on.

Maybe get some PCB terminal strips to connect your external components to.

The common TO92 2N2222 will be able to drive that relay in the link, confirm you will be using 12VDC in your project.

Software can do anything :wink: .

EDIT
Looks like your motor draws much more current than mine does, mine draws ~1 amp (with a stall current of 3 amps).

Just seen the current ratings in the data sheet for your motor, they seem high.

Please confirm your motors running current under load, and the motor’s resistance. (different relays and transistors may be necessary).

Adding a current load sensor makes a good safety measure for a motor controlled door.

If current spikes but the limit switches have not triggered your code could reverse the door.

larryd:
EDIT
Looks like your motor draws much more current than mine does, mine draws ~1 amp (with a stall current of 3 amps).

Just seen the current ratings in the data sheet for your motor, they seem high.

Please confirm your motors running current under load, and the motor’s resistance. (different relays and transistors may be necessary).

I tried measuring without load and it seems to draw .40 mA . Is that possible ? seems very low!
Sincerly i dont know how to measure it in high load because the reduction is very strong and even by hand i’m not able to restrain the chuck/spindle. Do you ideas how to do it ?
I tested with a simple 5A (directly) source and all seemed(!) fine … nothing was hot but there was no load