Steer Position Zero. Value ? - Page 2 - The Combine Forum
 1Likes
Reply
 
LinkBack Thread Tools
post #11 of 14 (permalink) Old 06-05-2019, 01:08 PM Thread Starter
Junior Member
 
Join Date: Dec 2018
Posts: 15
Mentioned: 0 Post(s)
Quoted: 6 Post(s)
The directions say to adjust the steerpositionzero up or down if you can't get the steering angle to zero out when configuring. The only area that this variable is mentioned is with these settings:

steeringPositionZero = 1530 + Serial.read()

The think I have a gain issue, but still don't know how to resolve it. As Brian suggested I will measure the voltage on the output pin when I have the steering wheel in the straight position and look for 2.5V. I plan on posting my results yet this week unless anyone else has other suggestions.

Thanks,

cornhusker2 is offline  
Sponsored Links
Advertisement
 
post #12 of 14 (permalink) Old 06-06-2019, 12:54 PM
Senior Member
 
Join Date: Aug 2012
Location: Vermilion Alberta Canada
Posts: 5,683
Mentioned: 18 Post(s)
Quoted: 2485 Post(s)
Quote:
Originally Posted by cornhusker2 View Post
The directions say to adjust the steerpositionzero up or down if you can't get the steering angle to zero out when configuring. The only area that this variable is mentioned is with these settings:

steeringPositionZero = 1530 + Serial.read()

The think I have a gain issue, but still don't know how to resolve it. As Brian suggested I will measure the voltage on the output pin when I have the steering wheel in the straight position and look for 2.5V. I plan on posting my results yet this week unless anyone else has other suggestions.

Thanks,

Everything has to work together. The 1530 plus the number you set in settings subtracts from the 3000 and some at full scale to give you a zero reading when straight ahead, -1500 when turning left and +1500 when turning right. You need all those numbers to be right.

BrianTee is offline  
post #13 of 14 (permalink) Old 06-06-2019, 08:49 PM
Senior Member
 
Join Date: Jan 2018
Location: P.E.I. Canada
Posts: 206
Mentioned: 2 Post(s)
Quoted: 83 Post(s)
Quote:
Originally Posted by cornhusker2 View Post
The directions say to adjust the steerpositionzero up or down if you can't get the steering angle to zero out when configuring. The only area that this variable is mentioned is with these settings:

steeringPositionZero = 1530 + Serial.read()

The think I have a gain issue, but still don't know how to resolve it. As Brian suggested I will measure the voltage on the output pin when I have the steering wheel in the straight position and look for 2.5V. I plan on posting my results yet this week unless anyone else has other suggestions.

Thanks,
I'm wondering if you are digging too deep. If I'm not mistaken I think you're looking too far in the code for steeringPositionZero. If you look at the Arduino code in the AgOpenGPS_DEV folder. The line I think you need to adjust is line 83 not line 302. This is under steering variables.

I could be wrong on this but that is just my observation not having set up a PCB yet. It looks like this in the Arduino code right now

Code:
 //steering variables
  float steerAngleActual = 0;
  float steerAngleSetPoint = 0; //the desired angle from AgOpen
  long steeringPosition = 0;
  int steeringPositionZero = 1660; //from steering sensor
  float steerAngleError = 0; //setpoint - actual
  float distanceError = 0; //
  float steerSensorCounts = 32;
WTalen is online now  
Sponsored Links
Advertisement
 
post #14 of 14 (permalink) Old 06-14-2019, 06:58 PM Thread Starter
Junior Member
 
Join Date: Dec 2018
Posts: 15
Mentioned: 0 Post(s)
Quoted: 6 Post(s)
I have verified that I get varying volts when moving it left to right. Roughly. 1.75 to 3.25. So that appears to be good. But I have no data in AGOpenGPS. I verified this on the pcb itself. Ideas?
cornhusker2 is offline  
Sponsored Links
Advertisement
 
Reply

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the The Combine Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome