Getting started with PCB hardware for beginners

Thanks for replying.

Please see my preceding post. With just a laptop connected to an arduino, I cannot get any voltage out of PD3. Ive double checked the sketch and confirmed (as far as my limited knowledge allows) that this is indeed the right PWM pin.

Yeah, I know… I honestly feel totally stupid, but I’m just going round and round in ever decreasing circles which is why I went to a developers’ forum and offered £200 to the first person who could get this working at home, then guide me.

Maybe we are all misunderstanding something in software? Just none of us can see what this is.

So frustrating!!!

try connected a wire from steer switch pin to ground

2 Likes

PD3 is only a pin, try to change it to pin 9 for example, both on sketch and on arduino board, and see if it works.

Thanks Wilbert.

As I say, I’m not criticising, it would be churlish of me to do so. Basically I’ve been dreaming of creating an autonomous vehicle for some years now, made various attempts, failed and then revisited the idea months later.

One night I saw AOG and just about wet myself!

As a newbie, my experience was:

  1. Saw demo vids, watched all of Brian’s vids including the discussions.
  2. Googled AgOpenGPS and got taken to

2.1. Followed download link to

2.2. Downloaded all files from

(Please note that this page is now much clearer than it was when I last downloaded it a few weeks back).

  1. Built the circuit as per the auto steer schematic, didn’t work. Occam’s Razor, reduced it to its simplest: just Arduino and MD10C, 3 pins connected to PD3, PD4 and GND as per sketch.

  2. Fired up AOG and tested manual steering to see if the motor moved.

It never has.

I realised that I was using old instructions for new versions of AOG, so one recommendation would be to attach the relevant build document to each release noting any changes. I appreciate that this is asking a lot of someone’s time, so when I have this working I will volunteer to write up some stuff and see if the admins like it: I do a fair bit of technical teaching and document writing as part of my job.

Give me 10 mins…

Took me more than 10 mins as I was being thorough.

Sketch now reads

//////////////////// *********** Motor drive connections **************
//Connect ground only for cytron, Connect Ground and +5v for IBT2

//Dir1 for Cytron Dir, Both L and R enable for IBT2
#define DIR1_RL_ENABLE 4 //PD4

//PWM1 for Cytron PWM, Left PWM for IBT2
#define PWM1_LPWM 9 //PD9

///////////////////////////////////////////////////////////////////////////////////////

I’ve attached GND - GND
PWM to PD9
DIR to PD4

Using autosteer below, I am seeing 0.01v on PD9, same as I got on PD3.

To be sure, I checked the 5v and 3.3v output pins and they read 5v and 3.3v respectively so the multimeter is working.

image

You need to connect the D6 pin to ground. otherwise, the PWM pins D3 and D9 will not output voltage.
in AutosteerPVCBv2.ino setup…

#define SwitchOrButton 0 // set to 0 to use steer switch as switch
// set to 1 to use steer switch as button
// Button/switch pulls pin low to activate

//--------------------------- Switch Input Pins ------------------------
#define STEERSW_PIN 6 //PD6

3 Likes

OH…

My…

God…

I’ve been at this for months… and the motor just started moving for the first time! I would have never worked that out.

I cannot thank you enough, seriously. If you let me know how to get one to you, I will send you a bottle of something nice.

Going to have a dram myself, toast you and assemble the complete circuit, but I really think you have cracked it.

4 Likes

I am so sorry.

I saw your comment, but did not understand what you meant.

You were correct.

Can I send you a bottle too? :wink:

I realize i should of explained it better! Just glad you got it.

1 Like

Thank you so much. I’m serious about that bottle if you want to PM me some details.

I’ll let you know how I get on with this.

@Admins: I intend to apply this to a completely different field (if you’ll excuse the pun). My interest is in history and I am aiming to turn this into an automated ground penetrating radar attached to an electrical vehicle.

Would it be worth putting up a section on “Alternative Projects”, or something?

I can think of 1,001 uses for this technology.

platineneu

the next pcb version 2 is on the way. i hope it comes with a pretty box with place for motorcontroller and f9p and 12 to 24 v converter. all soldered and ready…

if anybody in europe have interrest please use this form. you get information after it is ready.

https://www.autosteer.cc/produkt-kategorie/elektronik-teile/

3 Likes

@bluerabbit The topic says getting started with PCB hardware for beginners. If you place you questions under appropriate headings, it can make it easier for people to find relevant information at a later date.

Were you using Brians PCB? If you were, would your issue have been avoided? Were you using the standard AutosteerPCBv2.ino? I’m thinking… but not 100% sure that you didn’t have a ground connected to D6 (switch circuit that stops steer motor spinning when steer motor is away from steering wheel) which would not allow current to flow to motor driver? I’m thinking if you had have put a photo up of your breadboard setup someone would have noticed that D6 was not going to ground? Also I think you owe MylArti £200. :grinning: :grinning:

Cool! Always neat to see how this software finds alternative uses. By all means we would love to see what the project looks like. Just post it in the About the Project ideas - in progress category. Glad you got it working!

Thanks for the info. This is a project for people that are interested in tinkering and exploring, so no surprise there are a lot of different directions and options. I’m still really happy that this has opened up a low cost option for those that are interested but can’t afford/justify the commercial solutions.

I’ll start looking over the PCB board options. Have all the other equipment. I may even resurrect my project from the winter of 2018 in using two GPS units and calculating heading. I was sing two reach units at the time and they just weren’t stable enough in holding rtk. I think the F9P has fixed that. I’ve had good luck with the ublox F9P-C099 modules last year. Theoretically can get heading from them, maybe even tilt.

I use relatively small (~100 HP) equipment. I think it bounces around more in the field than the larger tractors so it gets more noise into the signal, so dampening out the noise is a fun challenge.

With this story and the solution wwfarm and mylarti found, I would suggest Brian to add a line like this in the supplied autosteerpcbv2.ino setup zone, (below the other 3 info lines), to point out how it works with the AOG program
// set to 0 to use steer switch as switch
// set to 1 to use steer switch as button
// Button/switch pulls pin low to activate
//When set to 0, switch must be closed to let AOG activate steering

4 Likes

My problem, the one thing that lead to me spending countless hours and almost giving up many times was my confusion over the switch.

As far as I saw things, I didn’t need a switch for this (and I’m still a little unclear on what this switch is for. Is it a deadman?) so I ignored it assuming any defaults would be “switch on”.

But yes, please make this explicit, I think this may be a stumbling block for some.

After my experience, if I were to write a tutorial for this, I would begin with, “Are you using a switch? If not, don’t be like Bluerabbit, ensure you short PD6 before you continue.

In fact, might it be useful to do a component by component installation guide, “First, lets get the motor working.” [instructions and tests]. “Next the GPS” [instructions and test]? Dunno, but it would have definitely helped me.

2 Likes

Basically the steer switch turns autosteer on when you push your steer motor against the steering wheel ( via some sort of micro switch for example) or is a physical switch that turns on hydraulic operation If it is being done that way.

That way it (automatically) stops the steering motor from spinning (wildly) when you flip it away from steering wheel, could also be done manually by clicking autosteer button in AOG.
Could also be a safety switch in the seat(in series with steer switch) so when you get up the autosteer shuts off.
I use button .ino with hydraulic steering, and have a foot pedal and every time I press it AOG shifts between on and off. I have also an inductive encoder (But could be optical encoder or magnetic encoder or reed switch) the encoder turns off AOG if the steering wheel is turned. Others have a pressure switch to turn off AOG (reacts when you turn the steering wheel which makes higher oil pressure in oil trapped between orbitrol, and the valve that shifts between automatic and manual steering)

1 Like

Now that makes sense, thanks.

Of course, you guys all have drills, etc strapped to your steering wheels. My motor is attached directly to the steering So it’s effectively always on.

My device is a small electric scooter, so I can carry it into place, I don’t really ever need to disengage this.