Keith replied to the topic unable to control dc motors in the forum LBB_Robo-car___Project 8: Controlling DC motors 1 year, 9 months ago
Hi Ammar, I will close this query as I have separately addressed it with you. For record and benefit of other students, the issue was that the manufacturer has updated their Motor Driver Board as can be seen on the Board. Due to this change, the sketch has to be updated such that:
pin 4 controls direction of spin of motors connected to point…[Read more]
Keith replied to the topic unable to control dc motors in the forum LBB_Robo-car___Project 8: Controlling DC motors 1 year, 9 months ago
Can you try const int rightMotor_ctrl = 2; const int rightMotor_pwm = 9; again?
This configuration should work. I used the same configuration for both projects in this lesson and the challenges under section 4.
Make sure
i) the connections are firm
ii) the blue & red jumper caps are plugged in
iii) none of the 6 batteries are out of…[Read more]
Keith replied to the topic unable to control dc motors in the forum LBB_Robo-car___Project 8: Controlling DC motors 1 year, 9 months ago
Hi Ammar, thanks for providing the code. Can I check why have you used pin 7 and 6 for rightMotor_ctrl and rightMotor_pwm respectively instead of 2 and 9?
If you are connecting the motors to the Arduino board through the motor shield, you need to use pins 4, 5, 2 and 9. These configurations are hardwired due to internal circuitry of the motor…[Read more]Keith replied to the topic unable to control dc motors in the forum LBB_Robo-car___Project 8: Controlling DC motors 1 year, 9 months ago
To clarify, the way your car is: Left motors (front & back) are following the sketch which is forward 2s, pause 1s, backward 2s, pause 1s, backward 2s, pause 1s, forward 2s, pause 3s. Right motors are not following command in sketch and are both rotating continuously in one direction? Can you share your sketch here so I can help to troubleshoot?…[Read more]
Keith replied to the topic unable to control dc motors in the forum LBB_Robo-car___Project 8: Controlling DC motors 1 year, 9 months ago
Hi Ammar, can I check if you used my sketch or you drafted your own sketch?
1) if you have used my sketched, is it Proj_8a or Proj_8b?
2) if you have your own sketch, can you paste your sketch here so I can see what is wrong?Also, the left motors are working and you are using 6 AA batteries?
Keith replied to the topic UNABLE TO DO THIS PROJECT in the forum Q&A 1 year, 9 months ago
Hi Ammar, thanks for the question.
Can I check what error message are you seeing? Also, were you able to select the right port where the uno board is connected to?
Also, do make sure the connections are correct. i.e. from LED module to Motor board
‘S’ should map to ‘S’
‘V’ to ‘5V’
‘G’ to ‘G’Keith changed their profile picture 2 years, 11 months ago
Keith's profile was updated 2 years, 11 months ago
Keith started the topic Posting Etiquette in the forum Announcements & Guidelines 3 years, 11 months ago
Dear Sand people,
To make this forum a more enjoyable place for exchange of idea, please keep these posting best practices in mind when posting. Your cooperation will go a long way. Thanks!
• Before starting a new topic, perform a quick check to confirm that there are no existing threads with similar topic or your question has not already b…[Read more]
Keith started the topic Guidelines in the forum Announcements & Guidelines 3 years, 11 months ago
Welcome to Xand Oasis!
We strive to make this forum a friendly, safe and conducive environment for learning. While we appreciate your generous contributions in terms of sharing ideas and knowledge, we also seek your observance to the general guidelines listed below:
1. Users are expected to be kind, helpful and respectful. Beyond seeking…[Read more]