Ned Posted September 18, 2019 Share Posted September 18, 2019 or remove all the parts and just wire your china charger in instead? you have all the cell pins, temp and batt + and - there... just make an adapter so you can plug it into china one and call it good? 1 1 Quote Link to comment Share on other sites More sharing options...
flyingbrick Posted September 19, 2019 Author Share Posted September 19, 2019 Damn you guys are smart. will reply back when this thing is either broken or modified Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted September 26, 2019 Share Posted September 26, 2019 https://youtu.be/onQO9h5A83M Finally. Feels weird driving a car that used to have buzzing points. Now it only has this digital thing running the show. Torn between continuing the coil on plug thing or coding some decent ignition timing for it. 4 1 Quote Link to comment Share on other sites More sharing options...
SOHC Posted September 26, 2019 Share Posted September 26, 2019 Have you put that video on Ford Barn yet? Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted September 26, 2019 Share Posted September 26, 2019 1 hour ago, SOHC said: Have you put that video on Ford Barn yet? Sure... i doubt they'll look though. I should have posted it to the other forum just to get their knickers in a twist. So easy. 1 Quote Link to comment Share on other sites More sharing options...
IvyMike Posted September 27, 2019 Share Posted September 27, 2019 Congrats. How did you sort the ignition drivers in the end? Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted September 27, 2019 Share Posted September 27, 2019 6 hours ago, IvyMike said: Congrats. How did you sort the ignition drivers in the end? Cheated with opticouple chips to isolate the aruduino from the unbelievably noisy stock system. Quote Link to comment Share on other sites More sharing options...
flyingbrick Posted September 27, 2019 Author Share Posted September 27, 2019 43 minutes ago, Ghostchips said: Cheated with opticouple chips to isolate the aruduino from the unbelievably noisy stock system. What do you do for a living? U obviously aint a dummy! Quote Link to comment Share on other sites More sharing options...
ajg193 Posted September 29, 2019 Share Posted September 29, 2019 I managed to get my electronic leadscrew on the BarryLathe to cut its first thread today. The lathe probably hasn't cut a thread in 20 years. I still need to wire up a control panel so I can set the parameters without reprogramming it, but it is great being able to cut literally any thread pitch without changing a single gear. (Thread in image is a bodgy attempt at M16x1.5 with a random piece of HSS cutter) 1 Quote Link to comment Share on other sites More sharing options...
Ned Posted September 29, 2019 Share Posted September 29, 2019 14 hours ago, ajg193 said: I managed to get my electronic leadscrew on the BarryLathe to cut its first thread today. The lathe probably hasn't cut a thread in 20 years. I still need to wire up a control panel so I can set the parameters without reprogramming it, but it is great being able to cut literally any thread pitch without changing a single gear. (Thread in image is a bodgy attempt at M16x1.5 with a random piece of HSS cutter) you seen this guy? 1 Quote Link to comment Share on other sites More sharing options...
Ned Posted September 29, 2019 Share Posted September 29, 2019 On 26/09/2019 at 21:52, Ghostchips said: https://youtu.be/onQO9h5A83M Finally. Feels weird driving a car that used to have buzzing points. Now it only has this digital thing running the show. Torn between continuing the coil on plug thing or coding some decent ignition timing for it. You planning on designing a custom PCB for that now that you have a working solution? Looks bloody great Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted September 30, 2019 Share Posted September 30, 2019 8 hours ago, Ned said: You planning on designing a custom PCB for that now that you have a working solution? Looks bloody great I wasn't, but it is possible. 1 Quote Link to comment Share on other sites More sharing options...
ajg193 Posted September 30, 2019 Share Posted September 30, 2019 10 hours ago, Ned said: you seen this guy? Yeah, his videos came up about the same time I started ordering bits 1 Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted October 2, 2019 Share Posted October 2, 2019 If i have a command to run 'void taskname' in the loop, and the 'void taskname' points to another 'void taskname2' or something, will this run? I seem to be doing something wrong. Quote Link to comment Share on other sites More sharing options...
flyingbrick Posted October 2, 2019 Author Share Posted October 2, 2019 On 30/09/2019 at 20:32, ajg193 said: Yeah, his videos came up about the same time I started ordering bits This is great, really love the concept as its something that I'd never seen before on any manual lathe. I wonder how he will deal with disengagement and reengagement of the carriage and lead screw when doing multiple cuts. Eg, manually with lever and indicator arrow (as per lots of traditional lathes), reverse the spindle to drive the carriage back without disengaging (as per traditional lathes when you dont trust or have an indication arrow thing) or some kind of software reverse on just the lead screw.. hmmmn Quote Link to comment Share on other sites More sharing options...
ajg193 Posted October 2, 2019 Share Posted October 2, 2019 It works perfectly in every case, only issues are if you don't have a strong enough stepper or miss pulses from the encoder You can even make multi start threads by offsetting the spindle position by X degrees in the software. It's pretty much superior to a gear driven system in every way. You will have issues with using the thread dial for metric threads using an imperial leadscrew though, you could probably get around that by encoding the position of the carriage too. Doing that would allow you to compensate for machine wear, effectively allowing you to cut a perfect thread until the machine falls apart. 1 Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted October 4, 2019 Share Posted October 4, 2019 Could someone tell me why this if (analogRead(inPin) <= sensorThreshold) { if (coilState == LOW && coilPin == LOW) { coilState = HIGH; coilPin = HIGH; digitalWrite(outPin, !(digitalRead(outPin))); previousMicros = currentMicros; } if (coilState == HIGH && coilPin == HIGH && currentMicros - previousMicros >= coilCharge) { digitalWrite(outPin, LOW); coilPin = LOW; previousMicros = currentMicros; } if (coilState == HIGH && coilPin == LOW && currentMicros - previousMicros >= dwell) { previousMicros = currentMicros; coilState = LOW; coilPin = LOW; } } else { digitalWrite(outPin, LOW); } Runs way slower (as in, ignition retarded with the sensors and engine speed the same) and noticeably less smooth than.... This? if (analogRead(inPin) <= sensorThreshold) { digitalWrite(outPin, !(digitalRead(outPin))); delay(2); digitalWrite(outPin, LOW); delay(10); } else { digitalWrite(outPin, LOW); } } Quote Link to comment Share on other sites More sharing options...
sentra Posted October 5, 2019 Share Posted October 5, 2019 Good work rusty Quote Link to comment Share on other sites More sharing options...
sentra Posted October 6, 2019 Share Posted October 6, 2019 Good work rusty Quote Link to comment Share on other sites More sharing options...
h4nd Posted October 13, 2019 Share Posted October 13, 2019 Your code looks way better than it used to. The rest of the system influences the code you show, so without knowing how the how often this is called, how pins are wired, when previousMicros is updated, what the incoming duty cycle is, and if dwell is set for 10million, it's a bit hard to tell. What is sensorThreshold for, and what is the inPin reading? (Too busy to puzzle it out, pics are good). Hint. You operator order for working out the time is probably correct, but I can never remember the precedences for all the languages, and putting brackets in there can make it explicit / easier to read. Also comments like // found a leading edge going high // trigger after dwell_uS Can also really help. Also, I'm assuming thisng are active high, but don't really know, so there's 2^3 = 8 different ways to think about it to work out what is doing. Pin names can have clues like POINTS_IN_LOW and IGN_OUT_HIGH to help. Keep it up, you're going places. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.