AgTalk Home
AgTalk Home
Search Forums | Classifieds (58) | Skins | Language
You are logged in as a guest. ( logon | register )

DIY auto boom height control
View previous thread :: View next thread
   Forums List -> Precision TalkMessage format
 
zmf
Posted 6/5/2019 11:03 (#7542637)
Subject: DIY auto boom height control


south africa
Ive read allot about farmers attampting this,with only 1 australian guy, on the arduino forum, that got to work, but he then disappeared without sharing his secrets!
A view weather proof ultrasonic sensors
2 channel relay board to control your solenoid control valves
arduino uno micro controller
and the more difficult part, code writing

Anybody done this already?
Any inputs appreciated



Attachments
----------------
Attachments acm-waterproof-ultrasonic-sensor.htm (166KB - 821 downloads)
Top of the page Bottom of the page
WildBuckwheat
Posted 6/5/2019 11:18 (#7542659 - in reply to #7542637)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
Got a link to the Australian guy?

All varieties of those SR04 sensors are crap. I would say that the bare minimum sensors are in the $150 range.
Top of the page Bottom of the page
zmf
Posted 6/5/2019 11:31 (#7542694 - in reply to #7542659)
Subject: RE: DIY auto boom height control


south africa
i hope this is how you attache a link...



Attachments
----------------
Attachments index.htm (32KB - 359 downloads)
Top of the page Bottom of the page
zmf
Posted 6/7/2019 15:40 (#7546559 - in reply to #7542659)
Subject: RE: DIY auto boom height control


south africa
Buckwheath,
Can you maybe say in what way these sensor's are bad?

I see the one i have in mind is also a SR04 , and it sounds promising?
Top of the page Bottom of the page
WildBuckwheat
Posted 6/7/2019 18:19 (#7546742 - in reply to #7546559)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
The SR04 sensors are cheap sensors made in cheap Chinese factories. You can buy one and have it shipped to your house for $0.74 including shipping.

There are better and worse manufacturers, but you don’t get any manufacturer info and they are all just the same rebranded stuff.

You can only manage as good as you can measure. Don’t shoot yourself in the foot at the start of the race by choosing a poor sensor.

They are fine for prototyping and messing around when programming, but don’t expect to get them to work for real.

In the thread you linked the poster settled for a MaxBotix Ultrasonic sensors MB 7589. It retails for $149.95. I was pretty close on my ~$150 estimate!
https://www.maxbotix.com/Ultrasonic_Sensors.htm



I started prototyping an automatic boom height controller last year. I got as far as gathering some field test data and trialing a control system.

I put an Arduino, USB battery bank, Bluetooth module, and SR04 in a takeout container and zip tied it to the boom.

I had an Arduino, LCD, and Bluetooth module in the tractor.

The sensor took constant height readings. The cab Arduino processed that data and printed it to the LCD. It took some data smoothing to get the sensor readings to anything remotely useable. The LCD displayed live reading, smoothed reading, and whether the boom should move up or down. Things like set point and hysteresis were adjustable.

I don’t think it’s especially hard to create a functional self leveling system that is Arduino based and uses your existing solenoid valves. I would call it an intermediate to advanced Arduino project. Personally my challenges would be more hardware and wiring related than programming related.

I think you could make a working system with the SR04 sensors. I don’t think it would work very well or for very long.

I would use the SR04 sensors to test and prototype, but use something better once a semi functional prototype is complete.


I don’t know how to say this without sounding condescending. If you search Arduino forums you will get the opinions of everything from 12 year olds to PHDs. They might rave about the SR04 sensors, but they might be 12 and it might be the only cool sensor that came in their Arduino kit. You have to sort through it a little bit. For what it’s worth, I have a degree in Mechatronic Systems Engineering. It’s a branch of Engineering between Mechanical and Electrical Engineering. I have extensive robotics, control systems, and programming experience. There’s are lots of people like me on Arduino forums, but there are also lots of people with strong opinions and no experience.

Edited by WildBuckwheat 6/7/2019 18:23
Top of the page Bottom of the page
zmf
Posted 6/10/2019 15:59 (#7551860 - in reply to #7546742)
Subject: RE: DIY auto boom height control


south africa
Wow, your design is way more complex than I had in mind, with adjustables functions ect.
I need to ask, with all the know how, is it only the sensors that made you abandon the project? I'm quiet worried now that i might be wasting my time?Do you think, if you'd used a sensor like the MB7589, that you would have got it to work?
I thought of a very basic setup to begin with. Only 1 programmed arduino wired straight to sensors and relayed control valves. Can one,to start of with, use your pc to get readings?
I don't have any programming experience, so it's going to be a long journey for me!!
Things like adjustable height for crop clearance when the canopy isnt dense enough, is not in the scope at this stage.
Top of the page Bottom of the page
WildBuckwheat
Posted 6/12/2019 07:23 (#7554596 - in reply to #7551860)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
I stopped the project because time requirements and I didn’t have any electronics on hand to tie into the solenoids.everything I’d used up to that point I had on hand.

I think you could get it to work without much trouble, but you’ll need some programming experience (or be willing to spend some time learning). Smoothing out the sensor data will be important. Smoothing the solenoid control will also be important.

Those maxbotic sensors look pretty good. I think they would work well.

Now that spraying has started again I’m tossing around the idea of starting the project back up again.
Top of the page Bottom of the page
zmf
Posted 6/5/2019 11:23 (#7542673 - in reply to #7542637)
Subject: RE: DIY auto boom height control


south africa
hear is a view links for sensor, arduino and relay board



Attachments
----------------
Attachments acm-waterproof-ultrasonic-sensor.htm (166KB - 409 downloads)
Attachments arduino uno.htm (22KB - 428 downloads)
Attachments bsk-relay-board-2ch-5v-arduino.htm (159KB - 401 downloads)
Top of the page Bottom of the page
neo_ag
Posted 6/6/2019 19:26 (#7545090 - in reply to #7542637)
Subject: RE: DIY auto boom height control



northeast ohio
Are there any options for developing “boom height prescriptions” based upon display captured or public lidar topography data?
Top of the page Bottom of the page
DevinF
Posted 6/8/2019 01:42 (#7547364 - in reply to #7542637)
Subject: RE: DIY auto boom height control



Nwmo
I looked at doing this several years ago, then gave up. Maxbotix sensors are what I planned to use. They were familiar with what I was trying to do and recommended a sensor they thought would work well but I dont remember the model. I got bogged down in the programming, I didnt have a clear picture in my mind of how I wanted it to work. Ultimately I wanted the arduino to control the boom up down functions with the joystick buttons as inputs to the arduino rather than just having the arduino monitor the boom buttons to switch back to manual control. Then I really got bogged down trying to mesh a debouncing library into the code. In the end I think I ran out of inputs and outputs on the uno and then feared the arduino would make so many boom adjustments so quickly it would wear out the solenoid valves or maybe cause valve float problems. I already have some issue with spools breaking. It wasnt a good first project because it kind of soured me on arduino programming.

Edited by DevinF 6/8/2019 01:43
Top of the page Bottom of the page
zmf
Posted 6/10/2019 16:21 (#7551896 - in reply to #7547364)
Subject: RE: DIY auto boom height control


south africa
"Ultimately I wanted the arduino to control the boom up down functions with the joystick buttons as inputs to the arduino rather than just having the arduino monitor the boom buttons to switch back to manual control."
Could you please explain a bit more, I haven't thought of it this way.
My idea was to wire arduino straight to valves, with the bottons wired in with relay switches to get 'botton over arduino' function. And a toggle switch for manual, to fold up boom for transport?
Top of the page Bottom of the page
WildBuckwheat
Posted 6/10/2019 21:38 (#7552403 - in reply to #7551896)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
I didn't decide on this either.

One approach is to wire all valve control to the arduino only. The only way to move the valve is through the arduino. You then wire in your existing buttons or toggle switches or joystick to the arduino as inputs. The arduino monitors those inputs and if it senses that you moved a switch, the arduino automatically switches to manual mode and does what you tell is to with the switches. If your current switch box has small switches, it probably has a pcb and you would need to cut traces and add wires. You would need circuitry capable of driving solenoids.

Another approach is to intercept the actual wires at the valve. Add in switching relays. One position is solenoids connected to arduino, the other position is solenoids connected to existing sprayer controls. You would need circuitry capable of driving solenoids. You could still monitor the old wires for signals to automatically switch back to manual mode. This approach does not require modifying any existing wiring. You could intercept at the solenoid plugs with a T harness. It could potentially harm the existing solenoid drivers if equipped, they don't like to be disconnected while the coil is active.

Another approach if you have a switch box with small switches (meaning there are solenoid drivers somewhere in the system) is to intercept the manual switches, and use the arduino outputs to mimic those switches. This means you do not require circuitry capable of driving a solenoid, you use the existing solenoid drivers.

Another approach is to tap into the CAN or whatever communication protocol used on your sprayer and command the booms to move that way. I think my Hardi is capable of this, as I believe there is an auto height system available that functions this way. I've gathered some documentation on the communication protocol but I'm not willing to invest the time or risk my system to go this route. With a CAN system I would be willing to experiment, especially J1939. I've worked on engineering for concrete mixers where all mixer controls were over a J1939 CAN connection and it worked fantastic.

I think the second approach would be the way to go as it does not require modifying the existing system, can be unplugged and removed/bypassed easily, and it is the most universal. If we were to all collaborate on a universal open source system, that second method would get my vote.
Top of the page Bottom of the page
Adrian
Posted 6/11/2019 13:40 (#7553390 - in reply to #7552403)
Subject: RE: DIY auto boom height control



South Georgia
I'm not a programmer, but I've been trying to learn to use Arduino off and on for about a year now. I've been thinking about this exact project, but I don't think I could tackle it yet.

My thoughts, however, are the opposite. I had been thinking the most straightforward wayv to interface would be to unplug the factory switches and run them 'through' the arduino. These connections could be made in the reasonably clean environment of the cab, they could be made to just plug in, and nothing would be spliced. Spliced wires are opportunities for bad connections and problems later. Since the arduino also would need to intercept when the boom switches were activated in order to disengage the auto function, this would provide a way to do that easily.

Also, depending on the sprayer, the voltage that the factory switches control may be low enough for the arduino to be able to control things with its own 5V system, rather than having to deal with relays to switch 12VDC for the solenoids themselves.

Again, this is over my head, but that seems like the midst straightforward way to go to me.

Adrian
Top of the page Bottom of the page
zmf
Posted 6/11/2019 16:00 (#7553560 - in reply to #7553390)
Subject: RE: DIY auto boom height control


south africa
Hi Adrian
You are 1year ahead of me with arduino knowledge!!
If we brainstorm this together, open source, we could see this through, and learn allot.
Personally your idea wouldn't work for me, but only because my sprayers existing hardware difference from yours. There is so many different ways and existing hardware, that it looks like we should branch this talk into a few different options? Or maybe we could all just figure out the basics( code writing , sensor options and selection....)first, and then everyone can use that and integrate it into his own hardware?
Are you talking about the same switches when you say factory- and boom switches?
Top of the page Bottom of the page
Adrian
Posted 6/11/2019 19:04 (#7553802 - in reply to #7553560)
Subject: RE: DIY auto boom height control



South Georgia
Andre,

When I say factory switch or boom switch, yes, I'm referring to the switch in the cab of my sprayer that was used for letting the boom sections up and down by CIH originally.

Curious, why would my idea not work for you? Does your sprayer not have switches in the cab? Or are you talking about a pull type sprayer that uses the tractor remote levers/switches? I have a Case 3330 self propelled, so that's what I've had in mind when I've been thinking about this.

My first project, that I'd say is probably no more than halfway through, is to make a spinner speed controller for my TerraGator floater. I've got a good deal of code written, but I have it in a couple different 'programs' right now to help me figure stuff out. When I have them sorted out individually, then maybe I can put them together. I haven't been able to work on it in about a month though, which is why it takes me so long.

I'm glad you brought this idea up, I thought I was the only one!

Adrian
Top of the page Bottom of the page
WildBuckwheat
Posted 6/11/2019 20:16 (#7553931 - in reply to #7553802)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
Adrian,

The boom tilt and raise/lower switches on my Hardi are very small switches soldered onto a circuit board. I am sure the switches don’t directly drive the solenoids, and that there is more complicated circuitry in between the switch and the solenoid. That is why the approach you stated would not work out well for me.


I did think of one other approach that would work. It would be better for pull type sprayers than self propelled sprayers? Disconnect the solenoids at the solenoid plugs and completely abandon all parts of the factory system. Make your own box with toggle switches for manual control. I guess in your case you could even connect that into your factory joystick handles.

If the homemade system fails, just plug the solenoids back into the factory harness.
Top of the page Bottom of the page
Adrian
Posted 6/11/2019 21:23 (#7554088 - in reply to #7553931)
Subject: RE: DIY auto boom height control



South Georgia
WildBuckwheat - 6/11/2019 20:16

Adrian,

The boom tilt and raise/lower switches on my Hardi are very small switches soldered onto a circuit board. I am sure the switches don’t directly drive the solenoids, and that there is more complicated circuitry in between the switch and the solenoid. That is why the approach you stated would not work out well for me.


I did think of one other approach that would work. It would be better for pull type sprayers than self propelled sprayers? Disconnect the solenoids at the solenoid plugs and completely abandon all parts of the factory system. Make your own box with toggle switches for manual control. I guess in your case you could even connect that into your factory joystick handles.

If the homemade system fails, just plug the solenoids back into the factory harness.


Okay, I hadn't considered the factory switches being on a circuit board. Mine are in the hydrostat handle, and I'm pretty sure each runs down into the console to its own connector. The point that the switches don't directly drive the solenoids I thought could be a positive, as they could perhaps be low enough voltage and amperage that the Arduino may be able to control it directly, instead of dealing with relays and 12VDC. But then I haven't actually done any research on that either.

Your other suggestion may be the most universal. It wouldn't be as nice for a self propelled machine, but could probably be made fairly user friendly.

Adrian
Top of the page Bottom of the page
DevinF
Posted 6/12/2019 17:48 (#7555404 - in reply to #7554088)
Subject: RE: DIY auto boom height control



Nwmo
Buckwheat laid out the options better than I could've. I was making a controller for a hagie 2100 which just uses momentary switches in the joystick to run 12v relays, which run the actual hydraulic solenoids. No circuit boards and everything is 12v so that part was fairly easy. One of the many pitfalls to watch when running solenoids and relays directly with an arduino or even a logic level mosfet is fly back voltage from the coil can really mess things up. I was originally going to just splice the arduino into the the wiring harness between the joystick switches and relays then use diodes to keep them from back feeding each other. The problem with that is I wanted the arduino to deactivate if I used any of the boom functions. The diodes would have isolated the arduino from the boom switches and vice versa so that wasnt going to work for me.

So I started over and moved down the path of using the boom switches as inputs to the arduino and used the arduino to control both the manual functions as well as the automatic functions. That's when things got more complicated. I was told that all button inputs need to be debounced which means you basically look at an input over time to filter out random noise and any artificial voltage changes or transients that look like a button press momentarily. That gets pretty hairy for 6+ joystick inputs. Then you need an LCD display and a couple of potentiometers or someway to set sensitivity and height.

Top of the page Bottom of the page
Adrian
Posted 6/12/2019 20:28 (#7555700 - in reply to #7555404)
Subject: RE: DIY auto boom height control



South Georgia
I'm not sure that debouncing would be necessary in this situation. From what I understand, debounce is only an issue as you release a switch and the Arduino reads it as closing again momentarily, and that being an issue. If you release your boom raise/lower switch, then you'll be in manual control at that point anyway, so if the Arduino sees it as closed again momentarily, I don't think it'll have any noticeable effect. Likewise, if your 'auto' switch bounces again after being pressed, it won't matter if it sees it bouncing 'closed' again, if the only thing that switch does is engage 'auto'.

But that's a minor detail that doesn't have to be solved at this stage.

Adrian
Top of the page Bottom of the page
zmf
Posted 6/12/2019 00:56 (#7554370 - in reply to #7553802)
Subject: RE: DIY auto boom height control


south africa
And I have the pull type sprayer that uses the tractor remote levers/switches!!! So 3 different setups already.
Plug in at solenoid idea would definitely be the most universal way to go, after that everyone could chop and change to his liking. Also when something goes wrong with your autoboom setup, the original system is ready to plug and play.

Btw. My tractors don't even have electric valve jet !! Still have to install 2, 1 for each boom! (Allis Chalmer 8050)
Top of the page Bottom of the page
Adrian
Posted 6/12/2019 06:13 (#7554458 - in reply to #7554370)
Subject: RE: DIY auto boom height control



South Georgia
Alright, so I guess the first thing to do is start figuring out how to read distance using the cheap sensors. I'm pretty sure I have one of those in the arduino kit I bought. I haven't tinkered around with it any yet.

Adrian
Top of the page Bottom of the page
zmf
Posted 6/12/2019 14:05 (#7555150 - in reply to #7554458)
Subject: RE: DIY auto boom height control


south africa
Jip, im getting the kit asap.
1 question, sensors have different output options: pulse-width, analog voltage, and TTL serial, RS232.... Will it be a problem if one uses a cheap sensor at first, and when changing to a better one, it doesn't have the same output as the cheapo?
Top of the page Bottom of the page
Adrian
Posted 6/12/2019 15:54 (#7555282 - in reply to #7555150)
Subject: RE: DIY auto boom height control



South Georgia
If you switch from one type of sensor output to another, you'll have to change the code to be able to read the other sensor type.

The Maxbotix sensors linked earlier will do pulse width (aka PWM), analog voltage, and a couple different types of serial. I don't know what distances serial is reliable over, so I'm not sure about that. Likewise, analog voltage may have more issues with bad connections and 'noise' at the low voltages that we're talking about. I think PWM may be more reliable.

Disclaimer: I'm not an electrical engineer. I know just enough about what I'm talking about to sound like I'm smart. I don't know one bit more than that. If anybody who does know more about this stuff disagrees, I'd like to hear their viewpoint.

Adrian
Top of the page Bottom of the page
DevinF
Posted 6/12/2019 19:44 (#7555600 - in reply to #7555282)
Subject: RE: DIY auto boom height control



Nwmo
I'm pretty much in the same boat, if I spend enough hours looking through arduino forums and electrical engineering forums I might know enough to ask the right questions and at least have a conversation with some one that does know whats going on.

I would start with a maxbotix sensor and go from there, I simulated an analog range sensor using a 10k potentiometer and it worked but I was using analog output not pwm or serial, so I could build my program around the 10k pot.

The maxbotix people were very helpful and even offered to send me arduino program examples to use each output type of a sensor. As I recall they were pushing an i2c interface. I didnt look at the original sensor linked above but if it's the standard "ping" sensor, the code to operate that sensor is very different from the maxbotix sensors.
Top of the page Bottom of the page
Adrian
Posted 6/12/2019 20:35 (#7555716 - in reply to #7555600)
Subject: RE: DIY auto boom height control



South Georgia
I think you're right. I just looked up the directions for the sensor that came with my Arduino kit, and it just outputs a 'high' signal when it 'hears' the reflected sound. Then it's up to the programmer to do the math to see how long it was from when it was triggered to when it outputs 'high' to measure the distance.

The Maxbotix sensors seem to do that math themselves, and just output a signal to represent the distance. I think they'd be a good deal easier to write the code for, but I don't want to shell out a few hundred dollars for sensors to dink around with. At least not at this stage of the game. I suppose for testing, you could use another arduino to output a PWM signal to simulate the PWM signal from the Maxbotix sensor. (I'm hung up on PWM just because it's the method that I feel I understand the best.)

One other thing about the Maxbotix sensors: I had thought that having two sensors on each of my booms would be better than just one. (90' booms, some rolling ground and terraces.) I was afraid that would make a lot harder coding. Apparently, the Maxbotix sensors can be wired together in series, and the group will only send the signal of the lowest sensor. That would be very helpful.

I'm giving a lot of input here because this project really interests me, although I don't honestly feel like I have the time to put into it.

Adrian

Edited by Adrian 6/12/2019 20:37
Top of the page Bottom of the page
DevinF
Posted 6/13/2019 07:41 (#7556488 - in reply to #7555716)
Subject: RE: DIY auto boom height control



Nwmo
I'm in the same boat, I'm working on another arduino project now dealing with deck plates and linear actuators on a split flex corn head but I'll help however I can.

I didn't really look into the pwm output just because the analog output is so easy and fast to experiment with using a pot in place of the actual sensor.

Pwm output with an arduino still results back to using a potentiometer and converting that into a pwm signal.

I wonder what type of platform greentronics uses, there system looks similar to what an arduino system would look like as a finished product.
Top of the page Bottom of the page
Adrian
Posted 6/13/2019 18:39 (#7557385 - in reply to #7556488)
Subject: RE: DIY auto boom height control



South Georgia
I guess you're right, I hadn't used PWM input yet, but I do remember reading that it would just be read as a voltage. I guess you'd have to put a capacitor between the terminal and ground to smooth the signal out. In that case, I guess the coding is the same either way, so this whole discussion is irrrelevant. (Like a lot of my conversations!)

I'm pretty sure that the sensors also output both PWM and analog, depending on which pin you read, so it's not an either/or situation from the hardware side, either. Unless I misunderstood when I was looking at the spec sheets.

Adrian
Top of the page Bottom of the page
WildBuckwheat
Posted 6/13/2019 20:33 (#7557579 - in reply to #7557385)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
A PWM input sends the distance out in a pulse. The distance measured by the sensor is represented by the length of the pulse. From the sensor manual:

Pin 2- Pulse Width Output: This pin outputs a pulse width representation of the distance with a scale factor of 1uS per
mm. The pulse width output is sent with a value within 0.5% of the serial output.

You would connect this to a digital input pin and measure how long the signal stays high for. You would not use a capacitor or an analog input pin. Example, the pulse stays high for 1000 microseconds (1 milliseconds) when the sensor distance is 1000 millimeters (1 meter).

Edited by WildBuckwheat 6/13/2019 20:35
Top of the page Bottom of the page
Adrian
Posted 6/13/2019 20:58 (#7557645 - in reply to #7557579)
Subject: RE: DIY auto boom height control



South Georgia
WildBuckwheat - 6/13/2019 20:33

A PWM input sends the distance out in a pulse. The distance measured by the sensor is represented by the length of the pulse. From the sensor manual:

Pin 2- Pulse Width Output: This pin outputs a pulse width representation of the distance with a scale factor of 1uS per
mm. The pulse width output is sent with a value within 0.5% of the serial output.

You would connect this to a digital input pin and measure how long the signal stays high for. You would not use a capacitor or an analog input pin. Example, the pulse stays high for 1000 microseconds (1 milliseconds) when the sensor distance is 1000 millimeters (1 meter).


I understand that's how the PWM out on the sensor works, but is there a good way to read PWM on tht Arduino? I thought I would be needing to convert it to analog to actually read it. Is that not correct?

See, I already told y'all I don't know what I'm talking about.

Adrian
Top of the page Bottom of the page
WildBuckwheat
Posted 6/13/2019 22:09 (#7557812 - in reply to #7557645)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
You capture and record the time when the signal goes high, then capture and record the time the signal goes low, subtract the high time from the low time, and you have the duration.

There is a built in and very easy function called pulsin() that returns the length of a pulse on a pin in microseconds. https://www.arduino.cc/reference/en/language/functions/advanced-io/p...

A more robust (and more advanced) way to do it is with interrupts.
Top of the page Bottom of the page
zmf
Posted 6/12/2019 14:14 (#7555161 - in reply to #7554458)
Subject: RE: DIY auto boom height control


south africa
Jip, im getting the kit asap.
1 question, sensors have different output options: pulse-width, analog voltage, and TTL serial, RS232.... Will it be a problem if one uses a cheap sensor at first, and when changing to a better one, it doesn't have the same output as the cheapo?
Top of the page Bottom of the page
zmf
Posted 6/12/2019 15:14 (#7555244 - in reply to #7554458)
Subject: RE: DIY auto boom height control


south africa
Jip, im getting the kit asap.
1 question, sensors have different output options: pulse-width, analog voltage, and TTL serial, RS232.... Will it be a problem if one uses a cheap sensor at first, and when changing to a better one, it doesn't have the same output as the cheapo?
Top of the page Bottom of the page
zmf
Posted 6/12/2019 15:43 (#7555271 - in reply to #7554458)
Subject: RE: DIY auto boom height control


south africa
Jip, im getting the kit asap.
1 question, sensors have different output options: pulse-width, analog voltage, and TTL serial, RS232.... Will it be a problem if one uses a cheap sensor at first, and when changing to a better one, it doesn't have the same output as the cheapo?
Top of the page Bottom of the page
zmf
Posted 6/12/2019 15:58 (#7555289 - in reply to #7554458)
Subject: RE: DIY auto boom height control


south africa
Jip, I'm getting the kit asap.
1 question, sensors have different output options: pulse-width, analog voltage, TTL , RS232.... Will it be a problem if one uses a cheap sensor at first, and when changing to a better one, it doesn't have the same output as the cheapo?
Top of the page Bottom of the page
zmf
Posted 6/13/2019 01:36 (#7556185 - in reply to #7555289)
Subject: RE: DIY auto boom height control


south africa
Sorry guys, don't know what happend there, looks like this project interest me too much, or maybe I don't even know how to use a phone properly!!
That sounds great about multiple sensors with Maxbotics.I wanted to drop that bombshell after we figured out a singal sensor setup, but it now looks easy enough.
Top of the page Bottom of the page
Adrian
Posted 6/13/2019 18:46 (#7557392 - in reply to #7556185)
Subject: RE: DIY auto boom height control



South Georgia
Alright, Andre, you've got a kit ordered to start learning? I'll suggest going ahead and downloading the Arduino IDE and going through some tutorials and trying to learn a little bit of the language and syntax and such. Lots of tutorials on Youtube, although I can't point to one that I think was especially helpful to me. I've been trying for about a year to learn this stuff, granted I haven't been putting a lot of time into it, but anyway just recently has it started to click a little bit for me.

Again, I'm going to offer the caveat that I don't have a lot of free time to put into this. I work a lot of hours, and I also teach at my church, which I already think I don't spend enough time on. But that being said, this is a project I've had in mind for a while, probably since before I bought the Arduino, and I really would like this to be successful, so I'll do what I can to help it.

Adrian
Top of the page Bottom of the page
Adrian
Posted 6/13/2019 20:24 (#7557560 - in reply to #7557392)
Subject: RE: DIY auto boom height control



South Georgia
Just sketching out some thoughts, because you gotta start somewhere. Forgive my drawing and writing abilities. I know it's bad.

We need connections for 3 sensors to connect to the Arduino, so they can go to A0, A1, and A2.

We need to control 4 boom functions, L Up, L Down, R Up, R Down, so those are on 2, 3, 4, 5. These will control 5VDC relays to actuate the hydraulic soleniods.

We need to read 4 switch functions, L Up, L Down, R Up, R Down, so those are on 10, 11, 12, 13. Disclaimer: this is the way I'm envisioning this, in order to fit my specific use case, using the factory installed buttons in my sprayer. For folks needing something different, we'll have to figure that out. But this is what works with what I've been thinking.

We need an engage switch, so let's put that on 8.

Does anybody see a problem with any of these pin assignments? I didn't put anything on 0 or 1, in case we decided that we needed serial communications.

Adrian

Edit: Realized that it will also need an LCD display. That will be connected to A4 and A5, I think.


Edited by Adrian 6/13/2019 20:59




(IMG_20190613_212545306.jpg)



Attachments
----------------
Attachments 031-using-multiple-ultrasonic-sensors.htm (137KB - 349 downloads)
Attachments SCXL-MaxSonar-WR_Datasheet.pdf (1737KB - 545 downloads)
Attachments IMG_20190613_212545306.jpg (137KB - 307 downloads)
Top of the page Bottom of the page
WildBuckwheat
Posted 6/13/2019 21:05 (#7557657 - in reply to #7557560)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
I'm in the same boat as Adrian. I would love to see this project work, and I've had it in mind a long time, but I don't have a lot of time to dedicate towards it. I know I couldn't dedicate enough time to the project to maintain momentum. I would also like to do what I can to help.

For the sensors in PWM mode you need digital input pins. When using a PWM signal, you need to measure how long the signal stays high for (in microseconds) very accurately. You can use the analog pins as digital input pins, but it is a waste of an analog input pin and slow. It takes 100 microseconds to read something on an analog pin, and when you're signal is 1 millimeter per microsecond your measurement is off by up to 3 inches right off the hop.

Pins 2 and 3 are interrupt pins. These are too valuable to use as a normal output pin. These are ideal for sensor input pins, like the left and right sensor which will be doing most of the work. You can use interrupts to measure that PWM signal very accurately. A standard arduino only has two interrupts available, and they are on pins 2 and 3. We can suffer a little bit of performance for the center sensor since it won't be doing much work and use a standard digital pin like pin 4 (just to keep all the sensors next to each other).

Reserving pins 0 and 1 is a good idea in case we need serial communications. In addition, when you upload to the arduino, your computer is talking to the arduino over serial over these two pins. If you connect a switch or something, you could kill the signal and now you can't upload anymore.

Reserving pin 13 is generally a good idea as well because it is hardwired to an LED on almost every arduino. You can use it to troubleshoot.

4 boom function relays/solenoid driver, use any remaining 4 digital pins as outputs.

4 switch functions, use any remaining 4 digital pins as inputs.

Mode switch, use any remaining digital pin as input.

Pins A4 and A5 are generally worth reserving as well, since they are required for I2C communications.



I would want center section up/down control and center section toggle switch reading as well. That means reading in a minimum of 6 inputs and controlling 6 outputs just for switching and solenoids, then add modes, sensors, etc. I would want and LCD and a couple of adjustment knobs. I think it'd be worth going to an Arduino Mega right from the start. The Mega has many more pins, and also has 4 serial ports. I think the sensor's PWM signal and serial signals are the best, but I would give slight preference to the serial signal since it will be the most noise resistant, and also work with the most definition. What I mean by definition is; you know you are reading the signal with 100% certainty. When you read the PWM signal (or analog signal), you don't know if you read in the signal properly with 100% certainty (unless you also have an oscilloscope hooked up). With the serial signal, you'll know for sure, because you either didn't read anything, or you read in a number. That's more of a piece of mind thing than anything.

Arduino code is super portable. You can switch to another arduino at any time without really changing any code. You can use any arduino to prototype and you can use any arduino to build a 1 or 2 hydraulic valve controller. You don't need to use a different model unless you run out of hardware (pins, serial ports, etc).
Top of the page Bottom of the page
zmf
Posted 6/14/2019 02:19 (#7558041 - in reply to #7557657)
Subject: RE: DIY auto boom height control


south africa
I'm also to busy, although it's trying to keep my boom from touching ground! Finishing this project is more important than the time it's done in. As long as everyone keeps interest and do what he can, when he can, we'll get there. Giving up is the worst way of loosing.(although I think running out of $ is worse )
I need to know more about everyones sprayer setup, to make things clear.
I have old pull type :
The whole boom is connected to the centrepiece and is moved with 1 cylinder and one remote
The 2 wings are moved with 2cylinders, 1 for each wing, but get oil from only 1 remote through a electric selector block operated with buttons on a joystick.
My plan is to give each wing its own electric remote, because the1remote cannot supply enough oil to lift both wing quick enough at the same time (piping to thin too)
That leaves me with 3 electric remotes and 6 inputs and outputs like WildBuckwheat
It's not really necessary for my centrepiece to be outo as it is close enough to wheels, but since where at it , why not!
But if I understand correctly, the uno would be okay if one are to make only the wings automatic. And that it would be easy, code wise , to change to mega if one should decide to go with auto centrepiece later on ?
In what way is your hydraulics different?
Top of the page Bottom of the page
WildBuckwheat
Posted 6/14/2019 06:19 (#7558143 - in reply to #7558041)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
My sprayer is a Hardi Navigator 3000. It uses a single set of hydraulic hoses that I leave on constant. The boom is a similar setup with center lift section, left wing tilt, right wing tilt, as well as left and right hydraulic fold. All those functions are run through a switch box in the cab and solenoids at a hydraulic valve block.

So hydraulic and plumbing wise, she’s ready to go.
Top of the page Bottom of the page
Adrian
Posted 6/14/2019 16:21 (#7559089 - in reply to #7558143)
Subject: RE: DIY auto boom height control



South Georgia
My sprayer is a Case IH 3330 self propelled.

Adrian
Top of the page Bottom of the page
zmf
Posted 6/14/2019 16:55 (#7559122 - in reply to #7558143)
Subject: RE: DIY auto boom height control


south africa
Now that change everything for me. I thought I need to change my tractor remotes to be solenoid actuated. But it would be way easier to change my explorer's plumbing to a navigaters. That would also make swopping out tractors possible!
My allis has closed centre, load sensitive hydraulic system.
1:Does your wings move quick enough when you lift them at the same time to accommodate a auto system?
2: when one move a wing, momentum make it overshoot, letting the other side go lower. This could make a auto system oscillate. Would one minimise this by letting the auto system have like a certain threshold wherein it is 'good', rather than a single distance which it must stay at. (Hope you can understand this, english is not my first language! )
Or could this also be eliminated with coding? (Smoothing)
Top of the page Bottom of the page
Adrian
Posted 6/15/2019 20:25 (#7561275 - in reply to #7559122)
Subject: RE: DIY auto boom height control



South Georgia
Andre,

I missed this post earlier when I looked here.

No matter how this ends up, for it to work for you, you're obviously going to need electric valves to control your booms. Whether that's done on the tractor or the sprayer I don't think really matters for this project, but it seems to me to be a good deal more straightforward to make it a part of the sprayer. Ultimately though, I suppose it's personal preference on your part as much as anything.

As for the overshoot/oscillation question, I'm sure that it can be done by smoothing the numbers in the coding, but that's above my head. My thoughts currently are that instead of 'perfect' being exactly the same as the center section (which is going to me moving constantly anyway, as these sensors claim to have mm precision), the outer booms are going to need to be considered 'perfect' when they're in some range of "= to the center section" to "some amount higher than the center section" I think. So something along the lines of "center section +3 inches" >= "boom height" >= "center section". That +3 inches probably won't be the correct number, and it may vary based on how fast you want to spray and how uneven your fields are. But that's my idea, to give us a range to hit so that it won't be constantly correcting.

By the way, your English is excellent. It's difficult to talk about things like this clearly so it makes sense through the keyboard, but I honestly woudn't have guessed that English wasn't your first language. What part of South Africa are you from? What crops do you grow there?

Adrian
Top of the page Bottom of the page
zmf
Posted 6/16/2019 15:29 (#7562609 - in reply to #7561275)
Subject: RE: DIY auto boom height control


south africa
Predictive text is a wonderful thing!!

We farm in the Western Cape( close to Cape Town ),which is a winter rainfall region, and only the od thunderstorm in summer, so no summer crops. Wheat , barley, oats and canola(think you guys call it rapeseed)
That bring us back to the Mega: with different crops with different density and different heights it make sense to have a few buttons and potentiometers and then a lcd display too, to facilitate for different conditions. So mega it is , but which one? I came across this link below about the rugged mega. Sounds nice but maybe overkill?
There is also a very intresting read about boom height on different boom setups



Attachments
----------------
Attachments 14grdcsm14boomstabilityheightcontrol.pdf.pdf (2449KB - 1100 downloads)
Top of the page Bottom of the page
Adrian
Posted 6/16/2019 21:18 (#7563336 - in reply to #7562609)
Subject: RE: DIY auto boom height control



South Georgia
Andre,

I'd seen the rugged Arduinos before, but I don't really know that it's necessary for this. But it may not hurt anyway.

Regardless, we're still a long way from that point.

I printed off a sheet showing the pinouts of the Mega, and was going to start trying to figure out a workable way to connect the bare minimum things we need to connect to start with. After that, maybe start trying to get the first little bits of rudimentary code together.

Again, let me offer the disclaimer, I do NOT actually 'know' how to code. I've gotten a few things to work, but with a LOT of trial and error, and often not completely understanding what I've done. I also don't know exactly the best way to collaborate on something like this. I see you have a Gmail address, I supposed the most straightforward thing would be for us to have a shared Gmail folder. Do you have any thoughts on that?

Adrian
Top of the page Bottom of the page
jessejgm
Posted 7/15/2020 11:06 (#8375199 - in reply to #7563336)
Subject: RE: DIY auto boom height control


Good morning. Did you have any new updates on this project?
Top of the page Bottom of the page
WildBuckwheat
Posted 7/16/2020 19:09 (#8377993 - in reply to #8375199)
Subject: RE: DIY auto boom height control


Middlesex County, Ontario
Here's some pics of an early proof of concept that I made. Using a bluetooth link seemed easier than running wires from the boom to the cab, so I went wireless The boom end circuit was glued into a container, powered by a battery, and ziptied to the boom. I ran up/down/hold manually by looking at the screen inside the cab. Was mainly trying to determine if anything worked at all.

I keep thinking I'll get to making this properly but I never make any time.



(IMG_5690 (full).JPG)



(IMG_5693 (full).JPG)



(IMG_5694 (full).JPG)



(IMG_5695 (full).JPG)



(IMG_5771 (full).JPG)



(IMG_5772 (full).JPG)



Attachments
----------------
Attachments IMG_5690 (full).JPG (139KB - 157 downloads)
Attachments IMG_5693 (full).JPG (130KB - 150 downloads)
Attachments IMG_5694 (full).JPG (137KB - 157 downloads)
Attachments IMG_5695 (full).JPG (94KB - 151 downloads)
Attachments IMG_5771 (full).JPG (102KB - 160 downloads)
Attachments IMG_5772 (full).JPG (102KB - 153 downloads)
Top of the page Bottom of the page
zmf
Posted 6/16/2019 15:34 (#7562612 - in reply to #7561275)
Subject: RE: DIY auto boom height control


south africa
Predictive text is a wonderful thing!!

We farm in the Western Cape( close to Cape Town ),which is a winter rainfall region, and only the od thunderstorm in summer, so no summer crops. Wheat , barley, oats and canola(think you guys call it rapeseed)
That bring us back to the Mega: with different crops with different density and different heights it make sense to have a few buttons and potentiometers and then a lcd display too, to facilitate for different conditions. So mega it is , but which one? I came across this link below about the rugged mega. Sounds nice but maybe overkill?
There is also a very intresting read about boom height on different boom setups
Top of the page Bottom of the page
Adrian
Posted 6/14/2019 19:55 (#7559338 - in reply to #7557657)
Subject: RE: DIY auto boom height control



South Georgia
I'm not clear on why it would need to control the center section. You mean you think you'd like to maybe set the height with a potentiometer or something, and let it control the entire thing? I was thinking more along the lines of, I use the center section to set the desired height, and the Arduino maintains the booms at that same height. Probably it'll actually need to be set at that same height within some margin of error, to keep it from 'hunting' too bad in reasonably flat terrain.

You mention needing pins to connect a couple of other potentiometers. What would be their functions?

I did think that it might be desireable to have a way to set the booms to be higher than the center section in especially terraced fields, so maybe a L and R potentiometer to adjust the 'height plus' of each side. What else?

As for using serial communications, I assume that those sensors would be using the serial communications on pins 0 and 1, correct? Would there be a way to connect more than one sensor to an Arduino? Or would that end up needing an Arduino on each boom to convert the communications to I2C to send to the 'master' Arduino? I do understand what you're saying about this method being less susceptible to errors, but in this application with the boom height constantly changing small amounts and the height constantly updating regardless, you reckon it would be a big deal if we missed a few measurements every now and then?

If we leave pins 0 and 1 vacant for potential serial comms, 13 vacant for the LED, and move the L and R sensors to 2 and 3 as you suggested, then we're out of 'digital' pins, before we connect the center section sensor, or add control for the center section height. I guess we can use the 'Analog In' pins for digital outs, can't we? We have 4 of them leftover after using A4 and A5 for I2C communications.

I agree, it's starting to look like we need to consider using a Mega, regardless, just to get more pins.

Thanks for your thoughts.

Adrian
Top of the page Bottom of the page
zmf
Posted 6/11/2019 15:03 (#7553504 - in reply to #7552403)
Subject: RE: DIY auto boom height control


south africa
I'm all in for approach 2. That's basically what I had in mind to. See ,I farm with my 2 brothers, and they like things the way it is! So any changes I want to make, like this project, I need to keep the existing stuff ready to run, for them!
I think Devin used something in the line of approach 3?
I reckon an arduino uno would be appropriate for the 'valve intercept' job( enough input and output pins)?
Top of the page Bottom of the page
Adrian
Posted 6/8/2019 16:05 (#7548229 - in reply to #7542637)
Subject: RE: DIY auto boom height control



South Georgia
Following
Top of the page Bottom of the page
joeblow
Posted 6/22/2019 21:58 (#7575842 - in reply to #7548229)
Subject: RE: DIY auto boom height control



e c iowa
d
Top of the page Bottom of the page
Jump to forum :
Search this forum
Printer friendly version
E-mail a link to this thread

(Delete cookies)