PBP projects for R/C models


Closed Thread
Results 1 to 40 of 772

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default How to prototype??

    I have installed a second battery pack -- four AA batteries now power the PIC and all the electronics except the radio receiver. The original 7.2 volt NiCad battery power only the servo, the electronic speed control and the radio receiver.

    The inconsistent behavior in autonomous control may have been because of noise, but then it could be because of slow reaction time relative to speed travel. Not sure yet.

    I need suggestions on how to prototype this package. There appears to be shops that offer short run PC cards. PCB-POOL advertises in the SERVO magazine. You all have any preferences?

    Ken

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I have used these folks.
    http://www.expresspcb.com/
    Only thing I do not like is you have to use there software. But very happy with the three boards for $51.00. Nice work and quick turn-around.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Talking Some successes

    Mucho frustrations followed by some successes. The PC board proto challenge is beyond me for now. Created instead a car that toggles itself between radio and PIC control without using a third radio channel and negotiates a maze that includes both right and left turns.

    The auto toggle is a function of the car being out in the clear - not in or too near the cardboard maze. The right and left turns were pretty obvious after numerous stupidities.

    I hope to post a video next week.

    Thanks again for all your support.

    Ken

  4. #4
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Question Could use some suggestions

    I think the code is pretty solid. Now the problem is response time, size of maze passageways and RC car speed. A fraction of a second does not seem very long when the car is up on blocks, but it is enough time at speed to crash into a far wall when it should have detected a turning opportunity and done its thing.

    I think I need:
    1. Techniques using PICBASIC Pro for recording data in memory that can be read back into my PC for analysis. How do I do this? I have not the faintest idea what app to use.

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This is a tough one.

    If the trouble is speed and timing then using more MCU cycles might make it worse.

    You can look at writing data to the on-board EEPROM.
    http://melabs.com/resources/samples/pbp/eeword.htm
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post

    I think I need:
    1. Techniques using PICBASIC Pro for recording data in memory that can be read back into my PC for analysis. How do I do this? I have not the faintest idea what app to use.
    This thread might help:

    http://www.picbasic.co.uk/forum/arch...p/t-13317.html

    Regards,

    Anand

  7. #7
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default I think the PIC is plenty fast enough

    Thanks for your attention and replies.

    I think the PIC is plenty fast enough. I think the SFR05's are responding quickly enough judging from their flashing LED's. My guesses are either SFR inconsistencies and/or weakness in my jury rigged PWM signal.

    The servo and the speed control want PWM pulses at 50 per second. I have not been able to do that with my PIC. I get the pulse width correct, but I can not get the rep rate down to once each 20 millisec.

    Ken

  8. #8
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Talking I think I've got it...

    The PIC KIT2 programmer has, at the bottom, reference to EEPROM. It has addresses 00 - FF.

    I think that if I use the PBP WRITE command at run time I can store data in the inchip EEPROM space. 00 to FF in size. I can then manually read this out with PIC KIT2 programmer.

    Sound correct??

    Ken

  9. #9
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Cool chip for R/C PWM: 18F2431 series

    After reading about some of Bruce's cool projects with the 18F2431 series chips, I have been playing around with them for a little while. One thing that caught my eye is that they can do Power Control PWM as low as 19 hertz (while running at 40 mhz). Something you have to bring other chips OSC down to 0.5 mhz to do. This, and a few more of it's features, make it pretty nifty for creating PWM servo output. I mocked up a quick test, and have been able to do about 10bit PWM 1 to 2ms pulses at the proper 50 hertz spacing on 3 pins with the 18F2431. The larger chips of this series can do 4 pin PCPWM. I will post a little code once I get it cleaned up a bit.
    Last edited by ScaleRobotics; - 26th July 2010 at 18:15.

  10. #10
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Question The new Electronic Speed Control is messing with my head

    I received a brand new HPI Racing Sprint car. This is the same model which I have been using. It is just the most recent version.

    I am having a problem with the new Electronic Speed Control a SC-15. It has some kind of mind of its own. My old code which told my old car where to go is not working with this new ESC.

    Do any of you have the contacts to get me the specs on this "SC-15 ESC WITH REVERSE SPORT CONTROL".

    Does is have a PIC? Is it programmable? What are its design algorithms?

    Ken

  11. #11
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Since it doesn't have to be exact, you could simplify your code.

    Instead of:
    Code:
    Checkpot:
    adcin PORTA.0, Potread
    write 4, word Potread
    select case Potread
    case Potread < 36
    Forward = 112
    case Potread => 36 and Potread < 73
    Forward = 113
    case Potread => 73 and Potread < 109 
    Forward = 114
    case Potread =>109 and Potread < 146 
    Forward = 115
    case Potread => 146 and Potread < 182 
    Forward = 116
    case Potread => 182 and Potread < 219
    Forward = 117
    case Potread => 219
    Forward = 118
    end select
    write 2, word Forward
    something like:
    8 bit ADC:
    Code:
    Checkpot:
    adcin PORTA.0, Potread
    Potread = Potread/37
    Forward = Potread+112
    10 bit ADC:
    Code:
    Checkpot:
    adcin PORTA.0, Potread
    Forward = Potread/147 + 112
    Last edited by ScaleRobotics; - 2nd September 2010 at 16:15.
    http://www.scalerobotics.com

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP Extensions, What are they?
    By PJALM in forum PBP Extensions
    Replies: 9
    Last Post: - 28th September 2021, 11:26
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 16:24

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts