I Hello everyone. First post here. Looking to get some knowledge/help regarding my situation. I have code that I uploaded to my Arduino Micro. Its code to send signal (pulse) via pin 9 to trick my ECU in believing the car is going 1mph and enabling Autostop. Im here to if someone can help me verify my code is uploaded correctly. I believe it is. But how can I confirm my Arduino is running it. Maybe leds? If i press the button on my Arduino then my Green led starts to pulse then stop shortly after. Is this my signal on Pin 9? if so how can I make my arduino run all the time like this without having to press the button. I will attach pictures to aid
Hi, @enjoitheweeknd
Welcome to the forum.
This will tell you how to post code into a scrolling window in your post.
What model Arduino are you using?
Did you write this code yourself?
What is the reason behind "tricking" your vehicle ECU into "Autostop"?
I would be very careful about fooling ECU data, especially if it is SAFETY related.
Thanks.. Tom..
The reset button?
The on board LED (L)?
Some bootloaders will flash the onboard LED, briefly, at reset.
The improperly posted code should start to cycle pin A1 (out_b) on for 1/4 second and off 1/4 second of as soon as the mystery Arduino is powered. If an LED were properly attached to pin A1 it should flash at 2Hz as soon as the Arduino is powered and continue to flash as long as the Arduino is powered.
Leds is one way. Send serial prints to serial monitor is another.
Arduino Micro A000053. I did not write the code. It was posted on a car forum. The purpose of the code is to fool to the ecu into going into autostop. This arduino will be connected to a switch where I can switch from the arduino signal and originally speed sensor signal. This will allow me to force the car into autostop. Most owners of these cars use this mod to coast down hills and improve mpg. Its cool because once the shift knob is moved other than neutral it will come out of autostop and continue as normal. Stock signal or arduino it will kick engine back on once shifted to a gear. Only problem i have is nothing happens when I switch to the arduino. Thats what led me here for help. I believe I have something setup incorrect on my arduino side of things
What controller is the code written for?
What car forum, please post a link?
Use a "heartbeat" LED, the on board LED is a good one to use.
Can you please tell us your electronics, programming, arduino, hardware experience?
Thanks.. Tom..
In my state, Oregon, coasting down hill in a car can get you a traffic citation because your car is not under your control.
The discussion of said code is in this link.
// Elegant Autostop
// Tells a G1 Honda Insight that conditions are right for AS
// Version 0.1
// #include <SPI.h>
int out_a = 9;
int out_b = A1;
void TimerOne_setPeriod(long OCRValue)
{
TCCR1B = _BV(WGM12) | _BV(CS12) | _BV(CS10); // or use TCCR1B = 0x0d; // CTC mode - 1024 prescale
TCCR1A = _BV(COM1A0); // or use TCCR1A = 0x40; // Toggle mode 0C1A
OCR1A = OCRValue; // set the counter
}
void setup()
{
pinMode(out_a, OUTPUT);
pinMode(out_b, OUTPUT);
TimerOne_setPeriod(3096); // set up and start Timer1 to blink at the same rate as the blink sketch
// Serial.begin(9600);
// Serial.println("setup");
}
void loop()
{
digitalWrite(out_b, HIGH);
delay(250);
digitalWrite(out_b, LOW);
delay(250);
}
I don't know what car you are driving. In europe every car has fuel cut-off as a standard-feature build in by the manufacturer. The motor is still "running" but without fuel.
You take your foot off the gas pedal and the engine goes into fuel cut-off if the ECU recognises your rpm is above 1000 rpm.
With the motor still running,
in the sence of cylinders go up / and down driven by the wheels
you have your car under full control which means:
- The power steering works as always
- The brake booster works as usual
- The alternator charges the battery
With engine switched off you will have a really hard time using the brake: after using the brake for more than a few seconds the brake-booster is "empty" and you have a hard time with steering the car. Have you ever tested deccelerating / steering your car with engine off?
So how many mpg does your car need?
If you are really about saving fuel buy a car like a Nissan Note
or something similar and with usual driving you are at 42 mpg (= 5,5 Liter/100 km)
best regards Stefan
Dont forget to inform your insurance company about the modification to your vehicle, you would not want to be driving around with invalid insurance would you ?
Same in Australia, in fact coasting at all, is not showing you have full control of the motor vehicle.
How much fuel do you think you will save for the odd times you would like to coast?
See, when you take either your manual or automatic out of gear and into Neutral when driving down a hill you end up using, at the minimum, the same amount of fuel and perhaps more because the engine is still working and the fuel is still flowing. So the argument that you’ll save fuel doesn’t work, because you won’t.
See, many modern vehicles will, when the system detects the vehicle is coasting (no load being applied via the throttle), shut off fuel supply or in those with the technology deactivate cylinders to reduce the amount of fuel being consumed. Thus, coasting in gear will in 99.9% of cases use less fuel than when you slot Neutral and try and rely on momentum.
So your ECU may already be shutting the fuel off.
I had a 1984 Ford Falcon EFI, and it shut the fuel off when you let the throttle go back to idle, if your engine speed was above 2500rpm.
Tom..
In the UK, you are also required to be in "proper control" of the vehicle at all times - coasting may be considered to break that...
Giving control to some uncertified, untested system would certainly be frowned upon - and would invalidate your insurance.
All of which is moot, as others have said, because the proposed modification is pointless - the ECU will automatically be shutting off the fuel anyhow!
Thank you for providing link to forum! I will read up on Serial Prints as this is all still new to me. In my case, the car (2000 Honda Insight MT) goes into Autostop from factory when you hit 19mph or lower. This modification is to manually send signal to autostop. For example when going down a hill at 45mph you can send a signal to Autostop and coast downhill with engine off. Electric Power steering, Lights, brakes, and other things relating to safety does not get cut off just like factory. This is not in control of any other modules except VSS speed sensor signal to ECM. The car will come out of Autostop when put back into gear from factory as well as with this modification. I believe other owners have tested this for years. If it is indeed illegal in any way then I will not be adding this modification.
I do not know for which controller it was written for but I believe a member here posted a link to original forum where it shows the controller used. I do not have any experience and am new to this.
Yes car is insured
Thank you for the fast reply. Yes reset button. Yes on board LED. I will read up on serial ports as I am still learning
I think you missed the point?
With this type of modification to the car, it is likely that you have voided that insurance!
Exactly.
And when you inform the insurance company and you provide the details of the conversion "I do not have any experience and am new to this" and "I got the instructions from a DIY forum on the Internet", I do wonder what the insurers reaction will be ....................
If this voids my insurance I will not be adding this modification. Thank you for letting me know about this
I think something along the lines of:
In these parts, that's a question that shouldn't be asked directly. Ask it, and it's entirely possible a "note" goes on your file... not a positive note, either. There is no question that insurers retain information about clients that may prejudice a future claim. Be forewarned.