Page 2 of 2

Re: stepper motor logic

Posted: Sun Jan 18, 2015 9:07 pm
by AndreyB
puff wrote:one more idea. what if we make a line in engine config, which would determine if it it would be 4-pin or step-dir control?
do you know a person who would make the 4-wire implementation? because trust me: once I have one implementation and it works, it would be hard to convince me to make another one :(

Re: stepper motor logic

Posted: Mon Jan 19, 2015 5:26 am
by puff
this would be me ;-) may be DaWaN
the thing is i got l293 (SN754410) - which is the power contour. I was very happy to know you started implementation of stepper control (no need to build PWM to stepper converter). To avoid purchasing that $20 board, I was researching some cheaper options and found solution based on 5 Russian chips :D When discussing various options with forum people, all of them were convincing me do that in firmware, rather than in hardware, claiming that any extra circuitry adds complexity to the overall solution.

Re: stepper motor logic

Posted: Sat Feb 28, 2015 4:09 pm
by Blown7
Just looking around after being gone for a long while recuperating.

On FCA (Chrysler vehicles) the idle stepper circuit becomes the ETC circuit on throttle by wire ECU's. It does double duty as both the stepper motor and the throttle body motor use the same H bridge. Just a FYI in case this project moves forward with drive by throttle control someday.

Re: stepper motor logic

Posted: Mon Mar 02, 2015 7:29 am
by meXanicus
С 4-проводным управлением можно использовать шаговый двигатель или же электрическую дроссельную заслонку. При одной и той же печатной плате покрываются потребности обоих типов дроссельной заслонки. Это бы в конечном итоге сэкономило деньги.
Google.Translate: With 4-wire control, you can use a stepper motor or an electric throttle. At the same printed circuit board covers the needs of both types of throttle. This would ultimately save money.

Re: stepper motor logic

Posted: Mon Mar 30, 2015 1:22 pm
by AndreyB
[video][/video]

AC151 idle air control valve
Idle Air Control Valve 94-02 LT1 LT4 LS1 GM Pigtail
A4988 with Heat

Re: stepper motor logic

Posted: Mon May 11, 2015 6:14 pm
by Tambralinga
http://www.stealth316.com/2-isc-iac.htm
ISC for mitsubishi all model
You are an example for the use on Rusefi ?

Re: stepper motor logic

Posted: Mon May 11, 2015 7:37 pm
by AndreyB
Tambralinga wrote:http://www.stealth316.com/2-isc-iac.htm
ISC for mitsubishi all model
You are an example for the use on Rusefi ?
I believe this one would work with rusEfi as long as you have the A4988 module - you would connect only four wires and simply leave two wires unconnected.

I do not have a stepped like that to try.

Re: stepper motor logic

Posted: Wed May 13, 2015 10:26 pm
by Number-One
Great. Can i order one?

Re: stepper motor logic

Posted: Wed May 13, 2015 10:34 pm
by AndreyB
Number-One wrote:Great. Can i order one?
http://www.ebay.com/itm/261815066732

Re: stepper motor logic

Posted: Sun Feb 14, 2016 8:19 pm
by Number-One
Hello, need instruction to connect the stepper board to stm.
I have these pins:
gnd-»gnd-ok
vdd-»5v-ok
1A,2A,1B.2B-»motor-ok
vmot? need? my motor only have 4 wires (2 coils) don´t need this pin right?
enable(rusefi enable pin)? which pin?
MS1?
MS2?
MS3?
Reset-»sleep-ok
step?
direction?

Need help,thank you.

Re: stepper motor logic

Posted: Mon Feb 15, 2016 1:08 pm
by kb1gtt
I have A4988 set like this for truck IAC valve. If it's not noted below, there is no connection to that A4988 board.
IAC reference Haynes 12-41
-- A4988 ENABLE --> STM32 PE12
-- A4988 SLEEP --> A4988 RESET (JUMPER TOGETHER)
-- A4988 STEP --> STM32 PE14
-- A4988 DIRECTION --> STM32 PE10
-- A4988 GND --> GND (BOTH GND'S SHOULD BE NEAR HARNESS CONNECTOR)
-- A4988 VDD --> 5V
-- A4988 1B --> harness side of W20 --> Frank pin 1T --> ECU harness A20 --> step 4
-- A4988 1A --> harness side of W19 --> Frank pin 1S --> ECU harness A19 --> step 1
-- A4988 2A --> harness side of W17 --> Frank pin 1Q--> ECU harness A10 --> step 2
-- A4988 2B --> harness side of W18 --> Frank pin 1R --> ECU harness A11 --> step 3
-- A4988 GND --> GND (BOTH GND'S SHOULD BE NEAR HARNESS CONNECTOR)
-- A4988 VMOT --> 12V BAT (ADDED 47uF TO 100uF 25V CAP)
The -- A4988 is this board or equivalent. https://www.pololu.com/product/1182
Posted here http://rusefi.com/forum/viewtopic.php?f=3&t=864

Re: stepper motor logic

Posted: Wed Feb 17, 2016 8:56 pm
by Number-One
Thank you.

Re: stepper motor logic

Posted: Wed Jan 04, 2017 9:46 pm
by puff
what lines do I add to my rover_v8.cpp file to switch to stepper idle and enable those pe10, pe12, pe14 pins?

Re: stepper motor logic

Posted: Wed Jan 04, 2017 10:00 pm
by AndreyB
setDefaultConfiguration has

Code: Select all

	boardConfiguration->idle.stepperDirectionPin = GPIOE_10;
	boardConfiguration->idle.stepperStepPin = GPIOE_12;
	engineConfiguration->stepperEnablePin = GPIOE_14;
	engineConfiguration->idleStepperReactionTime = 10;
	engineConfiguration->idleStepperTotalSteps = 150;
you just need to add

Code: Select all

boardConfiguration->useStepperIdle = true;

Re: stepper motor logic

Posted: Thu Jan 05, 2017 1:59 pm
by puff
Used this file, compiled and flashed the firmware. As a result:

Code: Select all

2017-01-05 16_56: EngineState: confirmation_idleinfo:8
2017-01-05 16_56: EngineState: idleMode=IM_MANUAL position=50.00 isStepper=No
2017-01-05 16_56: EngineState: idle valve freq=200 on NONE
2017-01-05 16_56: EngineState: idleControl=IC_LINEAR
2017-01-05 16_56: EngineState: idle P=0.10 I=0.05 D=0.00 dT=10
Seems, not working?

Re: stepper motor logic

Posted: Thu Jan 05, 2017 2:24 pm
by puff
stupid me. haven't updated the file.