Show Posts
Pages: 1 ... 300 301 [302] 303 304 ... 837
4516  Using Arduino / Project Guidance / Re: Multi cylinder motorcycle ignition controller on: September 20, 2013, 07:44:05 am
The price I suggested was for a self-build system, which is the cheapest option. Every time I've done this in the past I seem to end up spending about £500 on the installation itself, in addition to the cost of the ECU. In that context, saving a hundred quid (or whatever) is not a big deal either way - and MS would save you an awful lot of design work. But, like you, I'm not interested in getting into an argument about money, it's your project to plan as you see fit, I'm just trying to make sure you have the information to make an informed decision.

With the Arduino approach the hard part with the hardware will be designing the I/O circuits to be robust and keep noise out of the Arduino. You can take inspiration from the MS circuit designs. The hard part with the software will get maintaining an accurate engine position signal especially at low speed when you are extrapolating over long periods while the engine speed is varying. Starting will be the hardest part to get right. Careful positioning of your crank position sensor (presumably a toothed wheel) would minimise that problem. Also pay attention to signal polarity and strength if you're using a toothed wheel since it will work (badly) the 'wrong' way round and the typical MVR sensor output amplitude varies with speed so you'll need to deal with big variations in amplitude through the rev range.
4517  Using Arduino / Project Guidance / Re: Arduino Mega + 1307 Time Clock gains almost a minute per day! Help! on: September 20, 2013, 07:31:19 am
Im using the <DS1307RTC.h> library which is linked to from the Arduino Library page so it should not be the issue?

I'm not familiar with the library and don't see it on the Arduino Library page, but it's possible that you are using it incorrectly. Does the library come with any examples? If so, I suggest you see whether any of those would enable you to check the accuracy of your clock.
4518  Using Arduino / Project Guidance / Re: Automation on: September 20, 2013, 07:25:31 am
I also want to allow my arduino to get a string that will then trigger an event on the arduino (light on/off).

Where does the string originate? Is it returning status data relating to the upload, or something initiated by another person, or what?
4519  Using Arduino / Programming Questions / Re: arduino and servo on: September 19, 2013, 07:59:49 pm
the stop and go back, but never do the real degree

Can you explain that a bit more clearly? The code should move the servo backwards and forwards between two fixed positions. Does it?
4520  Using Arduino / Programming Questions / Re: Is there any where to use a "make" utility with the IDE? on: September 19, 2013, 07:55:31 pm
"Everything" is not recompiled.  The interface is smart enough not to compile library code more than once.

I've read that more than once on this forum, but when I recompile a given sketch it seems to me the list of files that scroll past is just as long the second time as it is the first time and the compilation takes just as long.
4521  Using Arduino / Programming Questions / Re: [SOLVED] Truncated packets between Transmitter and Receiver. on: September 19, 2013, 07:51:06 pm
I don't see any obvious cause for the problem, but you're using vw_get_message() which I'm not familiar with. Where did you get your copy of the VirtualWire library from?
4522  Using Arduino / Programming Questions / Re: Out of RAM! How to get more? (optimize code help for a noob?) on: September 19, 2013, 07:39:12 pm
Im not following the button[0] part at the end?

This is the recommended technique for calculating the number of elements in the array: the size of the whole array in bytes, divided by the size of an individual element in bytes. You can hard-code the value instead, but that introduces the possibility of maintenance-induced errors since you have to remember to update the hard-coded value every time you alter the array size. One of the fundamental principles of good coding is that you should eliminate duplication - each thing should only be defined once. By calculating the array size rather than hard-coding it, you avoid having the array length defined in two places.
4523  Using Arduino / Programming Questions / Re: syntax for fscale code on: September 19, 2013, 07:32:35 pm
I haven't tested that function but it appears to have explicit support for negative ranges. Have you got a sample sketch we could run showing the incorrect values when you try to apply it to a negative range?

If you can't be bothered figuring out what the problem is, you could just negate the input motor_speed if it was negative, and then invert the result too.
4524  Using Arduino / Project Guidance / Re: letter substitution program on: September 19, 2013, 07:28:08 pm
Also look up the ascii encoding scheme, if you aren't already familiar with it. You'll need to understand this in order to know which element in your lookup table corresponds to which input character.
4525  Using Arduino / Project Guidance / Re: Multi cylinder motorcycle ignition controller on: September 19, 2013, 07:25:13 pm
I already posted that the Bowling and Grippo stuff has gotten too expensive (Megasquirt, et.al.)

I didn't know what you considered 'too expensive' - you can get a self-build kit for a couple of hundred bucks which is pretty darned cheap in ECU terms. But if you want to design your own, you can use the MS I/O circuit designs for inspiration when you come to design your own I/O circuits. Either way the sensors, loom, connectors etc make a big contribution to the cost so I think it would be a mistake to think that the whole project is going to come in at half the cost (or whatever saving you're aiming for) with the Arduino option.
4526  Using Arduino / Project Guidance / Re: Getting stepper to step only when a signal is received on: September 19, 2013, 07:15:26 pm
Using a button to enter a number is easy enough, but would be very easy to get lost unless you provide some feedback to the user to show what value has been selected. If you only have a small number of possible values then you could just have one LED per option and turn on the LED for the selected value, moving to the next value each time the button was pressed and released. There are example sketches demonstrating how to debounce a switch input and detect changes in the input state.

If that was me I'd use an array of supported values and a variable which holds the index of the currently-selected value. Each time the button is pressed you increment the index modulo the number of values.

Then you can have a counter which is incremented each time the laser is detected, and if that increment takes it up to the selected value then reset the counter and move the stepper.
4527  Using Arduino / Project Guidance / Re: continuity tester on: September 19, 2013, 07:10:03 pm
There have been a couple of other threads about essentially the same problem in the last few weeks so I suggest you search those out to find what advice was given.
4528  Using Arduino / Project Guidance / Re: Display throttle position on LCD with Arduino on: September 19, 2013, 07:05:55 pm
Is the O2 sensor a wideband one? If so of course you'll have a separate controller and these often provide their own logging mechanisms.

In my experience the process of mapping on the street is far less straight forward than you'd guess since the steady state fueling is hidden behind all the transients. It needs a lot of averaging and cleaning up the raw data to eliminate the outliers before you can get a good steady state tune - and then you also need to tune the transients. So, the trick IMO is to get your analysis algorithm right to cope with noisy data and data not neatly aligned with your map vertices, rather than try to get your collection method to give you clean data neatly aligned with your map vertices. Knowing which parts of your map have been adequately sampled (so you can fill in the missing areas) is the only part of this that IMO needs live feedback.

The TPS is usually a hall effect sensor and usually not linear

The cars I usually work on are not very modern and perhaps things are done differently these days, but they use throttle potentiometers rather than hall effect sensors. (I'm used to seeing Hall effect and MVR sensors for crank/cam position sensors.)
4529  Using Arduino / Project Guidance / Re: Position around pivot point on: September 19, 2013, 06:58:41 pm
You don't say how much freedom you've got to design this, but I'd try to put a hinge on top to deal with the see-saw motion and a sleeve that is free to rotate around the shaft to deal with the rotation. That gives you two simple joints that need angular sensors fitting but neither of them seem particular complicated to fit.
4530  Using Arduino / Programming Questions / Re: Problem with sequence on: September 19, 2013, 02:59:11 pm
I find it impossible to make sense of the code, because all of the variable names are written in a foreign language and none of them are intelligible.

It would help if you could put an English comment next to each variable definition to explain what value it holds.

I notice that you have several variables and constants which have the same name just with different capitalisation. That's a very bad idea since it makes it harder to keep track of which is which - and also makes it more likely that you will use the wrong one somewhere by mistake. In this case it's even worse because you are not consistent about which ones use upper case.

I recommend that you get into the habbit of writing constant values all in UPPERCASE
Code:
#define FC_ABAJO_PIN 9

and write all your variable names in lowercase

Code:
int fc_abajo = digitalRead(FC_ABAJO_PIN);

Now if only I knew what FC meant and what ABAJO meant I would be able to work out what the value represented.
Pages: 1 ... 300 301 [302] 303 304 ... 837