Hey, I've got an idea for a project. It's basically a rip off from the letsbuildrobots starting robot. It will have an Ultrasonic Distance Measurer on top of a Servo and 2 Motors controlled by an L298N. The robot will move. Check distance every 2 seconds in 3 directions and move again to the path which is longest. Programming shouldn't be a problem, I'm pretty experienced at that. But this, I will be doing for the first time.(Outside of soldering a berryclip)
I drew a crappy diagram to show everything. 1 Motor excluded, I just couldn't fit it. http://puu.sh/8f7pI/7a099a3f33.png(Sry for the shitty diagram, couldn't find a free and easy to use one online.)
I have a couple of questions:
1.Will the Pi be able to power all of this?
2.Can the Ground somehow receive more than 3.3V and fry? I don't see how, but who knows.
3.Can all of this supposedly draw more than 300mA at one point and shut down the RPi?
4.It says on the servo that max mA draw is 550. Can I put a resistor on the 5V wire which is used to power it to prevent this from happening?
5.Would it be safer to have an external power source? I'd prefer not to if I can avoid it.
Power Draw:
15mA Draw for the Distance Measurer.
No idea how much is needed to power the logic in the L298N.
Servo Standby 8mA. Max 550mA / 25 Ohms = 200mA. I think that's how it works.
The RPi has 16 or 17 usable GPIO pins and all of this should only take 9 if I'm correct. 6 For motors, 1 for trigg, another for trigg and 1 for echo.
Yeah, that's pretty much it. Thanks for reading. I could