# Spinning screen

**URL:** <https://discourse.agopengps.com/t/spinning-screen/2424>\
**Category:** Getting Started\
**Created:** [8 July 2020 21:28 UTC](https://discourse.agopengps.com/t/spinning-screen/2424 "2020-07-08T21:28:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [8 July 2020 21:28 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/1 "2020-07-08T21:28:18Z")

</div>

I thought I read in a post about aog screen spinning, but I can’t find it.  
Aog v4.1.12 with button.ino  
Its driving decent in the field, but no roll.  
I went into roll and chose gps from autosteer, and the screen starts spinning. Choose none and it stops spinning. Using adafruit mma.

---

<div class="post-metadata">

**Author:** ![Richardklasens\_admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/richardklasens_admin/32/22279_2.png) [@Richardklasens\_admin](https://discourse.agopengps.com/u/Richardklasens_admin)\
**Post date:** [8 July 2020 21:34 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/2 "2020-07-08T21:34:01Z")

</div>

You need to restart AOG to prevent from spinning. Do you get good values from the MMA when you check with serial monitor in Arduino Compiler?

Allright… so…  
Lets see about the settings:  
Set it like this:

Fix from GGA  
Heading from fix to fix  
Heading correction → none  
Roll → from autosteer

Did you set all the values from tractor dimensions like antenna height?  
Did you also zero’ed it out after selecting the roll source?

Can you make a video from the screen?

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [8 July 2020 23:18 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/6 "2020-07-08T23:18:57Z")

</div>

Well I did a video but it won’t allow me to send it. All of my settings are the way you asked.  
I don’t know what you mean by re zero unless it’s the roll zero.

---

<div class="post-metadata">

**Author:** ![Richardklasens\_admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/richardklasens_admin/32/22279_2.png) [@Richardklasens\_admin](https://discourse.agopengps.com/u/Richardklasens_admin)\
**Post date:** [8 July 2020 23:20 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/7 "2020-07-08T23:20:00Z")

</div>

Yes Roll Zero… but that won’t help either…  
please upload to YouTube or some and post a link here

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [8 July 2020 23:25 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/8 "2020-07-08T23:25:47Z")

</div>

> [@Jhmach](#):
>
> I thought I read in a post about aog screen spinning, but I can’t find i

Yes there was something with zeroing the roll, but maybe it is also connected to the position set in AOG. Set to your place, restart AND make new field at your place in the world.

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [9 July 2020 00:04 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/9 "2020-07-09T00:04:20Z")

</div>

[![](https://discourse.agopengps.com/uploads/default/original/2X/e/e8e2eff92ba01dab31d8e38b2fa858f63873934f.jpeg "Aog roll") ](https://www.youtube.com/watch?v=3PdkwVsrjTc)

Okay, here’s the link  
I did start a field and ab line, and it still spins.

---

<div class="post-metadata">

**Author:** ![Kaupoi](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/ea5d25/32.png) [@Kaupoi](https://discourse.agopengps.com/u/Kaupoi)\
**Post date:** [9 July 2020 05:06 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/10 "2020-07-09T05:06:55Z")

</div>

I’m not sure if this helps, but you should set gps rate (hz) the same at aog and gps source.  
You could also remove unnecessary nmea sentences. AOG only needs GGA and VTG.

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [9 July 2020 05:59 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/11 "2020-07-09T05:59:26Z")

</div>

Do you have a valid roll source? normally it is possible to ofset/zero the roll, after restart of aog when roll has been activated.  
In sim it also spins like you show, if roll is activated without any roll source connected.

---

<div class="post-metadata">

**Author:** ![Richardklasens\_admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/richardklasens_admin/32/22279_2.png) [@Richardklasens\_admin](https://discourse.agopengps.com/u/Richardklasens_admin)\
**Post date:** [9 July 2020 06:20 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/12 "2020-07-09T06:20:56Z")

</div>

Roll is constantly changing with a huge amount of data. The serial string shows:

Current steerangle,setpoint,heading,roll,switchstate  
As you can see the roll value keeps counting upwards. Something isn’t good with the data from your pcb. Looks like a bad connection or something.

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [9 July 2020 11:51 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/13 "2020-07-09T11:51:23Z")

</div>

I was tilting the steer box to show it was working. Was at 8 and I tilted it to 50 and back

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [9 July 2020 12:46 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/14 "2020-07-09T12:46:34Z")

</div>

I changed the frequency  
Still learning on how to change the nmea

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [9 July 2020 12:55 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/15 "2020-07-09T12:55:56Z")

</div>

I have good stable roll coming out of steer box.  
Was thinking about going back to 3.09 and try that.  
I should have 3 or 4 weeks till I need this tractor. Have been thinking about trying the relay from led pin and going back to md13 drive to drive the danfoss, and trying to go back to 4.3.10. That would simplify things a lot.

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [9 July 2020 17:11 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/16 "2020-07-09T17:11:54Z")

</div>

Switched to v3.09 and now have roll

---

<div class="post-metadata">

**Author:** ![m\_elias](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.agopengps.com/u/m_elias)\
**Post date:** [9 July 2020 18:43 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/17 "2020-07-09T18:43:54Z")

</div>

Are you also switching Arduino versions to match your AoG version?

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [9 July 2020 19:50 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/18 "2020-07-09T19:50:14Z")

</div>

Ya, I’m running coffeetrac.ino due to danfoss valve

---

<div class="post-metadata">

**Author:** ![BrianTee\_Admin](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/briantee_admin/32/7_2.png) [@BrianTee\_Admin](https://discourse.agopengps.com/u/BrianTee_Admin)\
**Post date:** [9 July 2020 19:51 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/19 "2020-07-09T19:51:16Z")

</div>

I’m pretty sure people have been using the new version with the danfoss?

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [9 July 2020 20:52 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/20 "2020-07-09T20:52:38Z")

</div>

4.3.10?  
If so, would someone let me know if they are using the md13s and how you have it wired. I’m determined to aog ino. Thanks

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [10 July 2020 13:01 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/21 "2020-07-10T13:01:34Z")

</div>

Larsvest, did you put the danfoss lines into the pcb ino ?

---

<div class="post-metadata">

**Author:** ![Larsvest](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/l/50afbb/32.png) [@Larsvest](https://discourse.agopengps.com/u/Larsvest)\
**Post date:** [10 July 2020 22:20 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/22 "2020-07-10T22:20:55Z")

</div>

I did not, I don’t have a Danfoss valve or a cytron. But read here what grabik did in this thread.  
.ino for PCB+MD13S+Danfoss valve

> [@.ino for PCB+MD13S+Danfoss valve](https://discourse.agopengps.com/t/ino-for-pcb-md13s-danfoss-valve/762):
>
> I ask on behalf of a colleague… Is there any .ino for PCB+MD13S+Danfoss setup. I couldn’t find such option in Brian’s or Coffeetrac’s .inos.

I think it is in the pid. Ino

> [@.ino for PCB+MD13S+Danfoss valve](https://discourse.agopengps.com/t/ino-for-pcb-md13s-danfoss-valve/762/26):
>
> File Autosteer\_switch-master.zip unzip and open I arduino.
> 
> In file “PID.ino”
> 
> write on botom file, or copy-paste:
> 
> //=========================================  
> #if (Output\_Driver == 4) //PWM 50% if pwmDrive ~ 0 , PWM 0% if pwmDrive -255 …  
> void motorDrive(void)  
> {// Used with Danffos valve 50% pwm off valve
> 
> ```auto
> pwmDanffos = (pwmDrive/2)+128;
> 
> ```
> 
> if(pwmDanffos \> 195) pwmDanffos = 195; // max 0,75 U , PWM 75%  
> if (pwmDanffos \< 1 ) pwmDanffos = 48; // min 0,25 U ,PWM 25%
> 
> ```auto
> analogWrite(PWM1_PIN, pwmDanffos);
> 
> ```
> 
> }  
> #endif
> 
> //==========================================
> 
> In file “Autosteer swetch” on top file write “4” :
> 
> #define Output\_Driver **4**
> 
> same file, need add “ **pwmDanffos = 0** “ :
> 
> //pwm variables  
> int pwmDrive = 0, drive = 0, pwmDisplay = 0 , **pwmDanffos = 0** ;  
> float pValue = 0, iValue = 0, dValue = 0;
> 
> Need test and PWM duty cycle should have range between 25% to 75%.

---

<div class="post-metadata">

**Author:** ![Jhmach](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@Jhmach](https://discourse.agopengps.com/u/Jhmach)\
**Post date:** [10 July 2020 23:48 UTC](https://discourse.agopengps.com/t/spinning-screen/2424/23 "2020-07-10T23:48:04Z")

</div>

Thanks. I’ve been reading that post and with your questions I thought you might have done that mod.  
I have those sections printed out to study. My plan is to add danfoss pwm to pcb ino. I have never written code for arduino, but I think it’s doable, and Brian’s reply to put 50% cycle to the drive make me more confident.  
If we can make it work, it would be nice to have a pcb revision that adds a relay to power the md13s.

[Next page](https://discourse.agopengps.com/t/spinning-screen/2424.md?page=2)
