p2 controlled Jeep 1/8 scale - RobotShop Forum

Putting robotics at your service™

Free shipping on orders over $75

p2 controlled Jeep 1/8 scale

Print view Share :
Previous topicNext topic

Page 3 of 3 [ 37 posts ]

1, 2, 3
Rookie ( offline )
Posts: 25
Posted: 2018-03-15 11:49 
code


Attachment:
JEEP135.ino [5.37 KiB]
Downloaded 8 times
Rookie ( offline )
Posts: 25
Posted: 2018-03-15 15:39 
this is the new code with theESC but the car only drives backwards and not forward

everything else seems perfect apart from that


Rookie ( offline )
Posts: 25
Posted: 2018-03-15 18:42 
i forgot to add
my servo. attach(9)
for the steering


Rookie ( offline )
Posts: 25
Posted: 2018-03-20 19:52 
Pic


Attachment:
IMG_1959.JPG
IMG_1959.JPG [ 1.04 MiB | Viewed 31 times ]
Attachment:
IMG_1958.JPG
IMG_1958.JPG [ 1019.73 KiB | Viewed 31 times ]
User avatar
Admin ( offline )
Posts: 1612
Posted: 2018-03-21 08:58 
Hey,

We've had a quick look at your code and it seems like it would most likely work. If that is the case, then you are most likely having a miswiring somewhere between your motor, motor controller and microcontroller.

If your motor controller also has any settings (firmware/EEPROM) or jumpers, make sure those also match the mode you want.

Another quick test you can do if you have a RC servomotor available is to connect its signal pin (typically the white or yellow wire) to the myservo output pins and the VCC & GND to proper connections to power the servomotor. If your code works well, the servomotor should move in response to input on the gamepad.

Also, not sure if this is required for your forward/backwards test, but myservo1 seems to be missing its .attach(PIN) call. If that signal is needed then it will not work since it is not connected to any physical pin.

It would be helpful to see in more details how your wiring between the motors, motor controller(s) and the microcontroller are.

We hope this helps.

Sincerely,

_________________
Sébastien Parent-Charette
Robotics Software Specialist

RobotShop inc.
Putting Robotics at your service!™
www.robotshop.com

Lynxmotion
Imagine it. Build it. Control it.™
http://www.Lynxmotion.com


Rookie ( offline )
Posts: 25
Posted: 2018-04-14 16:44 
My project is done and I thank everyone at roboshop an in the forum
Much love an if there's anything I can do to return the favor
Ask away
An ill answer any questions about the project


User avatar
Admin ( offline )
Posts: 1612
Posted: 2018-04-16 10:59 
Well, that is certainly great news!

If you feel up to it, you can make a detailed post about the project and its creation process (requirements, challenges, thinking process, solutions, etc.) on our project focused website, Let's Make Robots.

The RobotShop community would most certainly be interested in all the details! :)

Also, you can most certainly go over there and comment on people's projects and offer ideas/help, too.

Sincerely,

_________________
Sébastien Parent-Charette
Robotics Software Specialist

RobotShop inc.
Putting Robotics at your service!™
www.robotshop.com

Lynxmotion
Imagine it. Build it. Control it.™
http://www.Lynxmotion.com


1, 2, 3

All times are UTC - 5 hours [ DST ]. It is currently 2018-04-24 17:12