Forum Replies Created
- AuthorPosts
- RC Tractor GuyKeymaster
Hi,
I see I linked to the wrong folder on the download page, I’ve fixed that now.
Here is a direct link to the zip folder which should allow you to download it: http://rctractorguy.com/wp-content/uploads/2016/05/RCTractorControllerV2.zip
RC Tractor GuyKeymasterExcellent I’m glad it arrived in good condition, I’ve been told I sent 3 1k resistors instead of 4. Sorry about this mistake, any 1k resistor will work if you have one but if not R4 and R5 are only used with XBee or similar device so if you aren’t using an XBee then you can leave one of those off.
RC Tractor GuyKeymasterHi guy’s I’ve uploaded new code for the Massey 8680 here: http://rctractorguy.com/rc-tractor-guy-library
And it works with this controller code: http://rctractorguy.com/basic-arduino-based-rc-controller-library
RC Tractor GuyKeymasterOh okay, the zipped library doesn’t affect the 8680 code, you need to include the SendOnlySoftwareSerial library thats all. Here it is, just set it up as any other library and the code should compile https://github.com/JohnDRoach/Mx5DataLogger/tree/master/Arduino/MyLibraries/SendOnlySoftwareSerial
RC Tractor GuyKeymasterHi what error are you getting, can you copy and paste them here? Is it a missing library by any chance. I put some new example code here in case you haven’t seen it http://rctractorguy.com/rc-tractor-guy-library
March 23, 2016 at 1:24 pm in reply to: Northern Ireland Farm toy and model show Friday 25th March Portrush Co.Antrim #1614RC Tractor GuyKeymasterHi, I won’t be there myself but good luck with your display I hope you have a fun day.
RC Tractor GuyKeymasterHi Tomek,
You should be able to drive two motors from one TB6612FNG provided you need less than 500mA continuous current per motor I think. What brought you to the conclusion you needed one per motor?
The reason you put capacitors close to the chips is because the traces introduce resistance and inductance, more so the inductance because an inductor resists change in current flow. So if for example you switch in a relatively high current load like a motor at high frequency the small inductive element of the traces resists that current flow and that can be enough to drop the voltage in that location causing weird effects on your power rails that can cause chips to reset even though back at the input the voltage appears stable. I think that is what happens and why it is considered good practice to provide bypass capacitors as close as possible to the chips. The reason you usually have different capacitor capacities of 10uF and 0.1 uF in parallel is to deal with different frequencies, a 10uF (probably electrolytic) has more capacity but wont respond as quickly as the 0.1uF (probably ceramic) capacitor so the smaller capacitance handles higher frequencies and larger cap handles voltage changes at lower frequencies.
That said we aren’t working on very sensitive electronics so you probably would get away without most of the capacitors if you are tight for space but if you have the space for them it definitely wont hurt to include them.
March 23, 2016 at 1:02 pm in reply to: hi please the code of ovladania As with JD 8360RT only from without serial commu #1612RC Tractor GuyKeymasterHi, 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.
RC Tractor GuyKeymasterThe tractor projects are good fun if you enjoy the electronics but it sure takes a lot of time ๐
February 21, 2016 at 1:25 pm in reply to: hi please the code of ovladania As with JD 8360RT only from without serial commu #1589RC Tractor GuyKeymasterSorry 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.
February 18, 2016 at 12:00 pm in reply to: hi please the code of ovladania As with JD 8360RT only from without serial commu #1582RC Tractor GuyKeymasterThat 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.
RC Tractor GuyKeymasterTo be honest the code has changed so much over the last year I have trouble remembering which codes work together ๐ I’ve been working on new code for the controller I designed so today I went back and modified the code for the basic controller to match.
Click here to view the controller code
Click here to view some example tractor code
These are in library form to make it easier for most people, you might want to modify the code yourself. If you just need to modify the command string you can do that and update it as shown in the example. If you need to do more then just right click on the .cpp file and change whatever you want there rather than the sketch is probably the best way to do it.
I hope that helps.
February 17, 2016 at 12:40 pm in reply to: hi please the code of ovladania As with JD 8360RT only from without serial commu #1566RC Tractor GuyKeymasterI 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
RC Tractor GuyKeymasterI think you have misunderstood how I’m using the Arduinos in this model. The Massey 8680 has an Arduino in the CAB talking to a second in the body, this is simply a way to expand the number of available pins. There is only one radio so only one receive and it is in the CAB so the CAB code should receive your data and you don’t need the body code for your application at all.
And your code
servoPos = map(command[7],0, 180, 0, 180); myservo.write(servoPos);
is a waste of processor cycles because you have already mapped the value to between 0 and 180 in the transmitter code so I think you can just do this
myservo.write(command[7]);
if that doesn’t work then do this
servoPos = command[7]; myservo.write(servoPos);
RC Tractor GuyKeymasterThat is no problem, the plan is to run a kickstarter campaign hopefully this month so anyone who wants one can put their name on the list. There will be three options 1. just the PCBs, 2. the PCBs and parts to assemble the controller yourself or 3. an assembled and tested controller. Option 2 is seeming most popular from what people have told me so far.
- AuthorPosts