April 2018
Intermediate to advanced
248 pages
5h 31m
English
The right rear motor should rotate clockwise and left rear motor should rotate anticlockwise. During forward movement the green LED (marked as forward LED in Figure 8.2) will glow:
module.exports.move_forward = function(callback){ clearInterval(leftIndicatorHandler); clearInterval(rightIndicatorHandler); enable_1.digitalWrite(1); input_1.digitalWrite(0); input_2.digitalWrite(1); enable_2.digitalWrite(1); input_3.digitalWrite(1); input_4.digitalWrite(0); green_LED.digitalWrite(1); red_LED.digitalWrite(0); console.log ("move forward") callback ("move forward")}
Read now
Unlock full access