# Section control code help

**URL:** <https://discourse.agopengps.com/t/section-control-code-help/1817>\
**Category:** Section Control\
**Created:** [23 April 2020 08:24 UTC](https://discourse.agopengps.com/t/section-control-code-help/1817 "2020-04-23T08:24:40Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![hagre](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/h/9dc877/32.png) [@hagre](https://discourse.agopengps.com/u/hagre)\
**Post date:** [27 April 2020 10:08 UTC](https://discourse.agopengps.com/t/section-control-code-help/1817/12 "2020-04-27T10:08:08Z")

</div>

@BrianTee_Admin  
It looks like the timing is adjusted, but the purple line is still in the same position/distance of the vehicle.

Now I updated the [Machine\_USB\_4202\_16pins\_V3.2.ino](https://discourse.agopengps.com/uploads/short-url/tknObXCjBFeKflKSHQNy56hbz6H.ino) (12,0 KB)  
it is also avaliable in a pullrequest on Github [https://github.com/farmerbriantee/AgOpenGPS/pull/161in](https://github.com/farmerbriantee/AgOpenGPS/pull/161in) the v4201 branch. (incl. serial connection with MEGA2560 correction in AGOpenGPS)

This new Arduino Mashine USB file with the posibility to select up to 16 Relays. (if compiled with MEGA2560)  
It is possible to adjust all timings in the code without blocking.  
Use of relays as simulated puchbuttons (as impulse) is selectable with  
//#define OUTPUT\_TO\_RELAY\_IS\_IMPULSE //comment out if normal output is required

---

_[View the full topic](https://discourse.agopengps.com/t/section-control-code-help/1817)._
