By continuing to use this site, you agree to our use of cookies. Find out more
Forum sponsored by:
Forum sponsored by Forum House Ad Zone

Arduinos and Microcontrollers ref: Rotary Table Mew 249

All Topics | Latest Posts

Search for:  in Thread Title in  
SillyOldDuffer23/10/2017 14:05:56
10668 forum posts
2415 photos
Posted by John Haine on 23/10/2017 10:42:25:
Posted by SillyOldDuffer on 20/10/2017 17:35:13:

The problem here is whether your motor can keep up with very short pulses.

Actually the pulses trigger circuits in the driver IC, and are not applied direct to the motor. If you know which IC is used in your driver you can check the minimum pulse width, but I suspect it is only a few microseconds.

Yes of course! I didn't think it through.

With micro-stepping selected the controller output looks like a synthesised sine wave on my oscilloscope. It's made of spikes. I've no idea what happens to the waveform when it hits the motor coils but there must be limits to what the inductors will work with. Another 'find out how that works' addition to my 'to-do' list.

Ta,

Dave

John Haine23/10/2017 17:08:40
5563 forum posts
322 photos

This is a chopped drive - the motor inductance smooths it out to approximately sinusoidal current.

Greensands28/06/2021 20:52:06
449 forum posts
72 photos

I have just acquired a copy of MEW 249 to read up about the Arduino controlled indexer but am having problems in seeing exactly how the Uno Board is spaced off and attached to the lid of the enclosure. Could some kind soul please elucidate.

Journeyman29/06/2021 08:30:26
avatar
1257 forum posts
264 photos

Four holes in the Uno board, 4 matching holes in the display and 4 holes in the case clear plastic between display and case also with four holes. Bolt through everything could put plastic tube spacers in but not really required if nuts are lightly tightened down.

Have a look at my version on ** Journeyman's Workshop ** click on the images to enlarge.

John

John Haine29/06/2021 09:28:30
5563 forum posts
322 photos

If you have some small nut driver sockets a simple tip to make spacers is to mount one in the lathe chuck, feed a small stack of appropriate sizes nuts into the hex hole, bring a nominal clearance drill for the thread size in the t/s so so it nearly touches the first nut, start the lathe and feed slowly. As each nut is drilled out it slides onto the drill as you go into the next. Use nylon nuts for plastic spacers.

Greensands29/06/2021 10:00:39
449 forum posts
72 photos

Journeyman - I have sent you a PM

Journeyman29/06/2021 10:28:01
avatar
1257 forum posts
264 photos

Greensands, replied to PM. This image might help.

unomount.jpg

John

Tony Pratt 129/11/2021 19:43:05
2319 forum posts
13 photos
Posted by SillyOldDuffer on 09/12/2016 20:07:18:
Posted by Engine Builder on 09/12/2016 19:39:26:

sillyoldduffer,

I manged to alter the sketch to verify the key voltages and got similar results to your one.

If it helps other builders my LCD shield is badged DF ROBOT (Drive the Future)

This is the results I got.

  • NO_KEY 1023
  • RIGHT_KEY 0
  • UP_KEY 98
  • DOWN_KEY 253
  • LEFT_KEY 408
  • SELECT_KEY 639

Good work, you're officially a computer hacker now!

My LCD is a DF Robot as well - perhaps they all produce voltages like that.

I haven't got any further than getting the arduino and display to work. I wrongly thought I had a suitable motor, lack of which has taken the wind out of my sales...

Cheers,

Dave

Hi All, I'm now having a go at this project but have failed at the first hurdle, my figures are NO KEY 1022, SELECT 6412, LEFT 4112, RIGHT 0022, UP 1002, DOWN 2572, these seem way too high?? any ideas? Thanks, Tony

SillyOldDuffer29/11/2021 20:23:18
10668 forum posts
2415 photos
Posted by Tony Pratt 1 on 29/11/2021 19:43:05:
Posted by SillyOldDuffer on 09/12/2016 20:07:18:
Posted by Engine Builder on 09/12/2016 19:39:26:

sillyoldduffer,

I manged to alter the sketch to verify the key voltages and got similar results to your one.

If it helps other builders my LCD shield is badged DF ROBOT (Drive the Future)

This is the results I got.

  • NO_KEY 1023
  • RIGHT_KEY 0
  • UP_KEY 98
  • DOWN_KEY 253
  • LEFT_KEY 408
  • SELECT_KEY 639

Good work, you're officially a computer hacker now!

My LCD is a DF Robot as well - perhaps they all produce voltages like that.

I haven't got any further than getting the arduino and display to work. I wrongly thought I had a suitable motor, lack of which has taken the wind out of my sales...

Cheers,

Dave

Hi All, I'm now having a go at this project but have failed at the first hurdle, my figures are NO KEY 1022, SELECT 6412, LEFT 4112, RIGHT 0022, UP 1002, DOWN 2572, these seem way too high?? any ideas? Thanks, Tony

That's strange Tony. The buttons short out a line of resistors (circuit here, see lower right), and the values can only be between 0 and 1024. Your 1022 and 0022 look right but the other readings are off the scale. What hardware are you using?

Dave

Tony Pratt 129/11/2021 21:34:52
2319 forum posts
13 photos

Hi Dave, thanks for the swift reply! The board is a Sunfounder model Uno R3, the shield has no name that I can see? I have ordered a new board & shield from Amazon to see if the figures make any sense with them, if no go is there any particular brand that is reliable, as most seem to be made in China generics?

Thanks Tony

An Other30/11/2021 10:16:25
327 forum posts
1 photos

Arduino Unos have an analog input resolution og 10 bits, so the value read will be between 0 to 1023. Some Arduino board types have 12 bit resolution, so the value read will be between 0 and 4095. It is possible there are some 3rd party boards with 12 bit resolution (I have at least 2 of these)

As noted, the shield has a resistor chain connected between 0 and +5v, and the pushbuttons are connected across these resistors,so when you press one, the value of the chain changes, therefore the voltage at the Arduino analog input is changed, and the Arduino reads this as a value between 0 and 1023 (see above) - note that this switching is on the shield, not the Arduino.

The values read are not 'absolute' - they can vary slightly, and will not be the same from one board to another, due to things like resistor tolerance, so when testing for a value, you should check they lie between an upper and lower value (say a range of +/- 5 or 10).

It would appear to me that the odd values noted by Tony may be due to a programming error. There are many shields carrying LCDs/buttons - they all have different resistor chains, so although a 'testing' program could have the same format, the values read will be different.

An Other30/11/2021 10:18:44
327 forum posts
1 photos

Duplicate post removed.

Edited By An Other on 30/11/2021 10:20:37

An Other30/11/2021 10:30:48
327 forum posts
1 photos

If its any use- below is my test code for these LCD/Button Shields.

.

#include <LiquidCrystal.h>

//LCD pin to Arduino
const int pin_RS = 8;
const int pin_EN = 9;
const int pin_d4 = 4;
const int pin_d5 = 5;
const int pin_d6 = 6;
const int pin_d7 = 7;

const int pin_BL = 10;

LiquidCrystal lcd( pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

void setup() {

lcd.begin(16, 2);

lcd.setCursor(0,0);

lcd.print("LCD Key Shield";
lcd.setCursor(0,1);
lcd.print("Press Key:";
}

void loop() {
int x;
x = analogRead (0);
lcd.setCursor(10,1);

//The values given below may need changing depending on the LCD/Button shield
if (x < 60) {
lcd.print ("Right ";
}
else if (x < 200) {
lcd.print ("Up ";
}
else if (x < 400){
lcd.print ("Down ";
}
else if (x < 600){
lcd.print ("Left ";
}
else if (x < 800){
lcd.print ("Select";
}
} /End

Michael Gilligan30/11/2021 10:44:56
avatar
23121 forum posts
1360 photos

Don’t you just hate those smileys angry

MichaelG.

An Other30/11/2021 11:05:54
327 forum posts
1 photos

Thats really annoying - they weren't there when I posted. I left the site, came back later to check something else, and found this - worse than graffiti. If anyone is confused,it seems that the smileys replace the right-hand round bracket - they aren't part of the code laugh - and that smiley was deliberate!

Something else odd - when I opened the thread, the line at the top indicated there were 12 pages (7 89 10 11 12), but after posting, this changed to 10 pages (7 8 9 10) - are there some pages missing?, or is it just this lousy software.

Edited By An Other on 30/11/2021 11:08:42

Tony Pratt 130/11/2021 11:07:55
2319 forum posts
13 photos

Thanks guys, comments noted.

Tony

Peter Cook 630/11/2021 12:38:27
462 forum posts
113 photos

While this thread is resurrected, I thought I might point people at the prototyping sheilds I found when making my lathe controller. They are from Electronics - W19 Design, and have by far the nicest layout I have come across.

Rather than being an array of through holes, there is an array of 3 or 4 hole tracks and some longer ( power rails) which makes making connections between components and the Arduino pins far simpler and neater.

I have no connection other than a very happy user.

Michael Gilligan30/11/2021 12:56:33
avatar
23121 forum posts
1360 photos
Posted by Peter Cook 6 on 30/11/2021 12:38:27:

While this thread is resurrected, I thought I might point people at the prototyping sheilds I found when making my lathe controller. […]

.

Those do look very tidy, Peter yes

But, am I right in assuming that the company has no association with Vero

[ purveyors of strip-boards to the gentry ] ?

MichaelG.

.

Ref. http://verotl.com/circuitboards/protoboards

Edited By Michael Gilligan on 30/11/2021 12:58:30

Peter Cook 630/11/2021 14:17:11
462 forum posts
113 photos

Michael, Not that I know of - I'm just a customer. They seem to be a firm that makes custom exhibition stands, and this is something they designed to make construction of Arduino based specials easier.

Personally I'm glad they put them on the market - the short tracks make laying out and building one-off's far easier than the usual shields - although it would be interesting to know if they have permission from Vero for the name!!

Edited By Peter Cook 6 on 30/11/2021 14:19:38

Michael Gilligan30/11/2021 16:16:05
avatar
23121 forum posts
1360 photos
Posted by Peter Cook 6 on 30/11/2021 14:17:11:

[…]

- although it would be interesting to know if they have permission from Vero for the name!!

.

Thanks, Peter … Yes that was my point

They do look very useful though yes

MichaelG.

All Topics | Latest Posts

Please login to post a reply.

Magazine Locator

Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!

Find Model Engineer & Model Engineers' Workshop

Sign up to our Newsletter

Sign up to our newsletter and get a free digital issue.

You can unsubscribe at anytime. View our privacy policy at www.mortons.co.uk/privacy

Latest Forum Posts
Support Our Partners
cowells
Sarik
MERIDIENNE EXHIBITIONS LTD
Subscription Offer

Latest "For Sale" Ads
Latest "Wanted" Ads
Get In Touch!

Do you want to contact the Model Engineer and Model Engineers' Workshop team?

You can contact us by phone, mail or email about the magazines including becoming a contributor, submitting reader's letters or making queries about articles. You can also get in touch about this website, advertising or other general issues.

Click THIS LINK for full contact details.

For subscription issues please see THIS LINK.

Digital Back Issues

Social Media online

'Like' us on Facebook
Follow us on Facebook

Follow us on Twitter
 Twitter Logo

Pin us on Pinterest

 

Donate

donate