Code Monkey home page Code Monkey logo

Comments (3)

farmerbriantee avatar farmerbriantee commented on August 16, 2024

Cool, thanks.

The one i use is a bit shorter and uses Port calls directly. In AgOpenGPS it OR's or AND's the individual bits and then sends just one byte to Arduino. All the relays turn on or off at exactly the same time.

int inByte = 0; // incoming serial byte

void setup() {
//Pins 8 thru 12 as output, 8 is LSB
DDRB = B00011111;

//PORTB turn off 8 thru 12
PORTB = B00000000;

Serial.begin(9600);
while (!Serial) {}

establishContact(); // send a byte to establish contact until receiver responds
}

void loop() {
if (Serial.available() > 0)
{
// get incoming byte:
inByte = Serial.read();
Serial.print(inByte);

PORTB = inByte;

}

}

void establishContact() {
while (Serial.available() <= 0) {
Serial.print("X"); // send an initial string
delay(500);
}
}

from agopengps.

aortner avatar aortner commented on August 16, 2024

Hi Brian! I did see your new sketch to late.

At cerea they use another way. The gps software sends a string to the arduino.

each command beginns with @
then the use strings to assign the commands to different functions.

@hidraulic;1 or 0;End is for a hyraulic command to lift off the machine
@cera;gpsspeed;0 or 1;0 or 1; ..........;End is for controlling the sections.

maybe they use more commands in the future comming from the machine.

it is also possible the send commands from the arduino to the gpssoftware.

i have taken the allsprayer on/off signal from the sprayer to send it to gps software.
the software turns on/off the mark behind the trekkker. this is very usefull when driving a little outside the field.

i did not look in you source code. witch programming language is it?
what hardware are you using?

at the moment i am part of the german user group of cerea. cerea is a spanish software and the
support is terrible - but it is very cheap!

best regards andreas

[email protected]
+43 660 7669333 (whatsapp)

from agopengps.

farmerbriantee avatar farmerbriantee commented on August 16, 2024

I'm using C# and the application runs in windows, but it will also run in Linux thru wine. It will run in any windows 7 to 10. Never tried in XP.

I've watched some Youtube videos on Cerea. It is quite good, but as you say support would be difficult.

from agopengps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.