Self driving RC-car

Discussion in 'Embedded Systems and Microcontrollers' started by nofuture, Mar 1, 2015.

  1. nofuture

    Thread Starter New Member

    Mar 1, 2015
    6
    0
    hello guys ,i'm new to this forum,this is my first post and its my first embedded project :D
    i'm trying to program a PIC micro-controller to control an RCcar so it can solve a maze by it self, can any one suggest to me how do i start, which PIC would be better to use, how many ultrasonic sensors should i use ,and most importantly, how to target a certain goal ??
    note: i cant use any GPS modules for security reasons.
    Thanks in advance
     
  2. sevenfold4

    Member

    Jan 12, 2015
    80
    7
    i am bleeding to know now why did you say "note: i cant use any GPS modules for security reasons."
     
  3. nofuture

    Thread Starter New Member

    Mar 1, 2015
    6
    0
    I thought the GPS would be an option, so I mentioned that I can't use it, if I used it I might get jailed,and I can't do anything about it. It's just this county regime.
     
  4. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    I would suggest you define the problem (e.g. What is the goal? It is to solve a basic maze? What are the requirements for solving the maze?).

    Once you understand the problem you are attempting to solve, see how others did it - what algorithms, motors, wheels, processors, etc.

    Then, formulate an approach you will attempt to use.
    Figure out what works with your approach. If you are unsure, think of what you might need - ADC? (How many channels?) Hardware SPI? I2C? H-bridge driver (with dead time features?)? Memory size?

    All of these features can be found using Microchip's parametric search tool.

    You don't need to use any. There are other options - have you looked into them?

    Define your goal. Design for the goal. Attain your goal. If any step fails, return to the previous step.
     
    Last edited: Mar 2, 2015
  5. nofuture

    Thread Starter New Member

    Mar 1, 2015
    6
    0
    sorry for so many not specified questions,
    thanks for responding.
     
  6. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,790
    827
    What is the maze that your RC car will traverse and where are you from, that using GPS will get you jailed? If you can share.

    I'm sure everyone is curious...
     
  7. nofuture

    Thread Starter New Member

    Mar 1, 2015
    6
    0
    The maze is kinda like this one
    And I'm from Egypt, the military just took over the country by a coup and and things are a little too messy, assasinations,bombings .... etc
    so if you are working on things like RFs or GPS then you are a threat and threats go to to jail, simple as that.
     
  8. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,790
    827
    Ok, things make more sense. You need to be careful. I have friends with relatives in country. El Gazzar...

    IMHO, an RC car may not be the best platform, as it would require a relatively large turning radius.

    @tshuck 's comments are very good. Start listing your goals and requirements to meet those goals. This will be a living list for a while, as new ideas will change old ones.

    Sleep! Your ideas will gell into a design. Then it is time to make more lists and diagrams. Block diagrams, flowcharts, parts lists, suppliers.

    While it sounds like a lot of unnecessary work, trust me, it is necessary. Each step will not be as difficult as you think and will make the process easy to make an excellent result. Always remember it is an iterative process, a tiny bit at a time.

    Good luck.
     
  9. camerart

    Active Member

    Feb 25, 2013
    517
    30
  10. MrChips

    Moderator

    Oct 2, 2009
    12,414
    3,353
    This is amazing! Watch till the end and see the top winners.

     
  11. sevenfold4

    Member

    Jan 12, 2015
    80
    7
    May be a stupid question, but are they using wheels, or magnets? How does such a light thing have such a good friction and sharp turns, if it has wheels.
     
    Last edited: Mar 3, 2015
  12. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    They are using wheels with differential steering.
     
  13. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    2,790
    827
    Are there trials? Are the mice allowed to have memory of prior runs?
     
  14. nofuture

    Thread Starter New Member

    Mar 1, 2015
    6
    0
    i've started by buying the pic16f887 and 3 ultrasonic sensors and a chesp dc car ,and i'll start by reading from the sensor ,if I haD aby further problem I'll post it ,thank you guys .
     
  15. John P

    AAC Fanatic!

    Oct 14, 2008
    1,632
    224
    I believe that in contests like this, the machines have an initial run to learn the terrain, and then they do another pass where they're running the maze for speed. I don't know if the first run is timed, or if they just get so many minutes to explore.

    If the Egyptian maze is on the same scale as the ones in the videos, optical sensors would work better than ultrasonic ones. And a model car with conventional steering wouldn't be very maneuverable compared with cars that steer by driving their wheels at different (or opposite) speeds.

    I'm sorry that you have to operate in a place where you need to worry about getting into trouble over perfectly harmless stuff. Life shouldn't be that way.
     
  16. nofuture

    Thread Starter New Member

    Mar 1, 2015
    6
    0
    Thanks for the help Jon :D ,I really hope for things to change in my country.
    Ok ill go for the steering by driving the wheels in opposite directions, about the sensors the scale of the maze is a little bit larger so I'll go for the ultrasonic sensors .
    I just have a one question that's troubling me the most, if the target is to get to a certain point in the maze , like goal may be the center,how do I program it to go for that point ?
    What If the goal was a mobile device what would be the case then ?
     
Loading...