Nishitoku

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Cant center the steering servo #3544
    Nishitoku
    Participant

    Update on this:
    Still trying to get my modells going again after all these weeks.
    Purged everything from my harddisk and performed a clean install. No effect.
    Tried several power sources. No effect.
    Since the values are all ok, i thought about looking into the PWM signal to the servo itself and got myself an oszilloscope.
    I can see, that the signal itself is shifted, so that the value 127 isnt the middle, but about 20ยฐ on the servo.
    It must be something with the servo.h.
    I hope i get this sorted out someday. All my projects are on halt. Steering is somehow essential ๐Ÿ™‚

    Greetings from Germany!

    in reply to: Cant center the steering servo #3525
    Nishitoku
    Participant

    i now put serial.print all over the code to find out what that map function does.
    its wiered.

    _Steering_Servo_Min: 90
    _Steering_Servo_Max: 110
    _Steering_Val_Map: 99
    New_Steering_Val: 125

    _Steering_Servo_Min: 90
    _Steering_Servo_Max: 110
    _Steering_Val_Map: 109
    New_Steering_Val: 254

    the values are correct inside the boundries defined.

    the servos are spinning like crazy, though….

    in reply to: Cant center the steering servo #3523
    Nishitoku
    Participant

    I tried this, but the steering value seems to be off centered.
    when the range is 0 – 255 i assume 127 is the middle.
    when i go 90 to the left and 90 to the right i come up with 37 to 217.
    all of the servos i tried move about 20ยฐ in both directions which is too little and the servos are over the limit on 1 side, too.

    i suspect the map function or something else doesnt center the values right.

    aditionally i connected a LED directly to pin 10 and the brightness doesnt change much. there are a lot of random brightness spikes, though.

    What troubles me is, that it worked perfectly. Its a riddle ๐Ÿ™‚

    I saw that the function SetServoLimits() is called in the body AND in the cab code but that should do no harm.

    I build a test system with 2 mini pro arduinos, receiver module and all light and servo functions to track the issue. the behavior is the same as on the modell, so it is not the hardware.

    Must be somewhere in the code and i cant see it.

    in reply to: Problem switching to "Full Beam" #3516
    Nishitoku
    Participant

    Nice! It works now, as you showed in the youtube video of the live stream.

    Thanks so much. Debugging the arduino code is hard when you are used to a debuger that can step through the code line by line ๐Ÿ™‚

    in reply to: New V2 controller #1724
    Nishitoku
    Participant

    I purged the library folder and reinstalled your librarys. Uploaded them on the controller and the Fend939 with the Massey cap and body arduinos.

    Everything works now! Modell battery indicator, the signal indicator, lights, motor(on full, L1 and L2). PERFECT.

    I have to adjust the steering range though, as the tires touch the front hydraulics on full left or right.

    Thanks so much for the suggestion to try a clean library install. I should have done this from the beginning. There must have been some includes the linker took from elsewhere.

    I am using the 1.6.8 IDE

    So now i can add so much more functions to my models. Btw. Is the Syma S107 Code working? I have one of those. I only have to find the power cable ๐Ÿ™‚

    Thanks again for your help!

    in reply to: New V2 controller #1716
    Nishitoku
    Participant

    Yes i took the different wiering into account.
    I started today with a basic test program to send a ping from the controller to the vehicle baord and it worked. So the wiring and the hardware is fine:-)

    I had a look at the test in the vehicle library!
    It says Match in all 4 cases. So its all good on that side.
    I think the link to the newest version 1.05 is broken.
    It looks like http://rctractorguy.com/wp-content/uploads/2016/05/RCTractorGuy.ziphttp://rctractorguy.com/wp-content/uploads/2016/05/RCTractorGuy-1.zip

    • This reply was modified 7 years, 11 months ago by Nishitoku.
    in reply to: New V2 controller #1713
    Nishitoku
    Participant

    I build a test configuration only with the pro mini, the NRF24+ module and 1 LED connected to pin 3 of the arduino. For testing purposes i use the JD9560R code, because its only 1 Arduine instead of cab and body.

    I switch on the breadboard – LED is off
    Then i switch on the controller and choose JD9560R in the menu. – LED is still off. The onboard LED on the pro mini though (indicating the connection, i guess) went dimm.
    Then i switch on all lights on the controller (headlights, worklights, full beam) and reset the mini pro. – LED is ON.
    Then i switch off all lights on the controller and reset the mini pro. – LED is OFF again.
    This is repeatable, so there is a kind of connection at the start of the mini pro.

    I also played with the datarate and the transmission power, but when i change anything of that there is no connection at all.
    A 10 nF capacitor had also no effect.

    My vehicles run with the basic controller (old code without RCTractor Libraries and the old Massey code on 2 mini pro)
    I tried to upgrade to the new code for the basic controller and new massey code but i there also loose connection.

    It seems there is something wrong with the newer Library code and my NRF24+ modules. Ikeep you up to date if i find something. ๐Ÿ™‚

    in reply to: New V2 controller #1700
    Nishitoku
    Participant

    When I choose a vehicle on the controller, the the JD9560R for example, the signal indicator is initially on full. Even if there is no vehicle active. The signal indicator then decays until its just the white dot.
    As i understand it, this is the normal behavior.
    When there is an active vehicle the indicator still decays. There is a connection in the first second, when turning on the vehicle. I can turn on the indicators or the headlights. But after that, everything is dead.

    Thats a bit of a strange behavior. I would expect no connetion at all or some kind of packet loss, but not an initial connection lasting for 1 second.

    I have no idea yet how to debug that.

    in reply to: RC Controller V2.0 and V2.1 Code #1697
    Nishitoku
    Participant

    Thanks, guys! With the new Version it works fine.
    Perfekt.
    Thx again ๐Ÿ™‚

    in reply to: RC Controller V2.0 and V2.1 Code #1688
    Nishitoku
    Participant

    Hi,
    just got that new controller with the mega mini pro and the 2.4″ TFT. Beautiful thing! Great work.
    I ran into a problem with code, though.
    I tried to compile and upload the v2.1 code but got 2 errors.
    – glcdfont.c missing
    – “registers.h” missing
    I got the glcdfont.c from the Ardafruit GFX Lib. The registers.h from somewhere.

    The program compiles with the 2 files but the TFT does not initialize.(Only backlight)

    Have the registers.h or the glcdfont.c specific files and where to get them?

    Im thankful for all suggestions ๐Ÿ™‚

    in reply to: Basic Arduino Based RC Controller #1587
    Nishitoku
    Participant

    This really helps a lot.
    Thank you so much!
    This tractor projects are phantastic. One has to solve so many different machanical, electonical and software problems which are all interwoven ๐Ÿ™‚

    in reply to: Basic Arduino Based RC Controller #1555
    Nishitoku
    Participant

    Hi,

    is there an exsample of reciever code, that fits to this basic transmitter code?

    I have the arduino shield with 6 buttons + joystick and the Massey 8680 code for 2 arduinos in cab and body is a bit overkill for my first project.
    I find it dificult to merge the code for cab and body into one codepice for one single body-arduino.

    I basicly only need joystick x + y for speedcontrol and steering and the 6 buttons for light, front hydraulic-servo and a trailer function.

    Btw: Thanks for all the inspiring content!

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