Here is a list of all the postings Rockingdodge has made in our forums. Click on a thread name to jump to the thread.
Thread: Screwcutting on the Denham Junior mk11 lathe |
03/01/2022 16:41:52 |
I need to make a couple of chuck backplates but really not sure how to approach this as the leadscrew has no counter connected to it. What the lathe does have though is a forward and reverse on the leadscrew so would this keep the thread in sinc? Otherwise how can I do this? Thanks Roger |
Thread: DRO Z-Axis /4th axis "combiner" |
03/01/2022 13:50:44 |
//Part 2 void loop() {
pos1 = scale1.read(); pos2 = scale2.read();
delt2 = pos2 - oldpos2; delt1 = pos1 - oldpos1; delt = delt2 - delt1;
while (delt > 0) { if (outA == LOW && outB == LOW) { //if 9 is low and 8 is low PORTH = B00100000; //push 8 high & 9 low outB = HIGH; delt--; } else if (outA == LOW && outB == HIGH) { //if 9 is low and 8 is high PORTH = B01100000; //leave 8 high, Push 9 high outA = HIGH; delt--; } else if (outA == HIGH && outB == HIGH) { //if 9 is high and 8 is high PORTH = B01000000; //push 9 high & 8 low outB = LOW; delt--; } else if (outA == HIGH && outB == LOW) { //if 9 is HIGH and 8 is LOW; PORTH = B00000000; //leave 8 LOW push 9 low outA = LOW; delt--; } }
while (delt < 0) { if (outA == LOW && outB == LOW) { //if both are low, PORTH = B01000000; //leave 8 low, Push 9 high outA = HIGH; delt++; } else if (outA == LOW && outB == HIGH) { //if 9 is low and 8 is high; PORTH = B00000000; //push 8 low, Leave 9 LOW outB = LOW; delt++; } else if (outA == HIGH && outB == LOW) { //if 9 is high and 8 is low; PORTH = B01100000; //push 8 high, Leave 9 HIGH outB = HIGH; delt++;
} else if (outA == HIGH && outB == HIGH) { //if 9 is high and 8 is high; PORTH = B00100000; //leave 8 high, Push 9 LOW outA = LOW; delt++; } } oldpos1 = pos1; oldpos2 = pos2; } |
03/01/2022 13:50:13 |
Code as promised, had to split over 2 posts as too long!
/* Code by Kealan O'Carroll, April 2019 Encoder.h library by PaulStoffregen http://www.pjrc.com/teensy/td_libs_Encoder.html
Ported to Mega by Roger Clark 03/01/2022
Code intended for an arduino mega with the following wiring: Pins 10, 11 : Scale 1 inputs Pins 12, 13 : Scale 2 inputs Arduino Pins 8, 9 : Outputs to DRO A and B pins. (Pins 6 and 8 on a DSUB9 type plug)
*/
#define ENCODER_OPTIMIZE_INTERRUPTS #include "Encoder.h" Encoder scale1(10, 11); //Wire first scale A & B quadrature lines to arduino Pins 10 and 11 Encoder scale2(12, 13); //Wire second scale A & B quadrature lines to arduino Pins 12 and 13 //If either of the scales reads in the wrong direction, reverse the pin numbers above (e.g. (4,2) changes to (2,4)
long pos2 = 0; long pos1 = 0; long delt = 0; long oldpos1 = 0; long oldpos2 = 0; long delt1 = 0; long delt2 = 0; bool outA = LOW; bool outB = LOW;
void setup() { // MEGA PORTS // PORTH maps to Arduino digital pins 0 to 7 DDRH = DDRH | B01100000; // Defines D8 (PH5) & 9 (PH6) as outputs for Panel // PORTB maps to Arduino digital pins 8 to 13 DDRB = DDRB | B00000000; // Defines 10-13 as inputs PORTH = B00000000; // sets digital pins all Low PORTB = B00000000; // sets digital pins all Low } |
03/01/2022 13:44:23 |
I've been trying to get my quill and head encoders to work together for a couple of months now, could not get a nano to work correctly. I purchased an M_DRO summing interface instead but that would not work either, just kept flashing between 0 and 5 microns. So yesterday and today I ported the code over to an Arduino MEGA, wired it up, switched on and hey presto it worked so I cannot understand why the M_DRO interface doesn't! The encoder are all 5 micron Vevor encoders. I'll put the code down below in case it's useful to anyone. Have a great New Year
Roger |
Thread: Ratrods & photography |
08/11/2021 12:05:56 |
Scaling up to full size next Sean? Roger |
Thread: Sewage dumping |
24/10/2021 16:29:54 |
Posted by duncan webster on 24/10/2021 15:26:00:
Posted by Rockingdodge on 24/10/2021 14:42:59:
Posted by duncan webster on 24/10/2021 13:50:34:
Posted by Rockingdodge on 24/10/2021 12:11:23 ....... the water company dumped raw sewage for 40,000 hours in 12 months!!
Roger
They must employ Dr Who, there are only 8760 hours in a year. However Umm no Duncan, if one outflow is opened for say 100 hours in a year and there are say 100 outflows then that is 10,000 hours of sewage, now the river Wye is one of the longest river in the UK so you see how the maths work and how the total can add up.
Edited By Doh! Silly me! |
24/10/2021 14:42:59 |
Posted by duncan webster on 24/10/2021 13:50:34:
Posted by Rockingdodge on 24/10/2021 12:11:23 ....... the water company dumped raw sewage for 40,000 hours in 12 months!!
Roger
They must employ Dr Who, there are only 8760 hours in a year. However I do take the point, round here tots of driveways just direct rainwater onto the road, from where it goes into the foul sewer. I'd rather have road runoff in the river than sewage, is this a case of the best being the enemy of the good? Umm no Duncan, if one outflow is opened for say 100 hours in a year and there are say 100 outflows then that is 10,000 hours of sewage, now the river Wye is one of the longest river in the UK so you see how the maths work and how the total can add up. I don't know about your area but surface water, in the main, is separate to sewage here, the exception being where roof runoff at the rear of old houses do enter the sewage system. Roger Edited By Rockingdodge on 24/10/2021 14:47:32 |
24/10/2021 12:11:23 |
The River Wye was in the news last week because the phosphate levels are waaaay over the legal limits and while land runoff from chicken farms poo being spread over fields near the river or tributaries the water company dumped raw sewage for 40,000 hours in 12 months!!! It's a shame as we had otters coming back into the area and a couple of pairs of Kingfishers but with the minnows dying from the pollution we will lose them, also salmon caught in the river is down to low double figures this year. Welsh Water are now saying they are 'looking into the issue' (probably because the issue has been highlighted). Before anyone says about profit, WW is a not for profit company. It's such a shame to see the river deteriorate so much over my 70 years here. Roger |
Thread: Antikythera Mechanism |
06/10/2021 12:26:56 |
My random 2P's worth: They knew about gears and ratios at that time so could they have made some kind of 'rotary table' out of the parts they had already made? Tin hat now on |
Thread: Warco GH Universal mill help |
23/09/2021 09:35:17 |
The mill actually weighs in at 360kgs and the head is the heaviest part of the mill so while it's an estimate I don't think I'm that far off. If the mill had a rack for the head I would go with a counterbalance but it has a screw in the column and takes 3 1/2 turns of the handle to move 10 mm! The effort to move the head down is appreciable while not as much as going up. A freshly charge battery in my drill will move the head up but is on the cusp of the ratchet triggering to avoid motor burnout etc. I think I'll look for a mobility motor or similar and build on from there, meanwhile I'll use the cordless drill as I have 3 batteries so always have fresh ones available. Cheers Roger |
22/09/2021 22:44:58 |
Posted by not done it yet on 22/09/2021 21:13:48:
Posted by Bazyle on 22/09/2021 20:10:53:
Counterbalance might help. Unless you need to use a stepper for a cnc application it is a terribly inefficient motor for this application. A traditional solution would be a windscreen wiper with as much reduction gearing as needed. Also perhaps a mobility scooter motor which seem to crop up a lot. Problem then is big enough PSU. I like Bazyle’s suggestions. No real problem with PSU - drive the buggy motor from a (smaller than the buggy required!) battery and recharge with a trickle/float charger? Maybe a small three phase motor with a VFD though a suitable gearbox, as a further possibility? The counterbalance, if possible, is certainly the key to the power required. Edited By not done it yet on 22/09/2021 21:19:49 There's no easy way for a counter balance and I think it would need to offset about a 100kgs to work. I don't need variable speed just need it to go up and down at a suitable rate, I have a couple of leisure batteries left over from my touring days so a buggy motor would be worth looking into. |
22/09/2021 19:12:20 |
I've recently acquired a Warco GH Universal mill and it's a great mill but the method for raising the head is rather laborious and long winded!!! I tried a 3nm stepper motor but it couldn't touch it, so I then tried my 18v drill and it did move it once fully up and down but now the ratchet in drill mode has kicked in and no longer works. Has anyone done this 'upgrade' or got any suggestions? Cheers Roger |
Thread: Grubby Screws! |
19/09/2021 19:26:00 |
I've decided to drill out and thread for M8 rather than mess around with making some that would have an inherent weakness of a slotted head. Thanks for all your advice chaps. Roger |
19/09/2021 16:38:25 |
Hi, I have a couple of holes threaded ME 1/4" x 32, I thought I had some grub screws to fit but apparently not, the ones in my tub marked as 1/4 by 32 are too small, duh! What size grub screws do I look for, 10-32? Cheers Roger |
Thread: LPG Gas jet sizing |
07/09/2021 09:33:45 |
Posted by Fred Graham 1 on 07/09/2021 08:40:04:
Hi Harry, Thank you for the Link but they don't seem to sell Jets. I tried there 'search bar' and it came back as not recognised, so it look like another supplier not stocking them, which Is surprising. I will contact them again and see f I can get a clear 'yes or no' response. All the best, Fred Graham
Not sure how much exploring you did but if you had scrolled down to the bottom of the page you would have seen a link to the page you need - gas essentials and jets Roger |
Thread: Need some help/advice |
03/09/2021 19:32:47 |
I'm starting to set up my new to me mill, it has a table size of 800 x 240mm. I currently have a small 'toolmakers' vice with 3" x 4" jaw opening, I want to get a mill vice to fit on the table but don't really know what size to go for, 5" or 6" with the commensurate overhang or keep to a vice that stays within the boundaries of the table. Thanks Roger |
Thread: Electronic Lead Screw Project |
29/08/2021 17:49:10 |
My first Duplicate! Edited By Rockingdodge on 29/08/2021 17:50:32 |
29/08/2021 17:49:08 |
Think this is the one? Roger |
Thread: Hydrogen |
24/07/2021 14:55:46 |
Electric cars are promoted as lower maintenance costs but where is the cost of battery replacement factored in as I can't believe they would last the vehicles life and would there be a tail-off of performance as the batteries reach end-of-life? And would the recycling/refurbishment of batteries be completely green? Roger |
Thread: KENNIONS MODEL ENGINEERING SUPPLIES |
08/06/2021 14:47:09 |
Posted by Robin on 08/06/2021 14:27:33:
They sell precision ground EN1A round bar. Never seen it anywhere else. Should they stop selling it, is there anywhere else? m-machine.co.uk sell it and I've always had good service from them. Roger |
Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!
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
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.