|
Shouldn't be a problem. You don't need to digitalRead() every revolution, you just attach the sensor to an interrupt, then on each loop through the main code you check the interrupt counter and derive the rpm from that. See http://playground.arduino.cc/Main/ReadingRPM
|
# ? Jan 16, 2016 16:31 |
|
|
# ? May 28, 2024 14:45 |
|
Yeah, I mean the math is probably pretty simple, but I just wasn't sure if it could handle that rate. I'd also argue that a tach is one thing because if it's a few ms late in responding, who cares, but if your cdi is a few ms late, any power you might be making is gone.
|
# ? Jan 16, 2016 17:35 |
|
Yeah to be honest I may have been a bit shortsighted on the Arduino and sensor rates. I just went Arduino because that's the only thing I knew was software programmable with minimal fuss and is small and would accept simple 5v sensor inputs etc. I don't know what it's capable of in terms of refresh rates.ReelBigLizard posted:Please share any work on that Rev. I'd be interested in building something similar when I rebuild my Bantam. Ripoff posted:The custom ignition thing is cool as hell and you need to update on your progress with it. Stupid question, though and I think you covered it before but I'm an idiot and can't search to save my life - what's the redline on this thing? From what I remember from playing with my arduino it's pretty easy to confuse it when things are happening fast, but for all I know it could be more than capable of handling 14k RPM in a 2 stroke motor.
|
# ? Jan 16, 2016 19:41 |
|
At 12k RPM you'd need an ignition pulse every 5ms. The Arduino Uno board is a 16Mhz CPU which is still going to let you do things in the microsecond range if not better. Some of the stock Arduino functions are a bit slow (because they do a bunch of idiot-proofing checks on each call), but there are ways to work around that if needed.
|
# ? Jan 16, 2016 20:17 |
|
Generally the first thing to go when you spin super high rpm's is the crank. You can weld it, harden it, balance it, and upgrade the main bearings, as well as the conrod bearings and get pretty far. Guys like Scott Clough out in California do this stuff for two stroke race engines all day. Since most two stroke cranks are just press fit, they get slightly out of alignment at super high rpm, then the bearings take a poo poo because the crank arms are no longer spinning true and it's all done.
|
# ? Jan 16, 2016 20:56 |
|
Yeah I think I may leave that kind of work until the next big off-season upgrade. Still got a couple moderately big things to do before this season, and there's some low hanging fruit like aluminum rims that can be done whenever. I would love to be able to rev it higher and I would love to fabricate an aluminum trellis frame for it. Theoretically. Some day.
|
# ? Jan 17, 2016 00:04 |
|
If you have a really good welder and a setup for truing cranks to a very fine degree, you could true the crank and weld the pin and that would get you spinning faster right away, with the only limitation being the bearings at that point. You can probably skip the hardening as the piston isn't going to be putting down the force that a bike like a cr500 would. E: I should say that will get you able to spin faster right away. You still have to do the porting, exhaust, ignition and carb work to get it making enough power to spin faster than before
|
# ? Jan 17, 2016 16:38 |
|
Yeah but is the rod strong enough? Piston strong enough? Needle bearings strong enough? How do I even know, without running it until it blows up? I'm not at RedBull Racing levels of financing such that I'm comfortable using that method. Maybe I should try calling TAG Heuer and Santander and see what kind of cash I can get, though. I worked up the Arduino code today for the thing. Been a long time since I wrote any code and never used an Arduino before. Wondering if it's inefficiently written enough that it'll cause processing speed problems at 12000rpm. Or whatever else might be wrong with it. Won't be able to find out until the top end comes back from the machinist and the frame comes back from the bodywork guy. http://pastebin.com/iiVKc4ps
|
# ? Jan 17, 2016 23:39 |
|
To your point, I don't know how much force your piston is exerting, but I'd have to guess that it's not a ton, and unless the bike uses the worlds worst bearings and conrod they're probably ok. The deal with spinning fast is more around the initial trueness of the crank and its ability to stay true under those kinds of high speed. But yeah, I get it, experimenting by popping motors is expensive and time consuming.
|
# ? Jan 18, 2016 01:37 |
|
What Arduino board do you plan on using? Or I guess I should ask what AVR, since I assume you're going to make your own board down the line if it works.
|
# ? Jan 18, 2016 01:41 |
|
Jim Silly-Balls posted:To your point, I don't know how much force your piston is exerting, but I'd have to guess that it's not a ton, and unless the bike uses the worlds worst bearings and conrod they're probably ok. quote:The deal with spinning fast is more around the initial trueness of the crank and its ability to stay true under those kinds of high speed. Collateral Damage posted:What Arduino board do you plan on using?
|
# ? Jan 18, 2016 01:59 |
|
Rev. Dr. Moses P. Lester posted:I have an uno now, it looks like it'll do what I need. All I need is one digital input pin and one digital output pin, really. I'm probably not planning on replacing it with a proper board unless someone in the club cries foul on the setup. (The Arduino itself is clearly not period appropriate equipment for 1983, but the rules in this class are very short and vague) I want to be able to easily change the software map in the future if I alter the ports/exhaust/intake/piston. There are probably some people over in the Arduino thread who are much better at optimization than I am who can tell you if there are any other performance pitfalls. Collateral Damage fucked around with this message at 02:44 on Jan 18, 2016 |
# ? Jan 18, 2016 02:41 |
|
Collateral Damage posted:The code itself looks OK. If you find that it can't keep up because digitalWrite takes too much time, you can try one of the high performance IO libraries for Arduino, or just do low-level calls on your own. There's actually a DIY ECU thread. I'm using an arduino nano on my bike now -- same processor as the Uno; ATMEGA328. I think the nano has enough power to run a 2-stroke 2-cylinder up to 14k rpm. A complete crank cycle takes 4.28ms at that RPM, so all your math has to be done in less time than that. The clock is 16MHz, and the arduino IDE is pretty well optomized to generate code. Be intelligent with your function calls, and you'll have plenty of headroom on your timing; maybe not so much headroom on your memory space, though. The thread has good info about what transistors to use to fire your coil, too.
|
# ? Jan 18, 2016 03:24 |
|
Rev. Dr. Moses P. Lester posted:Ok to what rpm though? It is about those things, but more so on heavier motors. My gut says you could spin it pretty fast, but unfortunately you're probably in pretty untested waters with that motor, and it might be a "try and see" situation. Really, having talked to guys who were some of the first to take rd350's on a track way back in the day and to try to get big power out of them, that's what you have to do a lot of times, run them till they pop and either dial them back or find a way to improve and try again. Honestly, getting over the porting and exhaust hurdle to make power at higher speeds will be your first and arguably bigger hurdle. All this being said, and keeping in mind your limited race budget, have you played with pipe design, porting and gearing to try to get more out of the stock rev range and crank? Look at the intake length and maybe put a boost bottle in there to try to get more from a longer intake length? If you haven't already, check this out if you'd really like to math the poo poo out of this: http://www.amrca.com/tech/tuners.pdf The above does talk of piston speed and contains the math required to get a good guestimate of when things might blow up Beve Stuscemi fucked around with this message at 04:56 on Jan 18, 2016 |
# ? Jan 18, 2016 04:37 |
|
Collateral Damage posted:There are probably some people over in the Arduino thread Jim Silly-Balls posted:All this being said, and keeping in mind your limited race budget, have you played with pipe design, porting and gearing to try to get more out of the stock rev range and crank? Look at the intake length and maybe put a boost bottle in there to try to get more from a longer intake length?
|
# ? Jan 18, 2016 15:44 |
|
Rev. Dr. Moses P. Lester posted:Ugh I have to talk to Arduino nerds? I got into motorcycles specifically so I wouildn't have to do that. You can always go talk to noisymime in the DIY ECU thread that babyeatingpsychopath linked.
|
# ? Jan 18, 2016 15:56 |
|
Rev. Dr. Moses P. Lester posted:Yeah but is the rod strong enough? Piston strong enough? Needle bearings strong enough? How do I even know, without running it until it blows up? I'm not at RedBull Racing levels of financing such that I'm comfortable using that method. Maybe I should try calling TAG Heuer and Santander and see what kind of cash I can get, though. The two things that stand out to me are that you can save a couple of milliseconds by doing direct port manipulation instead of digitalWrite(), and that I think you could get rid of the if statement inside your interrupt handler with some other code structure since the vast majority of the time it's going to be skipped anyway.
|
# ? Jan 19, 2016 07:23 |
|
Rev. Dr. Moses P. Lester posted:Ugh I have to talk to Arduino nerds? I got into motorcycles specifically so I wouildn't have to do that. Rev. Dr. Moses P. Lester posted:Ugh I have to talk to Arduino nerds? I got into motorcycles specifically so I wouildn't have to do that. Boost bottles help a lot to cure flat spots in the powerband. If the ysr came with one I'd imagine your bike could see benefit from it as well. Is the ysr a different induction type, I.e. Reed valve on the ysr vs port induction on your bike?
|
# ? Jan 19, 2016 09:15 |
|
http://www.ebay.com/itm/331747012070 Boost bottle AND N20 kit all in one for the low price of 60 bucks you can thank me later rev
|
# ? Jan 19, 2016 14:28 |
|
Jim Silly-Balls posted:Boost bottles help a lot to cure flat spots in the powerband. If the ysr came with one I'd imagine your bike could see benefit from it as well. EX250 Type R posted:http://www.ebay.com/itm/331747012070
|
# ? Jan 19, 2016 20:28 |
|
If you're not cheatin', you're not tryin'. That said, you gonna post up some before-and-after dyno videos and show us that obscene torque curve?
|
# ? Jan 19, 2016 21:23 |
|
Yeah I'll be having charts and all kinds of poo poo to post. Hopefully before too long but I dunno when exactly I'm getting my frame back (machinist is nearly done with the engine parts) and I have no clue how hard it'll be to make an exhaust pipe or get the ECU working. I looked for RF shielding on Amazon and most of it came from a company that made a metal mesh knit winter hat to keep the Zionist Occupation Government's chemtrails out, so I'm not sure I trust anything else they're selling to actually protect my arduino from spark noise. Edit: Prototyped up the relay circuit to attach the arduino to the coil. I think I should write another bit of software just to test if this thing can reliably make a spark on its own before I go so far as to hook it up to an engine and see if it can time a spark properly at 12k rpm. Edit: https://www.youtube.com/watch?v=e-OapQKEzkY Rev. Dr. Moses P. Lester fucked around with this message at 03:09 on Jan 22, 2016 |
# ? Jan 19, 2016 22:17 |
|
Got the crank sensor ring mounted on the flywheel stub piece. Gotta get the sensor mounted on it now. Luckily it'll fit inside the engine cover without cutting any holes in it so the engine will look stock from the outside. That's an unexpected bonus. Got the cut down cylinder back from the machinist and started dremeling the head to set up the combustion chamber and squish band. Here's measuring the squish band with bondo. That's squish as gently caress yo. The edge varied from 0.011 to 0.014". 0.015" is the smallest you'd ever want on the smallest motor according to the books I've read. So I need to adjust it a bit. Then check the cranking PSI and carve the combustion chamber bigger if it's over like 160psi.
|
# ? Feb 13, 2016 03:26 |
|
This is looking really sweet. Keep the updates coming. You could probably make some small revenue out of an affordable open source programmable CDI. The greybeards who are restoring bikes these days are more and more computer savvy because all the 70s/80s mainframe/telco/unix guys are reaching retirement age.
|
# ? Feb 14, 2016 11:35 |
|
I was kinda tempted to develop that. The one I built doesn't use a CDI style crank sensor so it would have to be different. Of course the thing is, it's a lot more complicated than that. How easy do you want it to be to install? There are a number of old bikes you can't get CDIs for, such as CM400A and poo poo. Their CDIs are identical to similar bikes like a CM400T but there's like one extra wire in the connector related to the odd gearshift on the A, and it probably does nothing for the actual ignition, but it makes it so that the units are not interchangeable in a plug-n-play way. And actually I did take some of my circuitry, though not the code, from a random site on the internet I found describing how to make your own programmable CDIs and TCIs. The info is out there already, it's just not in a friendly form. The site I found described using some PIC chip but didn't tell how to get your code onto the drat chip. I figured an arduino would be more straightforward.
|
# ? Feb 14, 2016 21:34 |
|
Got the fairing, tank and seat back from the fiberglass guy. Working on mounting it all now. Made a new subframe for the seat and future battery. Carved out the combustion chamber to bring the cranking PSI down to around 160, as per the max described in one of my 2t tuning books. It was over 200 after my previous cylinder/head mods. This is a bondo mold of the new combustion chamber. Will be mounting the fairing next and planning out the paint scheme. And/or hydroforming the exhaust. Also realized I need to redo a bunch of circuitry for the ignition computer.
|
# ? Mar 11, 2016 03:58 |
|
Keep the updates coming, can we get a video of Dat squish tho
|
# ? Mar 11, 2016 17:32 |
|
ReelBigLizard posted:Dat squish tho
|
# ? Mar 11, 2016 22:50 |
|
|
# ? May 28, 2024 14:45 |
|
Got the testbed ignition system wired up finally. Took 3 different BMW crank sensor plates and 2 different custom machined BMW sensor rings on the stub flywheel to get it this far. Also a homemade adjustable concentric mounting base for the sensor plate which I will show at some point. It now produces spark when the engine is cranked, which is a milestone. Installed the new Dellorto and tomorrow when I get my high speed (>1000rpm) drill back I will try to actually run it for the first time. The 600rpm drills (3 of them) I had access to today were not really fast enough to spin the crank for a good start. If the running seems somewhat functional tomorrow I will finalize some of the wiring so it's not all hooked up with alligator clips and then it's dyno time.
|
# ? May 2, 2016 02:23 |