Docsity

Speeduino Manual, Esquemas de Literatura Ensino Médio

Toggle sidebar
bg1
Speeduino Manual 03/20/22
Contents
Introduction 5
Loading the Speeduino firmware 6
Overview ............................................. 6
Installation-SpeedyLoader ................................... 6
Installation - Manually Compiling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Connecting to Tuner Studio 11
DownloadingTunerStudio.................................... 11
Settingupyourproject...................................... 11
Configuring TunerStudio Project Properties 15
SettingsTab............................................ 17
CANDevicesTab ......................................... 19
High level wiring guide 20
Injector wiring 20
Overview ............................................. 20
SupportedInjectors ....................................... 21
Layouts .............................................. 21
Ignition Wiring 25
Overview ............................................. 25
WastedSpark ........................................... 26
Sequential(COPs) ........................................ 27
Distributor ............................................ 28
ApplicationSpecific ....................................... 29
Analog Sensor Wiring 29
Engine Constants 30
Overview ............................................. 30
Configuration........................................... 31
Injector Characteristics 33
Overview ............................................. 33
Settings .............................................. 34
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe Speeduino Manual e outras Esquemas em PDF para Literatura Ensino Médio, somente na Docsity!

Contents

  • Introduction
  • Loading the Speeduino firmware
    • Overview
    • Installation - SpeedyLoader
    • Installation - Manually Compiling
  • Connecting to Tuner Studio
    • Downloading Tuner Studio
    • Setting up your project
  • Configuring TunerStudio Project Properties
    • Settings Tab
    • CAN Devices Tab
  • High level wiring guide
  • Injector wiring
    • Overview
    • Supported Injectors
    • Layouts
  • Ignition Wiring
    • Overview
    • Wasted Spark
    • Sequential (COPs)
    • Distributor
    • Application Specific
  • Analog Sensor Wiring
  • Engine Constants
    • Overview
    • Configuration
  • Injector Characteristics
    • Overview
    • Settings
  • Trigger Setup
    • Overview
    • Trigger Settings
    • Finding tooth #1 and trigger angle
  • IAT Density
    • Overview
    • Example Curve
  • Fuel (VE) table
    • Configuration
    • Secondary Fuel table
  • Acceleration Enrichment (AE)
    • Theory
  • AFR/O2 (Closed loop fuel)
    • Settings
  • Limiters
    • Settings
  • Flex Fuel
    • Overview
    • Hardware
    • Tuning
  • Staged Injection
    • Overview
    • Configuration
  • Spark Settings
    • Overview
    • Settings
  • Dwell Control
    • Overview
    • Settings
    • Voltage correction
    • Dwell map
  • Temperature based timing changes
    • Example
    • Overview
    • Settings
    • Priming pulsewidth
    • Warmup curve
    • Overview
    • Settings
  • Idle Control
    • Overview
    • Compatible Idle Valve Types
    • Closed Loop Control
  • Idle advance control
    • Settings
  • Thermo fan
    • Settings
  • Launch Control & Flat Shift
    • Setup
  • Fuel pump
    • Settings
  • Boost Control
    • Settings
    • Target table
  • Nitrous Control
    • Activation Settings
    • Stage Settings
  • Variable Valve Timing (VVT)
    • VVT modes
    • Settings
    • VVT duty cycle
  • VSS and Gear Detection
    • Settings
  • Sensor Calibration
    • MAP Sensor
    • Coolant and Intake Temperature Sensors
    • Oxygen Sensor
    • Throttle Position Sensor
  • Auxillary IO Configuration
    • How to Use
  • Supported trigger patterns
    • Missing Tooth Pattern
    • Missing tooth (Cam speed)
    • Dual Wheel
    • Basic Distributor
    • Trigger Signal
    • GM 7X
    • 4G63 Pattern
    • Overview
    • Trigger Signal
    • Overview
    • Trigger Signal
    • Harley Evo
    • Overview
    • Miata 99-05
    • Non-360 Decoder
    • Overview
    • Applications
    • Tuner Studio Configuration
    • Timing adjustment
    • Trigger Pattern
    • Subaru 36-2-2-2
  • V0.4 Board
    • Overview
    • Board Features
    • Physical Layout
    • Board Assembly
    • Board Configuration
    • Board revisions

V0.3 Board 130 Overview............................................. 130 Board Features.......................................... 130 Physical Layout.......................................... 131 Proto area............................................. 131 Board Assembly.......................................... 132 Board Configuration....................................... 133 Board revisions.......................................... 136

Introduction

This manual covers the hardware (sensors, wiring etc), software configuration and tuning elements related to running a Speeduino unit. When beginning with Speeduino, particularly if it is your first time installing and configuring an engine management system, this manual will assist in understand- ing Speeduino’s capabilities and how it should be installed, both in terms of hardware and software/- firmware.

Whilst this document will assist in providing information related to Speeduino’s configuration, it does not cover advanced engine tuning, fuel / ignition strategies etc. As with any changes to engine manage- ment, the possibility of damage to hardware is very real should a system be configured incorrectly.

Getting Started

In terms of starting out with Speeduino, it can help to understand the various components that make up the system:

  1. A Speeduino board - This is the muscle of the Speeduino ECU and contains all the drivers and IO circuits. This maybe one of the generic boards (Such as the v0.4) or a PNP board for a specific model car
  2. An Arduino - This is the brains of Speeduino and contains the processor, memory and storage. It plugs into the Speeduino board in order to interface with the vehicle wiring. Usually a Arduino Mega 2560.
  3. Firmware - This is the system software that runs on the Arduino board and powers its operation. New firmware is released regularly with updates, performance improvements and bug fixes.

As a starting point, it is generally recommended to first upload the firmware to your Arduino and get it connecting to the tuning software (Tuner Studio) before moving on to hardware assembly or wiring etc. Software setup and configuration on Speeduino can be completed without the need for any additional

  • Mac: SpeedyLoader.dmg
  • Linux: SpeedyLoader.AppImage (Will need to be made executable after downloading) - Linux requires libusb libraries to be installed. EG if on Debian/Ubuntu: sudo apt-get install libusb-1.0-0 libusb-0.1-4:i
  • Raspberry Pi SpeedyLoader.AppImage - Raspberry Pi / Raspbian users can install the required libraries with: sudo apt-get install libusb-1.0-0 libusb-0.1-

Once the firmware is installed on the board, see Connecting to TunerStudio for more details on how to configure TunerStudio

Installation - Manually Compiling

Note that manually compiling the firmware is NOT required to install Speeduino, the easiest (and recommended for most users) method is using SpeedyLoader as described above. {.is-warning}

If you want to compile the firmware yourself, or make any code changes, then the source of both the releases and the current development version is freely available.

Requirements

  • A Windows, Mac or linux PC
  • One of the following: - The Arduino IDE. Current minimum version required is 1.6.7, although a newer version is recommended. - PlatformIO. Can be downloaded from here
  • A copy of the latest Speeduino codebase. See below.
  • A copy of TunerStudio to test that the firmware has uploaded successfully

Downloading the firmware

There are two methods for obtaining the Speeduino firmware:

  1. Regular, stable code drops are produced and made as releases on Github. These can be found at: Releases
  2. If you want the latest and greatest (And occasionally flakiest) code, the git repository can be cloned and updated. See here

Compiling the firmware

  • Start the IDE, select File > Open, navigate to the location you downloaded Speeduino to and open the speeduino.ino file.
  • Set the board type: Tools > Board > Arduino Mega 2560 or Mega ADK (This is the only board cur- rently supported)
  • Click the Verify icon in the top left corner (Looks like a tick)

At this point you should have a compiled firmware! If you experienced a problem during the compile, see the Troubleshooting section below.

This video walks through the whole process of installing the firmware on your Arduino from scratch:

Optional (But recommended) There is an option available for changing the compiler optimization level, which can improve. By default, the IDE uses the -Os compile option, which focuses on producing small binaries. As the size of the Speeduino code is not an issue but speed is a consideration, changing this to -O3 produces better results (Approximately 20% faster, with a 40% larger sketch size) To do this, you need to edit the platform.txt file:

  • Make sure the Arduino IDE isn’t running
  • Open the platform.txt file which is in the following locations: - On Windows: c:\Program Files\Arduino\hardware\arduino\avr - On Mac: /Applications/Arduino/Contents/Resources/Java/hardware/arduino/avr/ - On Linux:
  • On the following 3 entries, change the Os to be O3: - compiler.c.flags - compiler.c.elf.flags - compiler.cpp.flags
  • Save the file and restart the Arduino IDE

Note: This is NOT required if using PlatformIO, the above optimisation is applied automatically there

Installing

Once you’ve successfully compiled the firmware, installation on the board is trivial.

  • Plug in your Mega 2560 to a free USB port

Troubleshooting

Incorrect Arduino board selected If you see the following (or similar) errors when trying to compile the firmware and the solutions: 1 scheduler.ino:317:7: error: ‘’OCR4A was not declared in this scope 2 scheduler.ino:323:8: error: ‘’TIMSK5 was not declared in this scope 3 scheduler.ino:323:25: error: ‘’OCIE4A was not declared in this scope

You may have the wrong kind of Arduino board selected. Set the board type by selecting Tools > Board

Arduino Mega 2560 or Mega ADK

Entire Speeduino project is not opened The following can occur if you have only opened the speeduino.ino file rather than the whole project. speeduino.ino:27:21: fatal error: globals.h: No such file or directory Make sure all the files are contained within the same directory, then select File->Open and find the speeduino.ino file. If you have opened the project correctly, you should have multiple tabs along the top:

Figure 1: speeduinoIDE.png

If you see only a single file or a small number of files then you haven’t opened the entire project.

Connecting to Tuner Studio

Tuner Studio is the tuning interface software used by Speeduino. It runs on Windows, Mac and linux and provides configuration, tuning and logging capabilities. Once you have the firmware compiled and uploaded to your Arduino, you’re ready to setup Tuner Studio in order to configure and monitor it. If you haven’t yet compiled and uploaded the firmware, refer to the Installing Firmware page.

Downloading Tuner Studio

If you haven’t already, grab a copy of Tuner Studio from EFI Analytics Tuner Studio is available for Windows, Mac and linux and will run on most PCs as it’s system requirements are fairly low.

The current minimum version of TunerStudio required is 3.0.7, but the latest version is usually recom- mended. If you find Tuner Studio to be useful, please consider paying for a license. This is a fantastic program from a single developer that rivals the best tuning software in the world, it’s worth the money.

Setting up your project

Create new project

When you first start TunerStudio, you’ll need to setup a new project which contains the settings, tune, logs etc. On the start up screen, select ‘Create new project’

speeduino.ini file

Figure 4: TS_3.png

Configuration options

Refer to the Configuring TunerStudio project options page for this

Comms settings

Select your comms options. The exact port name will depend on which operating system you are running and this will be the same as in the Arduino IDE. Baud rate should be 115200.

Figure 5: Comms Settings

Note: The Detect and Test port options require Tuner Studio version 3.0.60 or above to work correctly {.is-info}

Load base tune

Once the project is created, you’ll need to load in a base tune to ensure that all values are at least somewhat sane. Failure to do this can lead to very strange issues and values in your tune.

Figure 6: TS_6.png

In the Speeduino reference directory, you will find the base tune file to be opened:

Figure 8: TS_9.png

Once opened this page will be seen.

Figure 9: TS_4.png

Settings Tab

The Settings tab does not affect the tune directly, but does change the way some things are displayed within Tuner Studio. Some menus are hidden by default, either for safety reasons or because they are still under development, and they can be enabled here.

Lambda Display

This changes whether the oxygen sensor reasons are shown in AFR (default) or Lambda.

Temperature Display

The temperature selection changes all degrees values within TunerStudio.

  • Fahrenheit(Default)

Reset control features

An optional Speeduino specific boot loader is available that has different methods of controlling the automatic reset. The vast majority of users should leave this on the default ‘Basic options only’

CAN Devices Tab

CAN options are currently under development, but settings are available on this tab for testing if you have supported hardware.

Figure 11: CAN Devices

Configuration of CAN devices is currently unsupported

High level wiring guide

Speeduino can be configured in many ways depending on the engine, sensors, ignition and fuel hard- ware being used. For this reason it is impossible to provide 1 single diagram that will cover all scenar- ios, however the below is provided as a high level guide that can be used as a starting point. See the Hardware Requirements page for specific requirments and exceptions to the image below.

Figure 12: wiring_overview.png

Injector wiring

Overview

Speeduino contains 4 injector control circuits and is capable of supporting up to 8 injectors (and cylin- ders) with these.