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 changing PIC

    My video shows my kit uses a 0.1" centers solderless prototype board. If I am to change PICs I would like something compatible.
    I tried the 32BITWhacker board of 32MX460. I was disappointed because I could not program it using the PICKIT2 system. Maybe if I purchase a PICKIT3.....(It is programmable via its USB port. That requires I completely change my coding system and learn yet another variation of BASIC or C)

    What Microchip PIC do you all suggest that has a Dual Inline (DIP) configuration and is easily programmable?

    Ken

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


    Did you find this post helpful? Yes | No

    Default Not doing well picking a new PIC

    The BITwhacker is appealing because it has 0.1" center holes. All I need to do is solder male to male connectors and stick the whole shebang into a solderless protoboard. It is a bit large for the HPI SPRINT R/C car. I never got the BITwhacker to work. (I purchased two. One came with a teeny tiny slide switch in the wrong position. That led me on a wild goose chase which ended up with one BITwhacker losing its embedded STICKOS code. The other board is good as new, but now I am leery of the whole thing.

    Is there a MIcrochip and/or MicroEngineering Labs product that works in a predictable fashion with the BITwhacker?

    If not the above then I need the schematic of a starter kit showing how a powerful-enough-to-do-my-job DIP configured PIC is hooked up to either a classic USB port or the RJ11 Microchip USB adaptor. The I need a PC based compiler that will do the job and a programmer that will load the resulting code into the PIC.

    Suggestions??

    Ken

  3. #3
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Ken, Here is what I think.
    I agree with going back to the basics. As I have been reading this thread since your project started, I for 1 am not real sure where you are with methods, hardware, program,...

    I suggest you do this: List all the parameters needed. such as how long does the sonar need to accquire a distance? How many things does the PIC need to do? Then you will be able to determine if your chosen PIC is up to the job.

    I think it prolly is, and I think PBP is also up to it. Worst case is to sprinkle some ASM in if needed.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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


    Did you find this post helpful? Yes | No

    Default Basics..

    The SONARs each get a 10micro sec trigger. This creates an ultrasound PING. I use PULSIN plus PAUSE 10 to input the response and wait for the ringing to stop. Total time for two SONARs = at least 20msec.

    To make room for the PWM pulses I could shorten the length of the SONAR PAUSEs. Trying to fit 20msec interrupts clearly might be a problem.

    I could trigger the SONARs less often (interrupt driven). I do not need to be measuring the distances so often. The PIC could, at that time, skip a PMW interrupt - or delay it a couple of milliseconds.

    Other than that all the code does is fly through various IF THEN state machines depending on the most SONAR readings. That is very simple.

    However-----\

    If I could calculate closing rates accurately and if I had a finely tuned proportional control system then I might be able to implement a real PID system. Not sure. I do not know how to analyze this.

    Ken

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kenjones1935 View Post
    The SONARs each get a 10micro sec trigger. This creates an ultrasound PING. I use PULSIN plus PAUSE 10 to input the response and wait for the ringing to stop. Total time for two SONARs = at least 20msec.
    hate to be picky, but is it micro or milli seconds?
    Can both sonars be active at the same time?

    If I could calculate closing rates accurately and if I had a finely tuned proportional control system then I might be able to implement a real PID system. Not sure. I do not know how to analyze this.
    Ken
    Maybe I am just lucky at times, but i have never been properly introduced to a real PID system. I don't consider myself being able to emulate a PID when I am flying R/C planes, yet I can fly them. The finely tuned proportional control system is not too hard, I am sure we can get you there.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 13:55
  2. PBP Extensions, What are they?
    By PJALM in forum PBP Extensions
    Replies: 9
    Last Post: - 28th September 2021, 12: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, 20:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th December 2005, 00:30
  5. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 17:24

Members who have read this thread : 2

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