Hey guys. For a school project this year I want to make an autonomous car. As of right now I am in the very early stages. I registered here hoping to post my progress along with any questions I have. I plan on ordering an arduous board (right now I am looking into the uno but I am open to suggestions.) I also plan on buying three of these sensors ( Ultrasonic Range Finder - Maxbotix LV-EZ1 ) one for front, left and right. Also I plan on getting the large servo from spark fun. I am hoping all of this will go in a cheap radio shack car so that it can roam the school halls knowing when it can turn left and right or continue straight.
Considering I have such a long period of time to complete this I plan on starting out same possible copying code others have written so similar type projects and altering it in ways to adapt more to my needs.
I will be checking back here with progress and questions and I am open to any comments or critiques.
I'm planning a similar project that I'll start hopefully in early November. But I was planning on using just one distance sensors and mount it on a servo, then have it check left, front, right, front, left, etc..... every half second to a second. Doing this for 2 reasons. 1: it's less expensive and 2: it's more of a challenge.
I ended up not building it for lack of time, and currently the project is postponed, as I am really bad at multi tasking ... but yeah, eventually I will get this done as well...
hey guys! i haven't been on here in a while but i ran into a little wall. i was wondering if you guys could help me with some test code to run my motor through my h bridge. i used this schematic. i do not need exact code but any help would be appreciated.
oh and dont mind the gps part. i am not using one.
Not sure how familiar you are with cars, but I would suggest getting a car with drive by wire throttle. If that isnt possible, you can buy a drive by wire throttle body off ebay from like a Chevrolet Silverado or many other cars and adapt it to your vehicle (easiest way is to have someone make an adaptor from aluminum, not hard at all). This way you wont need a servo for the throttle input, you just wire the throttle body input motor to the arduino. Drive by wire cars have multiple throttle position sensors mounted in the throttle body and elsewhere, they monitor these sensors in realtime, and if any of them are more than a few percent different than the others, the ECU will react accordingly (either shut down the throttle input, the engine, or eliminate the non-matching sensor and monitor the remaining operational sensors). The reason I mention this, is that safety is paramount in any object capable of motion, especially when it is capable of high speed and weighs a couple thousand pounds.
What would be extremely cool, and difficult to do, is to make the car aware of which room it's in and be able to set a room for it to go to.
Set a default room for it to start in, (and obviously log which position it's in at all times, etc. etc.), have like a few buttons to set its destination room (maybe put all the rooms in some arrays or however you feel like doing it), and have it navigate there. Use its direction to find which way it needs to turn, etc.
Maybe I'm crazy, but it seems like a cool thing if you can make it work. Tons of work, but just imagine a teacher's face when a car comes in with a paper saying "From , here's my make-up work from yesterday -- Keep me in a safe place until comes and picks me up!".
Nevermind, I just realized you were talking about an r/c. When I read your post about a car I thought that was what you meant, a car. I recently read about a college project involving controlling cars and was thinking this project was the same idea. Good luck though.
copied and pasted a part of the code i was currently using change the pin no to 3 and 4 according to your setup
That to shouldn't have been ther i wanted to say .......
copied and pasted a part of the code i was currently using change the pin no's 3 and 4 according to your setup
I built an Arduino based robomagellan truck this summer and I just wanted to share a couple of lessons learned.
A sweeping ping works awesome with two things to keep in mind. ping too high car hits curb(destructive). ping too low car sees grass (runs constant avoidance).
The NMEA library is awesome!
Use a servo for steering. I tried using the dc motor steering boxes that came with the trucks I modded (being cheap) and it was a disaster.
Trees are not your GPS's friend.... Have a secondary system for staying on course (digital compass, etc).
Keep the power for your board and sensors separate from your power for servos and motors.
Keep the car's speed down until everything is dialed. Replacing ping sensors, etc sucks.
thanks aroma of tacoma. i heard a little about the NMEA library and im going to look further into it.
newbie thanks for the clarification and from looking at the schematic i followed the pins would be 3 and 6 correct? because those are the motors leads.
im having a little bit of trouble testing this rc car because im not sure if my code is wrong. i used what newbie gave me and changed the pins to where he used 8 and 9 to 3 and 6 (look at the schematic i posted) or if its my wiring/connections that are causing nothing to happen.