Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




47 posts

Geek


# 259869 27-Oct-2019 10:33
Send private message

Good morning all
 
Sorry, this is a relatively long 'ask'.
I am wanting to make a coil winder to wind several coils of around 25,000 turns each. My plan is to (initially, anyway) turn the coil to be would by hand, but to lay the wire on the coil using a guide driven by a stepper motor. Assuming the coil to be 50mm wide and using a wire that's 0.2mm in diameter, this will require each layer of the coil to have 250 turns on it. The stepper motor would be attached to a lead screw that the wire guide is attached to. Once a coil layer is complete, the stepper motor will then reverse direction, and the next coil layer would then be wound. If the stepper motor is directly connected to the lead screw, and the pitch of the lead screw is 1mm, then the stepper motor will need (assuming a full step rate of 200 per rotation) to step 10,000 steps per layer of the coil. I can see that I will need to attach a sensor to the coil being wound so that it can send data to the Arduino as to how many rotations the arbour has done. The arbour rotation speed won't be consistent, as I will be turning it by hand (at the beginning of this project).
 
My question is: My experience with Arduino is very limited, and I am getting quite frustrated that I can't seem to find any information on line how to go about writing a suitable program for the Arduino. Can anyone steer me in the right direction?. What I need is a Arduino program (which, to me, sounds really simple) to drive the stepper motor the right (programmable) number of steps, which may be something like 200 for 20 input pulses (also needing to be programmable), and then after (say) 1,000 input (or 10,000) output pulses, the direction of the stepper motor to be reversed? 
 
I have an Arduino Uno kit, which I have experimented with (only flashing LED's), but the programs that come with the kit all appear to be based on 'time' rather than 'counting'. I am very much of the belief that I can do this, but need help from better educated people than me. I am aware I will need to get a stepper motor driver to drive the stepper motor. I have zero knowledge of programming - other than the above, so please be patient with me.
 
Thank you all, in advance.


Create new topic
4312 posts

Uber Geek

Trusted

  # 2344096 27-Oct-2019 12:45
Send private message

Figuratively the first hit on Google :-)

 

 

 

https://www.arduino.cc/en/tutorial/stepperSpeedControl

 

Or this for how to do a revolution at a time.

 

https://www.arduino.cc/en/Tutorial/StepperOneRevolution

 

 

 

Cheers - N

 

 





--

 

Please note all comments are the product of my own brain and don't necessarily represent the position or opinions of my employer, previous employers, colleagues, friends or pets.




47 posts

Geek


  # 2344097 27-Oct-2019 12:54
Send private message

Hello 'N'

 

 

 

Thank you for your reply.

 

 

 

Unfortunately, it's not a speed control I am looking for.

 

 

 

I need to input the Arduino with a (programmable number of) digital input(s) (from a sensor, probably optical) to move the stepper motor a programmable number of steps. Then, after 'x' amount of (either input pulses, or output pulses) I want the motor to change direction for an equal number of steps. I have had some difficulty trying to put my thoughts into words so my project plan would make sense. I have already spent many hours hunting the internet to try and find a similar program to what I want to achieve. 

 

 

 

Peter W


 
 
 
 


4312 posts

Uber Geek

Trusted

  # 2344098 27-Oct-2019 12:58
Send private message

Look at the second link I updated my post with - it shows how to do a revolution. The other links on the same pages show how to do steps. As for taking an input from a sensor - there are literally thousands of tutorials on that.

 

I think if you are hoping to find a program already written to do what you are after you're probably out of luck. The good news is the individual components of the program are trivial.

 

- Write a program to read inputs from a switch and print the output

 

- Write a program to read inputs from the optical sensor you want and print the output

 

- Write a program to move a stepper via typed in (or hardcoded) values

 

- Combine programs :-)

 

 

 

Cheers - N

 

 





--

 

Please note all comments are the product of my own brain and don't necessarily represent the position or opinions of my employer, previous employers, colleagues, friends or pets.


4312 posts

Uber Geek

Trusted

  # 2344100 27-Oct-2019 13:01
Send private message

Of course with digital inputs, you'll also have to learn about debouncing the input so you don't count single events multiple times.

 

Welcome to the rabbithole :-)

 

Just start small and simple, and build it out. Sure that's not a great way to design an application but in this case it'll be fine and it's a good way to learn.

 

N

 

 





--

 

Please note all comments are the product of my own brain and don't necessarily represent the position or opinions of my employer, previous employers, colleagues, friends or pets.




47 posts

Geek


  # 2344102 27-Oct-2019 13:14
Send private message

MMMmmm

 

 

 

Thank you for your help.

 

 

 

I think my (huge) lack of patience has got in the way here, as the need to wind this coil (with approximately 30,000 turns) has come about quite suddenly (I now have about 6 of these coils to wind) which lead me to 'dream' up the plan to make a coil winder. I have very limited knowledge of the Arduino, although I do have an experimental board here to play with. However, I don't have a stepper motor, driver, or optical sensor as yet. 


Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Vodafone New Zealand starts two year partnership with LetsPlay.Live
Posted 28-Jan-2020 11:24


Ring launches indoor-only security camera
Posted 23-Jan-2020 17:26


New report findings will help schools implement the digital technologies curriculum content
Posted 23-Jan-2020 17:25


N4L to upgrade & support wireless internet inside schools
Posted 23-Jan-2020 17:22


Netflix releases 21 Studio Ghibli works
Posted 22-Jan-2020 11:42


Vodafone integrates eSIM into device and wearable roadmap
Posted 17-Jan-2020 09:45


Do you need this camera app? Group investigates privacy implications
Posted 16-Jan-2020 03:30


JBL launches headphones range designed for gaming
Posted 13-Jan-2020 09:59


Withings introduces ScanWatch wearable combining ECG and sleep apnea detection
Posted 9-Jan-2020 18:34


NZ Police releases public app
Posted 8-Jan-2020 11:43


Suunto 7 combine sports and smart features on new smartwatch generation
Posted 7-Jan-2020 16:06


Intel brings innovation with technology spanning the cloud, network, edge and PC
Posted 7-Jan-2020 15:54


AMD announces high performance desktop and ultrathin laptop processors
Posted 7-Jan-2020 15:42


AMD unveils four new desktop and mobile GPUs including AMD Radeon RX 5600
Posted 7-Jan-2020 15:32


Consolidation in video streaming market with Spark selling Lightbox to Sky
Posted 19-Dec-2019 09:09



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.