Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Very simple questions, could use some help getting started


Senior Member

Status: Offline
Posts: 161
Date:
RE: Very simple questions, could use some help getting started


Does the speedometer work?

If so, one side of volt meter to b/w, the other to pink (assuming your color coding is right) and slowly rotate the shaft. You should see it switch from roughly 0 to 5 (otherwise the speedometer would not work). Actually, the Innovate requires:

"A frequency input signal must have an amplitude (voltage range of pulse) between 0.5V at the
low pulse point to minimum of 3V and maximum of 40 V at the high pulse range."

So you better see 0.5 or less to more than 3.

Innovate just needs the +/- connected to the pink(+) and b/w(-). 1Meg input, so no problem. Once connected just rotate the shaft again to make sure it still switches at the same levels. If that works, just program the Innovate and you are ready to go.

Too bad that the ECU can't spit that out......

__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Started with a couple of transistors for the shifter.   This gave a nice constant voltage when the kill was active to fix the problem when using the 2-step.   Used the ground of the GPS as the reference.   This worked fine seemed a bit too complex.    I later just ditched the resistor.     This is what I have used for the last several months.  Kept the thresholds in the software the same.   

The one-shot circuit has an open drain FET that is in parallel with the horn button to run the auto-shift.     One-shot is about a 300mS pulse.    I set the delay on the shift so it tags the air ram then blips the kill.  Very smooth.  

 



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Member

Status: Offline
Posts: 23
Date:

Anything new?



__________________


Senior Member

Status: Offline
Posts: 161
Date:

It's still riding season here so mostly just been putting miles on the bike and sorting out a slew of mechanical problems but there are a few things worth mentioning.

When I had looked at what I had done to the harness, the above was not quite correct. I had a second Schottky diode in there. I looked at the values used in the original harness and it looks like the 68 ohm was right on the edge. Even going to 80 on the simulator allows it to work with the low speed limiter. So I increased this until it no longer worked and split the difference. May be the easiest fix for people who want to use that feature.

Auto shift continues to work very well. I have tried it with a fair amount of boost and shifting at eight with no problems using the small change I posted in the shifter code to fix that kill problem. The bike will pop every now and then when it shifts so the second ECM is still dumping fuel as expected.

The Lenovo tablet continues to hold up and work good as a logger for the most part. Once I sorted all all the Windows 8 power saving modes, I can now pretty much log as long as I want. Its nice having the PC right there with you so you can see what is going on. The biggest problem I have had with it is when its turned off (off, not sleep or standby) it still drains the battery down pretty fast. The lack of a good way to charge it has also been a problem. For the price its been a very nice setup and has helped me figure some things out. I received an email about them making a logger for the Gen 1. One of the people in a different forum had ordered it and I asked how it worked up for them but never heard any more about it.

The Innovate wideband has also held up just fine. I was concerned that the digital gauge would not survive but everything has been solid, including the communications with the tablet.

I have not been working on my own version of the editor. Its a little further long than that video I had posted but Labview is just not cut out to do table editing cleanly.

I did sort out the TDC and made up the waveforms for the simulator.

Winter will be here soon enough. Trees are starting to drop their leaves.

__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

You had asked about logging the speed with a separate logger. Hope you got that all working.

The Lenovo MIIX 2 has a built-in GPS sensor. I have been playing around with it while driving the car and it appears very reliable. Signal and communications appear solid.

It is sort of hard to tell but the GPS seems to report the MPH dead on with the cluster. I am not sure if the update rates are programmable and it currently only outputs data every second.

I am thinking to just add support for this sensor to my logger program. I have been looking at some third party software from Centrafuse that will allow the MIIX 2 to mimic the older type NMEA messages. If I support this message format, it would allow my program to use a different GPS when not running on the MIIX.  

Don't think it's going to be very helpful for me anyway.   I have not been able to find any data on the  chipset they use.  The 1 second update rate is just too slow for what I want it for.  On the plus side, it does work pretty good and didn't cost anything to add.   I compared it's output with my HP GPS and they read pretty close.

Have it now logging the speed with the other data. 



-- Edited by bigtoe on Tuesday 2nd of September 2014 04:10:23 AM

Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Was looking at the 638FLPx GPS for about $60. This part can run up to 20Hz and would just be a plug and play with my software. Maybe this winter I'll play with it.    Updated the logger to add a little more info from the GPS.    Altitude for some reason is not stable, but the lon and lat look real good.

Mentioned I wanted to add support for a separate logger to get the clutch info.  The China spider USB hub was only a 2 port where I had thought it was a 3.  I also was running the two USB serial adapters for the wideband and ECM data link from the tablets battery.   I never made a charger for the bike to power the tablet and peripherals.   

Picked up a cheap 4-port hub and added the DC-DC for the charger.  Also added transient and reverse battery protection to it.  Just shrink wrapped it with some hot glue to seal it up.  Gives me a spare port if I decide to add something else like an external GPS.  

After playing with the bike for the summer, it's been real helpful having a way to log the data and test some of my changes out not using the bike.   A few times it would have been very nice to have a closed loop simulation running.   I had everything done, just no software.  Didn't think it would be helpful and ran out of time.   

Spent some time today making what I would call the worst engine model ever.  Right now just using the injection duty cycle to directly control the pressure and crank speed.   A couple of gains, limiters and done.   Tried it out and the simulator went right to 1150 RPM.  Snap open the throttle and up it goes.   Start it cold and it will run on the 3000ish high idle.    Kinda cool to see it run but not real useful.     There is no friction, inertia, external load, nothing about the bike itself.  

Now have most of the parameters in the software now to support a more complex engine model.  Plan to add some sort of model for the clutch and bike as well.   

Did look at some of the modern simulators available.  National Instruments requires their hardware to run their simulator.   Maplesoft supports Matlab and Labview but the toolbox to run it is way outside my budget.   Didn't look at the cost of Maplesim.   I doubt I will do anything so complex the model could not be run on the PC.   I plan to just code things in Labview for now even though I wrote all of the interface to the hardware in C.   If timing becomes a problem, I'll port it to C.   

Should be an interesting winter.



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Created a new Youtube account and uploaded some of the older videos.  

Sort of a crappy video showing where the table mounts along with the auto shift.  

 

 

 



__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Attached picture showing my simulator running closed loop.    Clutch is pulled in, put into 1st, ping the throttle.  It hits the low limiter.  Release the clutch and the auto shift takes over with an 8,000 RPM shift point (same program in the bikes ECM).       Appears to start cutting back the fuel as the speeds come up. 

Needs a little trimming, but all in all functional.

If the max crank speed were 12,000 RPM, or 200 RPS the cam rotates every 10mS.  The model will run about 1mS now, so should be fine for what I want to use it for.

Tire slip is next. 

 



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

The new cheap logger came in today. I spent some time writing some code to talk to it.  Attached picture shows a 0 to 10Volt 1KHz sinusoid being captured with it.   Its a 12-bit converter running at 20KHz.   A little concerned about using it to look at the clutch.  On my other logger it's all done in hardware where this thing does it in firmware.  May not be fast enough.   Then again, I did say it was cheap! 

 

 



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

The attached ROMRaider screen shot shows how I have been running the autoshift. 

The On_High is the RPM that the output will first turn on at.  If the RPM falls below On_Low or goes above Off_High, the output will turn back off.   The output will remain off until the RPM reaches On_High.    Note that Off_Low and On_High are set to the same value.    Off_Low turns the solenoid back on after reaching Off_High.   I doubt the 200 RPM is critical. 

The 2-step is controlled by the Neutral limiters and using them with the clutch pulled.  

The autoshift C file I posted is not exactly what I have been using on my bike last summer.  I adjusted the values to prevent the auto from shifting once it reaches fifth.    Also the the trip point for detecting the shift was adjusted to compensate for the changes I made to the shifter harness.  

I have been shifting at 8,000 with about 10 PSI boost.    Been real pleased with the results.  The Microtech continues to dump fuel, and when it comes off kill, there is a bit of a crack when the ignition lights all that fuel.   It's real smooth.   

The attached video shows the latest simulator.   I now have a basic model for the bike, transmission and engine.   Needs some work but making good progress.    The ECM attached to the simulator is running the same load that is in my bike.   You will notice that there is no kill after fifth and the bike does not shift into 6th.  The video shows a small step about halfway into 2nd.  This is the first attempt at modeling some sort of tire spin.    The video also shows the current version of the data logger running on the same PC.  

The price of the tablets has really dropped.   About $200 now for a tablet.  $150 for the LC2 wideband.  $100 for a hub and two serial USB cables to tie to the wideband and the ECM.   One problem is that it looks like Innovate are dropping the 8" tablet. 

 

 

 

 

 



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Check out

labjack.com/u3

For the $114 they charge, I wasn't expecting much at all but after putting some software together for it. I tried it all out on the bench and it looks like it will work. Looks fairly well built and think mechanically it will survive. Not so sure about how it will handle the noise....

My old logger records at 100Hz. I was measuring the period of the pulses to get the frequency for the clutch using an FPGA. This thing is all done with guessing a PIC. Timers require the interrupts for the 32-bit mode. But the speeds we are talking about for the clutch are not a problem. Looks like 50KHz is doable. 100KHz appears to be the high end.

I just need to add it to my logger program and try it out. My plan is to support the two shaft speeds for the clutch and the first for ADCs and maybe one of the switch inputs to mark the clutch release.

For under $500 this is turning into a pretty good logger.

__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Added support for the Labjack into my logger software tonight.   Like with my old logger, I am using the pulse counter to measure distance.   The busa puts out the same number of pulses per shaft rotation as what I had done with my other bikes.  So clutch data is not going to be any better or worse than what I had by just using the shaft and crank speeds.  

Hooking it to the simulator was easy enough.  MPH and tach are dead on as expected.  Need to come up with a model for the clutch.  

Hope to hook it up this weekend and try it out. 

 

 



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

The data logger code was getting too hard to make changes to.   After starting with just the ECM, then adding the wide band, then the GPS, now the Labjack, it was time to start over.   Also made some changes to the simulator's hardware  so the clutch can now be set to what ever sensors I end up using.

 

In the attached plots, the orange is the RPM reported from the ECM.  The white is from the Labjack.   The three pulls are identical except for how the data is being sampled.   Each pull is roughly 8 seconds of data.  On the left, data is being collected at 20Hz and the gauge cluster is being refreshed. 

 

 

 

 



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

The attached is a zoomed in view of the left most pull.  



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Zooming in even further, it is easy to see the affects of refreshing the gauge cluster.



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Zooming into the plot on the far right, the gauge cluster is no longer being refreshed and the ECM is putting out data about 15 times a second.   The white graph is also showing the far right pull from the Labjack, sampled 100 times a second. 



Attachments
__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Video showing Labjack being used to look at simulated clutch data.   Pretty long (10min).  



__________________

You can lead a horse to water but you can't make it drink.  



Guru

Status: Offline
Posts: 1247
Date:

Are you planning to use this on the bike itself or just messing around with the simulator?

__________________


Senior Member

Status: Offline
Posts: 161
Date:

The logger has been on/off the bike all summer. Look at the Autoshift video above, you can see the tablet stuck on the left side of the fairing.

The autoshift has been used pretty much every time I rode the bike. Works great except with the cold weather moving in. Bike needs traction control.




__________________

You can lead a horse to water but you can't make it drink.  



Senior Member

Status: Offline
Posts: 161
Date:

Looking at some open source tools to make the model. 





__________________

You can lead a horse to water but you can't make it drink.  

«First  <  1 2 3 4 5 | Page of 5  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard