hi please the code of ovladania As with JD 8360RT only from without serial commu

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1353
    sisikar
    Participant

    Clean code from the controller RF24 to the transmitter RF24 on the chassis controll Chainsaws. Crawler steereng in my case it is bad ,Other my fuck code is good ๐Ÿ™‚
    thank you in advance

    #1354
    RC Tractor Guy
    Keymaster

    Hi I think the most up to date code is here: http://rctractorguy.com/forum/topic/rc-john-deere-8360rt-build

    Is that what you are looking for?

    #1358
    sisikar
    Participant

    yes but not work this link on your forum : Click here to view the RC John Deere 8360RT Code, my problem ist not work controler-cab-body , problem has my serial comunnication and that’s why replace only two motor. control – body

    #1360
    RC Tractor Guy
    Keymaster

    Oh I see thanks, I’ve correct that. Oh I think I understand, your model isn’t working and you don’t see the serial data appearing on screen?

    What if you try adding serial.print as below, do you see an output for all of those extra prints?

    
    void setup() 
    {
     pinMode(4, OUTPUT); // Set digital pin 4 as an output
     pinMode(3, OUTPUT);// nova ledka
     Serial.begin(9600);
     nrf24.init(); // Initiailize NRF24 radio module
     nrf24.setChannel(1); // Defaults after init are 2.402 GHz (channel 2), 2Mbps, 0dBm
     nrf24.setRF(RH_NRF24::DataRate2Mbps, RH_NRF24::TransmitPower0dBm);
    
    Serial.print("Setup Complete");
    }
    
    void loop()
    {
    
    Serial.print("Loop");
    
    if (nrf24.available()) // If the NRF24 has recieved data
     {
     uint8_t buf[14]; // Create array to store it in
     uint8_t len = sizeof(buf); 
     if (nrf24.recv(buf, &len)) // Store the data
     { 
     // We recieved a string of ten bytes, four ID, one command and six data values but they may not be for this tractor
     if (buf[0] == ID1 && buf[1] == ID2 && buf[2] == ID3 && buf[3] == ID4){ // ak sedia hodnoty tak je to pravda
     Command_Val = buf[4]; // Store the new command value
     Data_Val_1 = buf[5]; // variabilne priradene k setup
     Data_Val_2 = buf[6]; // Store the new data value
     Data_Val_3 = buf[7]; // Store the new data value
     Data_Val_4 = buf[8]; // Left_Joy_X
     Data_Val_5 = buf[9]; // Left_Joy_Y
     Data_Val_6 = buf[10]; // Store the new data value
     Data_Val_7 = buf[11]; // nova ledka
     Data_Val_8 = buf[12]; //Right_Joy_X
     Data_Val_9 = buf[13]; //Right_Joy_Y
    
    Serial.print(Command_Val);
    Serial.print( Data_Val_1);
    Serial.print( Data_Val_2);
     }
    
     }
    
    #1565
    oldboy
    Participant

    Hi Why do I keep getting this fatal error: RF24.h: No such file or directory
    #include “RF24.h” message when I cope the the code to the Arduino Uno
    How do I rectify Please

    #1566
    RC Tractor Guy
    Keymaster

    I think you haven’t installed that library, it doesn’t come with the Arduino IDE. You can get is here: https://github.com/maniacbug/RF24

    or here is a better library which I am using now: http://tmrh20.blogspot.ie/2014/03/high-speed-data-transfers-and-wireless.html

    #1581
    oldboy
    Participant

    Hi Thank you for the RF24.h code down loaded that okay, but no I am having problem down loading the code for the 5volt Arduino Mini Pro in the cab. The following keeps telling me ๐Ÿ™ fatal error: SendOnlySoftwareSerial.h: No such file or directory #include <SendOnlySoftwareSerial.h> // Include the library for creating additional serial ports I have tried everything sorry to be such a pain.

    #1582
    RC Tractor Guy
    Keymaster

    That is the same error, anytime you see No such file or directory #include in the error message you can pretty much be sure you are missing the library. You can check by navigating to the libraries folder in your Arduino folder and checking if you can see the library there.

    That library can be found here https://github.com/disq/i2c-gps-nav/tree/master/I2C_GPS_NAV

    Just download the files named SendOnlySoftwareSerial.h and SendOnlySoftwareSerial.cpp, then create a folder in your Arduino libraries called SendOnlySoftwareSerial and save the files there. If you have the Arduino IDE you will need to close and reopen it to make sure the library installs properly.

    By the way yesterday I uploaded a library which contains my code for the JD9560R and the JD6920S models in case you want to take a look at that http://rctractorguy.com/rc-tractor-guy-library

    It works with this basic controller library http://rctractorguy.com/basic-arduino-based-rc-controller-library

    This is all new code and unfortunately I haven’t had time to modify and add the Massey 8680 or JD8360RT code to this library yet so it may not be of use to you but just letting you know those are there.

    #1586
    oldboy
    Participant

    Hi Thanks again for your help, I found the two libraries SendOnlySoftwareSerial.cpp & h that I need in Githup but the download button is no longer there! I have tried many different ways but with no luck I have been at his most of the afternoon. I enjoy making all the parts fit on the tractors. I am useless at electronic. So once again can you guide me in the right direction Thank you in anticipation.

    #1589
    RC Tractor Guy
    Keymaster

    Sorry I didn’t notice there was no download link. That is sometimes the case on github so in those instances the easiest thing to do is create the folder in libraries called SendOnlySoftwareSerial. Then go to any other library and copy a .cpp and .h file over to your SendOnlySoftwareSerial. Rename the copied files to SendOnlySoftwareSerial instead of whatever they were named.

    Open the SendOnlySoftwareSerial.cpp file and copy the code from here: https://github.com/disq/i2c-gps-nav/blob/master/I2C_GPS_NAV/SendOnlySoftwareSerial.cpp into your file and save the changes.

    Open the SendOnlySoftwareSerial.h file and copy the code from here: https://github.com/disq/i2c-gps-nav/blob/master/I2C_GPS_NAV/SendOnlySoftwareSerial.h into your file and save the changes.

    Now if you have the Arduino IDE open, close it and reopen it and hopefully the library should work for you.

    #1593
    oldboy
    Participant

    Hi Me again all sorted so far thanks again for your help and patience. I have been watching 8360 RT Part 6 – Installing the radio module, Arduino and LEDs in the cab.you said that you still had to do the code for the Arduino mini pro in the cab to work the LEDs. Is it somewhere or have you not done it yet. Managed to get the LEDs working thanks to a breadboard the transistor had me going, the difference between the NPN and the PNP!!.

    #1612
    RC Tractor Guy
    Keymaster

    Hi, I did have it working but I’ve since changed all the code to suit the new controller and haven’t done the code for the Massey yet. The latest code I have which works is this http://rctractorguy.com/rc-tractor-guy-library

    I know its pretty complicated but you pretty much are always going to want NPN between your LED and ground, rarely would you want to work with PNPs in this hobby.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.