SK21 Switchbox Issues

Hi,
I had the opportunity to sow my field last week.
I found a “bug” or at least something that is not suitable for my use.
When I sow, seeder in the ground, meter running (motor mode ), switch position:
Master On (yes it’s a momentary button)
Auto ON
Section 1 ON (I only have one section)

Ok it works very well, regulates, all good!

When I turn off the section 1 switch, the metering unit continues to receive a pwm and is still running although there is no active section. The only way to stop it is to switch master OFF.

I will check it out.

1 Like

Wouldn’t it work to switch off master instead of your only section?

Yes, only using master could be a solution, I don’t need a section.

I use work pin and the work signal coming from iso 11786.
In the current switchbox this acts on the section.
The problem is switching it to the master and leaving MAster ON for more than 3 seconds starts the simulation. However, the signal coming from the ISO is not momentary. So to use workpin on the master you would need to adapt the code.

What version of the ino and of the rate app?

Hi all !

As of version 3.7.6, I can no longer switch manually with the switch on the switchbox from the 9th section onwards. It still worked with the previous version. I can switch all sections on and off with the master switch. Can you check again where the error is?

RateControllerApp.zip (4.6 MB)

Thanks for finding the problem. That was a good one to fix. Try this version and see if it works now.

It works perfect. Thanks !!!

Hi, I am making a switchbox with 9 section switches and want to use nano pin D2 for the 9th switch. I have been able to make all switches work other than the one connected to D2.
The pullup on D2 is not working and is staying low. I have tried all sorts of configurations with PCB config for the switches and no mater what switch is configured to D2 the pullup doesn’t work and the nano doesn’t seem to read this pin, if the pin is low the nano should show a 1 in the switch bit but doesn’t. This is not a hardware fault of the nano as i have loaded other INO for ratecontroller and D2 is pulled high.
I also edited the INO file Begin.ino by swapping the commented line at the top so the No ethernet shield should be the active line to allow pin2 to be used.

Does anyone have any idea what i need to do to make this pin work?

You could ad an external resistor of like 1K.
EDIT. Found a better link which suggest 10 K

With a Ethernet module attached?

Don’t you have to fit the Ethernet on top of the nano and cut the pin on Ethernet shield?

Actually I tried jumping from another pin to D2 that the pull up was working but no change in the data byte output. I also have added a line in the ino pin mode input pull up and then d2 is pulled high but it still doesn’t read or output in the byte it should.

Well that was my intention but when it didn’t work I started testing without the ethernet shield.
Also have tried 3 or 4 different nanos.

I have also developed a circuit board for 9 sections. I can send you the files or another circuit board.


Thanks for the offer. I have some RC8 boards that I was planning to use on the sprayer and have built/modified the standard switch pcb.
This is what I have made

1 Like

Is this in the same box as the rate board?

No. This is just a switch box to mount in the cab. Rate board will be on the sprayer.

Perfect work !!

I’ve just got D2 working for my 7-section setup. No external hardware. I modified the valid pins to include it, but still exclude 11, 12 & 13 that are used for the shield. I’m also using D7, D8, D10, A0 & A1 in addition to the standard SW2.

I’m using dual-auto (auto section and classic auto share a pin so either approach can be selected in rateapp), have configured the workpin (but haven’t understood how to use it yet!) and still have a spare input.

If you’re happy with single auto and don’t need the workpin, I reckon it would handle 10 sections on the digital inputs. If anyone needs more, A6 and A7 could be used with potential dividers to generate a voltage. Several sections could be wired to a single analogue input and filtered out in the code. eg 2V = section 1, 3V = section 2, 4V = sections 1 & 2 etc. The number of inputs would only be limited by resistor precision.

I had to do the pin assignment in the code as PCBSetup doesn’t expect dual auto and I think isn’t keen on PIN2. This may have been your problem. In order to write the pin assignment to the eeprom, I’m sending invalid settings from PCBSetup (Auto assigned pin D0) so that it writes the default settings to memory.