Hi guys I'm brand new to the Arduino world but I'm really going to need some help since i have never programmed or know how to connect hardware together
Im trying to make a program for an air solenoid that will be connected to a metal pipe. That pipe will be mounted on some linear rails and will move up and down with the use of a stepper motor, a belt and linear bearings. So what i want to do is have a switch that starts the program that will turn on the solenoid and let air in the pipe, at the same time i want the stepper motor to start moving and when it hits the first limit switch to reverse the direction and when it hits the second limit switch back at the top to end the program
Can someone guide me as to what hardware i will need to have this work and please help with coding since i have never coded anything before. I know its a lot to ask but im trying to learn this stuff
What i have so far is an arduino, and stepper motor, for the programing what other equipment will i need?
I saw some videos online saying that i will need a seperate power supply for the stepper motor and will need a stepper driver
For the solenoid i saw that i will need a diode for the spark, a 1k resistor and a transistor.
Is there anything else that i need to make this work?
Does your solenoid use the same voltage as the stepper?
Which Arduino? Spark? Which stepper motor? Is the motor 5V or 12V?
You should never power a motor from an Arduino. Most Arduino boards can only source 40mA per port, but to be safe you can safely power an LED.
Whether you need a driver (H-Bridge?) depends on the motor.
What would really help is a schematic, or even just a block diagram. (Note- Pretty Fritzing pictures are NOT schematics).
It only says 12v for the solenoid but it doesnt say how many amps
This is the specs for the stepper driver, it says 1.5 amps but doesnt say the voltage
I think it said 3.6v 1.5A for the stepper motor
The arduino: RexQualis Uno R3
Stepper motor:17HS4401S twotrees
I think it said 3.6v 1.5a for the stepper motor, i saw online that they use a tb6600 to power them so im going to order one of those but what else do you think i need?
I also saw that you can get 12v from the arduino to power the solenoid, is that true or no?
Patience.
So, the stepper motor moves the pipe? What does the air do?
Im sorry im just nervous with getting all the parts and doing the project in time
One side of the pipe will connect to the air solenoid and the other side will be capped, along the face of the pipe there will be small holes where the air will come out, and it will be used pretty much as a pneumatic wiper for a window
OhBoy- are you in trouble!
If you don't have two or three of weeks- minimum- then you should probably go to the Gigs forum and offer to pay someone to write your code.
Do you have an idea maybe what other hardware i will need?
You need a plan.
You need a block diagram of how the assembly will go together.
You need a flowchart of what you want the program to do.
Your description conveys none of this to us.
When I build a Halloween prop or an escape room prop, I need six to eight weeks of full-time effort to get a finished project. It's only April and I am already sketching out this years Halloween prop.
I just want to press a button and turn on a solenoid and to make a stepper motor move, once the first limit switch is hit to turn off the solenoid and change the direction of the stepper motor, once the second limit switch is hit, turn off the stepper motor and stop the program
You don't really need limit switches unless you expect the motor to be overloaded and lose steps. You can calculate how many steps between top and bottom. Assume you start at the top. Turn on air, move down N steps, turn off air, move up N steps.
Can you please tell me how to program the stepper motor to move a specific number of steps?
How do i program the solenoid to come on and off?
Any help would be greatly appreciated!
I would. If the stepper gets off by a little bit the limit switches are insurance.
The same as turning an LED on or off. If you have never done this with an Arduino, then buy a sensor kit (there's dozens of them on Amazon) and start experimenting with them and the sample programs in the IDE. We will help you when you get stuck with errors you don't understand.
My Multi-tasking in Arduino has a complete stepper motor example that may get you started.
This project Stepper Speed Control Library for Arduino includes a complete hardware circuit.
google - stepper motor forward reverse
For the built-in Stepper library: "myStepper.step(NumberOfSteps);". For the AccelStepper library: "myStepper.move(NumberOfSteps);". Read the documentation and/or examples for the library you choose.
Typically: digitalWrite(AirValvePin, HIGH); and digitalWrite(AirValvePin, LOW);