Setting up section control

I’ m not going to tell you about the dumb thing I did that is making me come asking for help in setting up section control. (I had an o s–t moment a little while after I did the dumb thing) Anyway I remember being real confused the last time I set up the sections and got lucky and got I relay to fire, and from there I figured out the other 2.

I only have 3 sections. I have them defined in the area where you set up width, etc. On the Nano, D6 is the pin for section 1, D3 section 2 and D4 section 3. In the area where you assign pins to sections, I get lost. What is Pin 1 referring to? The nano pin? If I look at the code and want to set D6 as section 1 do I select Pin 5 as section 1. "(if (pin[5]) digitalWrite(6, relayState[pin[5] - 1]):wink: "

Thanks in advance!

Its a bit confusing. This is my method i used when i done my 12 sections


1 Like

@Ray_Jorgensen
In the nano code, you’ll find a line like this
uint8_t pin[] = { 1,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
So in that line, you set which actual hardware pin AgOpenGPS calls pin 1. In your case, changing it to
uint8_t pin[] = { 6,3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };, and then setting Pin 1 to Section 1, and so on, in AgOpenGPS should do it.

@del_boy @Davidwedel Thanks fellas!! I had completely forgot about setting the pins in the arduino code. Set the pin as David showed, loaded the code, set pin3 as section 2, pin4 as section3 and pin6 as section1 in AOG and just like magic I’m back in business.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.