# Need some help: Arduino section control

**URL:** <https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666>\
**Category:** Getting Started\
**Created:** [27 November 2021 20:51 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666 "2021-11-27T20:51:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![GertSchouterden](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/gertschouterden/32/20388_2.png) [@GertSchouterden](https://discourse.agopengps.com/u/GertSchouterden)\
**Post date:** [27 November 2021 20:51 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/1 "2021-11-27T20:51:43Z")

</div>

Hello,

-Used hardware: AgOpenGPS develloper kit from Andreas Ortner ([AgOpenGPS Set – DIY – Autosteer – Andreas Ortner](https://www.autosteer.cc/produkt-kategorie/agopen-set/)) + optional compass/tilt + optional section control board.

-I was able to configure the Ublox gps using the accompanying guides (“mitglieder”) and it is working fine.  
-I uploaded the “Autosteer\_USB\_v5\_0” support files to the built-in Arduino. And got AgIO coupled to the two built in COM ports (GPS and Arduino). The gps, steer angle and compass/tilt seem to be working fine.

-Now when it comes to the section control it is not clear what steps to undertake.  
The support files include also “Machine\_USB\_v5\_0” files that control the section control. But since this is a separate program this is meant to be run on a separate Arduino and not controlled over the I2C bus like in the hardware i am using?  
In the “Autosteer\_USB\_v5\_0” files there is also a “autosteerrelays” code, but this is completely commented out and not called in the main program. So this does not seem what i need for the section control.

There also seems to have been a guide on the “mitglieder” page of Andreas according to google, but it does not exist anymore [https://www.autosteer.cc/arduino-ide-und-sketch/](https://www.autosteer.cc/arduino-ide-und-sketch/)

What am i overlooking? Did i miss a guide somewhere? Or any other feedback what i am missing/doing wrong is welcome.

---

<div class="post-metadata">

**Author:** ![Pat](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/p/8491ac/32.png) [@Pat](https://discourse.agopengps.com/u/Pat)\
**Post date:** [28 November 2021 00:25 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/2 "2021-11-28T00:25:28Z")

</div>

How does the optional section control board look like?  
I don’t have one of these boards but I think it has an specific ino.

There is not a lot of info about this board here.  
It’s this board?

> [@SMD PCB Project for an all-in-one compact PCB for AOG/QOG](https://discourse.agopengps.com/t/smd-pcb-project-for-an-all-in-one-compact-pcb-for-aog-qog/3640):
>
> Hi community, right now I’m going to order samples of my first PCB design: Costs will be about $35 per fully SMD assembled PCB when ordering 10 pieces at [JLCPCB](https://jlcpcb.com). As I’m still waiting for the availability of the USB hub chip, all comments and suggestions are still welcome grinning Hope, you’ll find all necessary information on [github](https://github.com/GormR/HW_for_AgOpenGPS/blob/main/central_unit). @BrianTee_Admin For sure I would appreciate your feedback most to get to know if my idea’s are compatible with your’s for the future from the software…

---

<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:** [28 November 2021 01:28 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/3 "2021-11-28T01:28:39Z")

</div>

> [@GertSchouterden](#):
>
> What am i overlooking? Did i miss a guide somewhere? Or any other feedback what i am missing/doing wrong is welcome.

Maybe there is no complete PCB for section control yet.

> [@John Deere hitch control / hms button activation](https://discourse.agopengps.com/t/john-deere-hitch-control-hms-button-activation/2125/38):
>
> Hi!!! I have loaded the Autosteer\_USB\_v5\_0\_MACHINE (2) file onto my autosteer PCB arduino but it doesn’t send a signal through D2 and D5. (I have defined a headland and the hydraullic lift icon appears green, the green and red arrows appear on the screen. AgOpenGPS-5.2.0 version). I miss something?

> [@Building Section and Machine Control - For Beginners](https://discourse.agopengps.com/t/building-section-and-machine-control-for-beginners/939):
>
> Hi All, The plan is to build and document building a box that will allow for section and machine control that will work with AOG. The idea now is to build a seperate box that will work with relays to do section control for a start and then expand from there. Throw your ideas our way and we will see what happens. Curt

> [@Machine Control Board - USB](https://discourse.agopengps.com/t/machine-control-board-usb/1441):
>
> I’ve made the schematic for the USB Machine Board. Quite simple to assemble point to point even. See corrected schematic below [MachineUSB\_Schematic]

Edit:  
Actually Andreas Ortner does have a 8 relay board in his autosteer shop 🙂

---

<div class="post-metadata">

**Author:** ![GertSchouterden](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/gertschouterden/32/20388_2.png) [@GertSchouterden](https://discourse.agopengps.com/u/GertSchouterden)\
**Post date:** [28 November 2021 10:20 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/4 "2021-11-28T10:20:15Z")

</div>

Some pictures of the used setup:

 ![IMG_20211128_103622](https://discourse.agopengps.com/uploads/default/original/2X/7/7e3b25fe30684e867b38da490420a76907fd086b.jpeg)  
 ![IMG_20211128_103525](https://discourse.agopengps.com/uploads/default/original/2X/1/12ac49fdaae7788d9c87f0ce7a72679ffe1ab517.jpeg)

---

<div class="post-metadata">

**Author:** ![GertSchouterden](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/gertschouterden/32/20388_2.png) [@GertSchouterden](https://discourse.agopengps.com/u/GertSchouterden)\
**Post date:** [28 November 2021 10:25 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/5 "2021-11-28T10:25:52Z")

</div>

> Edit:  
> Actually Andreas Ortner does have a 8 relay board in his autosteer shop

This is the one i am using(see pictures in other response). My plan was to buy everything in one place and use components that were supposed to work together. However during setup i am now a bit surprised by the availability of documentation.

---

<div class="post-metadata">

**Author:** ![wland](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/w/f9ae1b/32.png) [@wland](https://discourse.agopengps.com/u/wland)\
**Post date:** [28 November 2021 10:57 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/6 "2021-11-28T10:57:17Z")

</div>

As I remember, in version Autosteer\_USB\_4.3.10 there is support for i2c relay card:

1. definition  
`// MCP23017 I2C address is 0x20(32) #define Addr 0x20 #define PortA 0x12 #define PortB 0x13`

2. in setup  
`//PortB configured as output //MCP_Write(0x01,0x00); `

3. in loop:  
`  
/\*  
#if Relay\_Type == 1  
SetRelays(); //turn on off section relays

and also in  
4) autosteerRelays.ino

---

<div class="post-metadata">

**Author:** ![jhandel](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/e5b9ba/32.png) [@jhandel](https://discourse.agopengps.com/u/jhandel)\
**Post date:** [28 November 2021 13:54 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/7 "2021-11-28T13:54:15Z")

</div>

Contact Andreas, I don’t know of support for this board in the standard sketches. But he probably has a sketch that works for you.  
The relay board is connected to the AutoSteer board, so you need relay switching functionality in Autosteer\_USB\_v5\_0.ino I think

On his website, you see this:

 ![image](https://discourse.agopengps.com/uploads/default/original/2X/3/3b9e0be144fc1db6da70c60ab7df6835cb810f0c.jpeg)

---

<div class="post-metadata">

**Author:** ![Aortner](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Aortner](https://discourse.agopengps.com/u/Aortner)\
**Post date:** [28 November 2021 14:39 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/8 "2021-11-28T14:39:01Z")

</div>

All my pcb including relay card are ready to use - means the code is already on the pcb

---

<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:** [28 November 2021 16:50 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/9 "2021-11-28T16:50:28Z")

</div>

So would that mean that now, when Bruno perhaps has uploaded a standard V5 ino he would now have to get a andreas ortner V5 ino from somewhere ?

---

<div class="post-metadata">

**Author:** ![GertSchouterden](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/gertschouterden/32/20388_2.png) [@GertSchouterden](https://discourse.agopengps.com/u/GertSchouterden)\
**Post date:** [28 November 2021 19:46 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/10 "2021-11-28T19:46:40Z")

</div>

Hello Andreas,

During purchase i did not select the option “16 PCB Konfigurieren”. So i did not expect the Arduino to be already configured and have overwritten it with the generic code from the support files.  
Would it be possible to make your sketch available? Or if it already is to point me in the right direction?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![GertSchouterden](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/gertschouterden/32/20388_2.png) [@GertSchouterden](https://discourse.agopengps.com/u/GertSchouterden)\
**Post date:** [28 November 2021 19:51 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/11 "2021-11-28T19:51:53Z")

</div>

The link on the website leads to the hardware installation guide, no arduino sketch (unless i am overlooking it 😛 ). Since andreas is also in on this forum topic i will wait on his reaction.

---

<div class="post-metadata">

**Author:** ![bluerabbit](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/b/bbce88/32.png) [@bluerabbit](https://discourse.agopengps.com/u/bluerabbit)\
**Post date:** [28 November 2021 21:15 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/12 "2021-11-28T21:15:07Z")

</div>

V5.x expects a BNO08x, it automatically checks for one.

Fire up serial monitor and connect your PCBv2 Arduino to it, you will see it perform 2 checks for this device.

---

<div class="post-metadata">

**Author:** ![Aortner](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Aortner](https://discourse.agopengps.com/u/Aortner)\
**Post date:** [29 November 2021 06:46 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/13 "2021-11-29T06:46:06Z")

</div>

[https://www.autosteer.cc/produkt/8-kanal-relais-karte-i2c/](https://www.autosteer.cc/produkt/8-kanal-relais-karte-i2c/)

You can find the sketch for the autosteer pcb including the relay card here:

---

<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:** [13 December 2024 18:27 UTC](https://discourse.agopengps.com/t/need-some-help-arduino-section-control/7666/14 "2024-12-13T18:27:10Z")

</div>


