Getting started with PCB hardware for beginners

Arduino Nano may be faulty. You can test it by connecting it as shown.
Connect D6 to ground = steering switch on.
Pin D3 shows the voltage.
Pin D4 shows the direction, either 0V or 4.7V
Nano_Test

I agree with Math, but would like to add: 15 v tell you that it is not regulated 12V (like from an LM7812 regulator which is not included on PCB v2). 12 V from battery is mostly between 12 and 15 V. Testing battery and charging system

Thanks for your response. I am building a system for a friends tractor. He wants a hydro pump not a steering wheel motor system.
I am currently using the PCBv2 . The picture enclosed shows where I have got to in the work.
If I want to use a steering wheel encoder is coffeetrac.ino the correct code to use?
as I do not see any code for a steering wheel encoder in the autosteerPCBv2.ino code is this correct?
If I use the Cytron for the hydro valve how do I connect this. do I use MA for one side of the pump and MB for the other?
In your diagram you connect the signal pin of the WAS to high and low . Is that to stop spikes?
I will use the Cytron motor driver instead of the IBT2 so do I still need D5? to be connected to something as currently I only have pwm1 and ground connected
IMG_3171

many thanks. That was helpful

Coffeetrac button.ino is the one I use, and it works with steering wheel encoder.
Someone wrote in combine forum that WAS should be connected this way, so that’s how I’ve done it. It works ok.
I’ve just finished my first box with Cytron, and I’m about to test it tomorrow.

Here’s the schematics of it.

Hope it works with Coffeetrac button.ino.

Edit: Using support legs with MMA and ADS and hot glue with other big components to prevent vibrations. Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.
Not so pretty though.

Thanks a lot for your post. Very interesting seeing your schematic. . I guess that you place magnets around the steering column and then wait for the switch to change from closed to open or reversed. Do you have a picture of the magnet set up on the steering wheel. Did you make it or buy it? how many magnets did you use

If it works then great. I have just put on support legs. Both inits were quite wobbly so this will help I am sure
thanks again

Is this the correct GitHub repo
image

I’ve used about 12-15 magnets/round. Self made, magnets (round 4mm*2mm) from AliExpress.
Reed switch Meder MK07-1A66D should work well as a sensor. Avoid installing close to iron objects if possible.
John Deere 6920S Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.
John Deere 6630 Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.

Yes, Coffeetrac AutoSteer_Button

1 Like

You have helped me to get the last piece of the picture. Many thanks

As a new member, but someone that has read probably thousands of threads, I am about to begin the journey of this marvellous software!
Reading some posts suggests that it may not be appropriate to follow Andrea’s ‘Fritzing’ diagram in the Wiki. Does this relate only to PCB builds and setups; i.e can it still be followed for breadboard versions ?
I plan on buying the diagram parts and assembling on breadboard to start to get the feel of how it all works before embarking down the PCB route.
Thank you in advance of any help.

The only issue with the diagram is that the Arduino code which that is now distributed for AOG uses different pins on the Arduino for inputs and outputs. It is quite easy to alter the pin definitions in the arduino code (just below the setup zone) to match the pins used in the fritzing diagram. Alternatively, look at the Arduino code and use the new pinout for your circuit.

There is a thread on here somewhere about this subject.

Thanks Alan, I will look for the thread.

About half way down the thread relates to your question but the whole thread will probably be of interest.

Sorry for the delay in getting back.

I’ve made some progress in that I have the WAS (RQH100030) and ADS5115 working correctly now: AOG sees the autosteer port and the values change as I move it around.

Still no motor control though.

Ran the voltage test as you advise and PD3 shows 0.5v, PD4 gives 5v. Does that sound correct?

Hey all -

I float in and out of the AgOpen scene every year. Spring, Summer and Fall I’m pretty quiet, then in the winter I have time to re-engage.

Last year, I did all my planting with AgOpen. I was really impressed with the results (after about the first 20 acres of tuning). This year, I need to build a new system for my tillage tractor. Just got a new (to me) Fendt 926 this fall. Looking to put an autosteer on it and hopefully be able to programatically press the Go and End buttons.

Should I move to the PCB design vs. discrete components in a box this year? I didn’t use Heading last year and used a DOG for tilt. What’s the latest here?

If PCB is the route to go, what are the recommended PCB board manufacturers for the US? Or does anyone have a coupe spare PCB board that they’d like to sell me?

You’ve been testing for quite some time now, haven’t you? If so, make sure you have the latest code (ArduinoCode) if you are using, for example, AOG v.309. For me, the AutoteerSwitch code no longer worked with vesion AOG v.309. No voltage was applied to the motor controller. The code that comes with the latest version works fine. It is also possible that Nano has a gate failure. So far, I have two non-functioning Nano circuits (burned by broken motor controller (IBT2))
Your measurements:

Edit: PD4 = 5 V is OK. Shows Direction . Not the “Output for motordriver is enabled.”
PD3 = 0.5 V means AOG is turning (Left or Right) using 10% of full force.
10% x 12 V( or 24V) = 1.2 Volts (2.4V), I think your motor don´t run

1 Like

Yes, I must have been trying for about a year now with no luck. I’ve paid people to help, still no luck :frowning:

I have tested this with three boards: 2 x Uno and a Mega 2560, always the same result. Have just hired another developer to help who is working with me on this today… fingers crossed.

And thanks for your input, I will check and get back later.

Right…

Guys, I sincerely appreciate your support and the efforts by the developers, all of you are doing this in your own time, for no reward and this is a beautiful thing.

However, I have to ask… am I truly stupid (this is a possibility), or is this site is an utter nightmare to navigate? I have spent literally months trying to get AOG working with little success. This time has taught me a huge amount about electronics and robotics so I have persevered, but most of my time has been spent staring at pins DP3 and DP4 of my Arduino, the PWM and DIR pins of my motor controller (Cytron MD10C) and the steering control sliders in AOG. I have spent so much time doing just these that I am having both dreams and nightmares about them!!

I have got the GPS (both Arduino and USB) and magnetometer working in AOG with no issues, but never the motor controller for autosteer.

I have hired two different Arduino specialists to help with this: the first told me that the code was really buggy, spent a lot of time talking me through how to test voltages, and debugging the code. He couldn’t get it working.

The second (I am working with now) has come at this with fresh eyes. He advised that I focus on the WAS first as the motor controller may depend on this. Using an RQH100030, I have got this working and polling correctly to AOG.

Then he advised to use this manual:

http://agopengps.gh-ortner.com/lib/exe/fetch.php?media=how_to_prepare_the_sketch_for_upload_switch_.pdf

However, the sketch used in this differs significantly from the sketch I have just downloaded.

Now I am wondering whether I was doing this (MC) right all along, but working with the wrong versions of the code as I have probably every single version of AOG on my laptop and every time I return to look at AOG something has changed. So I am lost in versions!

I am finding this site really difficult to navigate. The initial thread ran at over 400 pages, one thread with a hundred different discussions buried in it.

So, I want to get this working first and then afterwards I will make an offer to build a website for this project with a clean front end, collate all threads, discussions and software, and to create an easy to navigate discussion forum. I’ll even host it, if that helps?

I sincerely hope that I have not offended anyone with that offer, maybe the problem is me, but I do struggle to stay on top of developments here.

In the meantime, please could someone send me a link to a know working version of AOG and the appropriate guide if there is one? Is it v3.0.7 from here:

Just had a scan back at your earlier posts, brings up a few questions…

  1. How have you got gps hooked up, as you give rx pins…there is no gps code in AutosteerPCBv2.ino?

  2. Why have you got gps hooked up … if it’s on the bench it isn’t going to be moving.

  3. Have you unplugged MD10c and checked if you have any volts out of PD3 & 4, as previously advised?

If you could post a picture of your setup, that would help.