Month: September 2018

stepper motor driver: operated in a DIY Smart Shades

stepper motor driver is an indispensable part of the stepper motor. They are both widely used in various industries. Inexpensive motorized shades are the holy grail for DIY smart home enthusiasts. Many have tried and many have failed to produce a product that is comparable to the multi thousand dollar shades offered by the big name automation companies.
Making a successful project starts with picking the right materials for the job.  StepperOnline has a huge selection of stepper motors, so I was easily able to pick out the perfect motor for my specific situation.  I opted for a planetary geared stepper motor with a 5:1 gear ratio.  StepperOnline makes super high quality stepper motors for relatively cheap, and this one is no exception.
Lets talk briefly about the important differences between a stepper motor and a normal DC motor.  When you apply current to a DC motor it spins in one direction, raise the voltage and it spins faster, flip the polarity and it spins in the opposite direction.  Those are all useful things, but one thing you can’t do with a DC motor is move it to a specific location and lock it in that location.  That’s where a stepper motor shines.  A stepper motor uses 4 wires instead of 2.  Applying current to two of those wires will advance the motor exactly 1 step.  If I want it to go the next step I’ll need apply current to the other two wires.  The motor we selected has a step angle of .35 degrees, which means every step rotates the shaft by only .35 degrees.  This is really useful information when we consider that this will allow us to know the exact amount that our shades have been rolled down at any given time.  For this specific case we know that we’ll need to do 1028 steps in order to move 360 degrees without using microstepping.
The decision to use a planetary gears is just as important as the decision to use a stepper motor.  Planetary gears allow us to amplify the torque of the stepper motor by a factor of 5 in this case, and that’s important because it means that a less torquey stepper motor will still be able to supply the needed rotational force to roll the shades up and down, but the other reason it is important is that it also makes it 5 times more difficult for the weight of the shades to rotate the shaft of the stepper which will prevent slippage between steps.
Since a stepper motor needs to have a relatively large current pulsed rapidly, you’ll also need a stepper motor driver to handle the heavy lifting. I used the DM320T driver from StepperOnline because it can provide controlled current levels at fairly high voltage.
For a microcontroller I used an ESP8266 based node-mcu because I’m very comfortable with them.  But any ESP8266 based micro controller would work.
Let’s talk briefly about the code.  My code is fairly simple and utilizes the AH_easydriver library for stepper motors.  The code is based off the fact that these shades will go from completely rolled to completely unrolled in 13 full rotations.   Because I’m using a stepper motor I’ll be able to precisely control the number of rotations by sending a specific number of steps.
This stepper motor driver has 3 pins that need to be connected to your microcontroller: The DIR input on the driver connects to GPIO4, which is marked as D2 on the node-mcu, The PUL input on the driver connects to GPIO 0 marked as D3 on the node-mcu, the ENA input connects to GPIO13 which is D7, and the OPTO pin needs to be powered by 5V to power the optoisolator LEDS.  You’ll also need to make sure that your board and your driver share a common ground.
Next you’ll attach the 4 wires of your stepper motor to the stepper motor driver.  The black wire connects to A positive, Green to A negative, Red to B positive and Blue to B negative and attach your 12V power supply to Vdc and Ground.
Before we plug it in, lets double check that our dip switches are in the right place.  Our stepper motor is rated for 1.68 amps, so we’re going to set the current limiting driver to 1.34 amps RMS just to make sure we don’t overload our motor.  We also want to set the resolution to 800 pulses per revolution.
This means our dip switch setup is going to on off off, and off on on.
To test it I’d recommend turning the shaft of the motor manually before you plug it in to line it up with one of the screws we want to make sure that our motor moves in full rotations, so send your motor a command to move 13 full rotations and if it rotates 13 times and ends up in roughly the same position that it started you’re ready to install.
Mount the brackets loosely on either side of the shade and slide the mounting hub onto the stepper motor shaft.  Once everything is in place, slide the brackets closer together to make everything fit nicely, and tighten the mounting bracket screws.
If everything went according to plan you’re done and you should be able to control your shades via MQTT!  Test it out by sending different values to the shades.  The great part about this code is it won’t get confused if you send it a new value before the old one has finished processing.  If you find that your shades are rolling up the wrong way, you can just reverse the + and – wires for each of the A and B motor pairs on your stepper motor driver and the motor will spin in the opposite direction.

nema 23: operates fine in a new linear robot

nema 23 is used broadly in robotics. Easily and accurately move in the smallest space. These are the requirements of linear robots, such as automated tasks used in processing areas and test automation.
In order to produce products at a lower cost in the shortest time, the automation of the production process is increasingly important for mechanical engineering. For this reason, igus said they have developed a new compact linear robot with nema 23.
Alexander Muhlens, director of drilin transmission technology planning at igus, explained: “Two drilin ZLW belt shafts and one drilin GRW rack shaft ensure precise guidance and lubrication through sliding elements made of high performance plastics.” The system configuration file for mounting bracket can also be used as an option. The linear robot is delivered within 24 hours, ready to connect nema 23 and encoder. Therefore, customers can install products on the machine the next day.
Drylin linear robot for instant use
In addition to the new DryLin E-line robots used in a small work envelope, igus also provides line and plane-line robots directly from inventory. All linear robots include pre-configured DryLin linear modules, all the components and linear shafts with nema 23 required for self-assembly.

nema 17: a suitable option for 3d printers

nema 17 is widely used in 3D printers. Though stepper motors are the main components of all projects, gearboxes are often required, especially in applications such as CNC machines and linear drives for 3D printers. Among these mechanisms, a high torque, low backlash gearbox may be the most suitable option, and a 3D printed, separable planetary harmonic driver for nema 17 may be better.
We suspect that any plastic gearbox will not bounce back as Sirek SBurom claims. But we can see the benefits of design. It has some good functions. Its perfect combination with nema 17 is also a very good feature, and the design on Thingivers should not be too difficult, so it cannot be stretched up and down. Nema 17 drives a solar gear with two planetary gears, each with a 56-tooth stationary ring and a 58-tooth output ring. Each rotation of a planet around a fixed ring causes the output ring to rotate one tooth, resulting in a reduction of nearly 100:1.
We think the term “harmonic” on this gearbox is a bit of a misnomer, because the definition of harmonic driver seems to be characterized by periodic deformation of the bent spline, no matter how you call it, this nema 17 is pretty cool and can be a convenient tool for all kinds of construction.

nema 34 stepper motor: is it better than other stepper motor?

nema 34 stepper motor is larger than other stepper motors, and the new nema 34 frame (86 mm x 86 mm, 6, 0 nm) stepper servo integrated motor has been released by Applied Motion Products. The nema 34 stepper motor can be installed in more demanding applications requiring greater torque.
Available in four lengths, the nema 34 stepper motors offer machine designers a range of torque values to choose from. The longest motor (-6) provides a holding torque value of 82 nm and a peak torque value of over 92 nm. The TXM34 integrated motor is rated at ip65, all connected to the M12 connector and the front axle has a shaft seal. The TSM34 and TXM34 integrated motors support various control options, including step direction, speed, and series command mode. They also support the implementation of stored programs using the Q programming language of Applied Motion.
The nema 34 stepper motor consists of two power connections, a mains supply and an auxiliary supply, so that themotor supply can be removed while maintaining the controller and communication power. This feature eliminates the need to reinstall the system after an emergency stop event, which for many applications can provide the same end result as using a motor with an absolute encoder. In addition to the traditional star network topology, the nema 34 motor can be connected to a line network topology.

nema 23 stepper motor: works well in MicroMill

nema 23 stepper motor is applied in a MicroMill which fit perfectly, the nema 23 stepper motor is powerful enough to drive this machine.
MicroMill is used to cut or carve any material that is softer than steel. The unit is fully assembled, not as a set of components, and the project focuses on the open source concept of software and hardware. MicroMill uses nema 23 stepper motor and a microcontroller to adjust the speed of the tool from 5 to 20,000 revolutions per minute.
At present, there are three steps from originality to finished product processing. It can be designed with CAD software and can be exported to STL file. Tool path generation can be done via CAM software. RP3D recommends MeshCam or SketchuCam to generate G code. Then the G code is pushed to the microcomputer through the USB line, and the cutting begins.
The construction window is 115 x 110 x 64 mm, and the entire unit needs 262 x 196 x 222 mm on the desktop. MicroMill weighs 6 kilograms and can receive 3.2 millimeters of cutting tools. Details can be cut with a resolution of 0.0125 mm. Pay special attention to purchasing parts, using nema 23 stepper motor, igus self-lubricating bearings and Proxxon rotary units.

dc brushless motor: why does it develop so fast?

dc brushless motor is broadly used in various industries, the market is still growing because the demand for electric vehicles in developing countries is increasing, the demand for HVAC applications is increasing, and the development of robotics technology is increasing.
In 2017, the global dc brushless market is accounted for $5.59 billion, and is expected to grow at a compound annual rate of $14.11 billion by 2026 of 10.8%.
dc brushless motor is also called electronic commutation motor or synchronous dc motor powered by dc power supply. These types of motors are very effective in producing large amounts of torque in a wide range of speeds. In dc brushless motor, permanent magnets rotate around settled armature which overcome the problem of current and armature connection. They are known for their smooth running and holding torque at rest.
In terms of speed, the 2,001-10,000 RPM portion grew significantly as demand for high reliability, high energy efficiency and compact medical equipment increased. Through end-users, the consumer electronics sector has maintained remarkable market growth and is expected to remain dominant in the future. The recognition of dc brushless motor in the field of household appliances and electronic equipment will be enhanced because of the advantages of dc brushless motor, such as cost reduction, energy efficiency.

stepper motor driver: new version is released

stepper motor driver is very important for stepper motor, the stepper motor can not operate without stepper motor driver. Three new stepper motor drivers are produced by Toshiba America Electronic Components company. They can detect stepper motor overload and automatically adjust the stepper motor power supply to suit this load. When the stepper motor exceeds its designed driving capacity, the motor motion accuracy will drop sharply, and the stepper motor may stop running. Normally, stepper motor driver solutions avoid this by driving too much current to ensure operating margin in the worst case.
Toshiba’s new stepper motor driver is the first to adopt its proprietary anti-stall and active gain control (AGC) technology.Compared with existing products without AGC functions, this stepper motor driver can reduce motor power and heat by 80% by operating at rated current rather than high current, while maintaining motor accuracy and efficiency under various workloads and speeds.
To reduce noise and vibration, the new stepper motor drivers provide full step, half, quarter, 1/8, 1/16 and 1/32 step resolution for fast, accurate motion. They can also identify various error conditions, thereby improving system security and reliability.
Thus, for robotics, precision manufacturing and 3D printing or other applications which require stable, precise and high-speed control, the new stepper motor driver is definitely suitable.

bldc motor: how does it come out?

bldc motor is produced in accordance with the times. For the electronics design industry, this is an exciting time as embedded electronic functions have penetrated into every aspect of modern society. With the subversive growth of the Internet of Things (IoT) and new intelligent manufacturing (also known as Industry 4.0) requires designers to develop powerful, compact, accurate and efficient motion-driven solutions.
It’s been more than a century since electric motors existed, but the initial design was inefficient, bulky and inaccurate. The emergence of rare earth magnets and the design of advanced bldc motor have given rise to a new series of motors that are small enough to be installed in confined spaces, powerful enough to do practical work. What’s more, bldc motor is efficient enough to be used in wireless applications or remote applications.
With the pressure of creating products that are both functional and cost-effective, electronics engineers must get the best performance from every system they design.
High-performance bldc motors deliver the performance and economics required in today’s demanding applications. This includes applications ranging from smart home appliances to automated propulsion of IoT equipment, from industrial workshops to “downhole” drilling and mining operations, bldc motor is widely used in different industries.

nema 17 stepper motor: works great in my syringe pump project!

Nema 17 stepper motor is quite useful for my project. My project uses X-ray microfocus radiography to monitor the changing displacement patterns and saturations of Berea sandstone rock samples while undergoing water alternating gas injection coreflood experiments. Water alternating gas (WAG) injection is commonly conducted in enhanced oil recovery of partially depleted oil and gas reservoirs. Alternating slugs of water and gas are injected to displace remaining oil trapped in subsurface reservoir rock. However, gas flow often associates with fingering due to high gas mobility, which leaves a large portion of the reservoir unswept. Many mobility control agents have been proposed to curb the high gas mobility and hence improve the efficacy of the WAG technique (Fig. 1). The agents are aimed at decreasing the permeability and/or decreasing the apparent gas viscosity; examples include foams, polymers, and nanoparticles. My study primarily focuses on the use of foam as a mobility control agent for conformance improvement.

Fig. 1—Improved sweep efficiency, reduced effects of gravity segregation and heterogeneities in FAWAG
The experiments are conducted within the X-ray cabinet. X-rays are perpendicularly passed through the rock sample during the WAG coreflood experiments and images are taken (Fig. 2). Analysis and processing of these images will allow us to visualize the changing displacement patterns and saturations of the rock sample as alternating slugs of water and gas are injected. The X-ray machine itself is a shielded enclosure, providing a physical barrier between damaging radioactive X-rays and the outside environment. This means the X-ray cabinet is a self-contained and closed system. Any pumps or tools placed within the X-ray cabinet can only be powered from within the X-ray cabinet.
For our application, a 20V battery is used to power the injection syringe pump and is placed along with the rest of the fluid injection setup within the X-ray cabinet. Once the interlocks of the X-ray cabinet are secured, which is the only way for X-rays to be generated, we will not have access to the interior of the X-ray cabinet. Thus, the pump must also be able to be remotely controlled via Bluetooth. An android phone or computer is used to wirelessly operate the fluid injection apparatus via an Arduino Uno and HC-06 Bluetooth module. Pictures of the automated fluid injection setup along with the syringe pump is shown in Fig. 3. More pictures of the syringe pump is shown in Fig. 4.

Fig. 2—Fluid injection setup
Fig. 3—Flow automation setup with portable syringe pump placed within the X-ray cabinet

Fig. 4—Syringe pump with components (1) NEMA motor (2) electronics (3) motor mount (4) shaft coupler (5) syringe plunger mount (6) syringe plunger (7) syringe barrel holder (8) syringe barrel (9) syringe tip holder (10) mounting rail (11) M8 threaded rod (12) smooth rod
The syringe pump is able to inject at pressures as high as 100 psi and at flow rates as low as 1 cc/min. Total injection volume before having to disassembly the pump and refilling is approximately 100 mL. The components for the syringe pump are listed below:
1)NEMA Motor: A nema 17 stepper motor with a gear ratio of 100:1 is used to achieve the required torque and speed. With a 48mm body and 1.68A rated current, the motor purchased from STEPPERONLINE is very suitable for an application that requires low speed and high torque.
2)Electronics: The various electrical components achieve flow automation, data logging, and stepper motor control. For flow automation, an android phone or computer is used to wirelessly operate the fluid injection apparatus via an Arduino Uno and HC-06 Bluetooth module. For data logging, pressure and temperature monitoring is accomplished through a DS 3231 Real Time Clock module, ADA254 Adafruit Micro-SD Breakout Board, and 100 psi Autex pressure transducer. For stepper motor control, a separate Arduino Uno and HC-06 Bluetooth module are used, along with a Big Easy Driver. Electronics purchased from various vendors including Amazon, SparkFun, and Adafruit.
3)Motor Mount: A 3D printed part to securely hold the NEMA motor in place. Printed in ABS (Acrylonitrile Butadiene Styrene) thermoplastic.
4)Shaft Coupler: Purchased from STEPPERONLINE, the 8mm-8mm Flexible Coupling 18x25mm CNC Stepper Motor Shaft Coupler connects the stepper motor to the threaded rod.
5)Syringe Plunger Mount: This 3D printed part with a M8 nut embedded inside is used to translate the rotational movement of the stepper motor and the attached M8 threaded rod to the translational, horizontal movement used to push or pull the syringe.
6)Syringe Plunger: The stainless steel part of the syringe that pushes against the liquid residing in the syringe barrel.
7)Syringe Barrel Holder: This 3D printed part holds the syringe barrel.
8)Syringe Barrel: The stainless steel part of the syringe that holds the liquid.
9)Syringe Tip Holder: This 3D printed part rests against the syringe tip. Only the syringe tip holder has to be unscrewed and removed in order to refill the syringe barrel.
10)Mounting Rail: Components are mounted onto an 18-inch piece of 1″x2″ 80/20 extruded aluminum rail, which makes the design modular and space-efficient.
11)M8 Threaded Rod: Turns with the stepper motor.
12)Smooth Rod: Two smooth rods hold the separate components in place.
Both the nema 17 stepper motor with a gearbox for higher torque requirements and the specific shaft coupler were components I had a hard time finding a vendor for. That is until I stumbled upon STEPPERONLINE. Their very large catalogue of NEMA motor models and other accessories made it an ideal vendor to purchase from. After dozens of experiments with nearly hundreds of hours of use, the components purchased from STEPPERONLINE continues to function very well. Superb quality nema 17 stepper motor at a very reasonable price.

POWERED BY automation-blog