Jump to content


johannal

Member Since 07 Jul 2014
Offline Last Active Aug 20 2014 11:02 PM
-----

Topics I've Started

Toggle ON/OFF

14 August 2014 - 01:21 AM

Hi,

 

In the Funduino Robotics programming section, you had this snippet for a kill switch:

 

if(digitalRead(2) == HIGH) // if the push button switch was pressed
{
while(1)
{
leftMotor.write(90);
rightMotor.write(90);
}
}

 

What I wanted to do was to make the button a power toggle switch instead of simply turning off the wheels. From the video, it looks like that is what you had. You set the robot down, and you pushed the button to turn the wheels on. Do you have code for that one?

 


Robot's power source - does it matter?

03 August 2014 - 10:15 PM

Hi,

 

In your instructions, you specifically stated "Use red wire to connect VCC to the front power (red) rail on the breadboard (not the back one!)". Does it matter where the power source for the distance sensors come from, whether from the Arduino's 5V or from the battery pack?

 

I'm asking because I'm trying to modify the wiring to include 5 LDR (photoresistors) in front and the space is really tight. So I wonder what the harm is if the power source for the sensors came from the back rail instead of the front.

 

Thanks!

 

p.s. BTW, thank you for the detailed instructions, they're the best I've found online so far