It's used for studies project - small robot with webcam and controlled via wifi from computer program. Webcam is mounted on small servo so that I can rotate it. Servo's PWM pin is connected directly to RPi pin, two other servo's pins (5V and GND) are connected to mine LiPol battery after voltage balancer that gives me 5V. I use two small motors that're connected to L293D driver. This driver is connected directly to RPi (3,3V is enough for this driver to recognize high state). I also use popular Edimax as wifi. As I said I use voltage balancer to get 5V from mine 2S LiPol. It works fine, whenever I check voltage it gives about 4,98V.
This configuration (without servo) has been working fine since September. I didn't have any problems with it. Webcam worked, wifi too. Motors have been connected this way since September too and it's been working fine as I said.
Servo was connected to this robot over a week ago. I tested it and it worked fine, motors too. Everything was good and I didn't suspect that I'd have such problems with it... Now more details about what happened.
It began about a week ago, I had a problem with booting Rpi - it's written here http://www.raspberrypi.org/phpBB3/viewt ... 37#p463737 . As you can see in this thread it was solved. I managed to run RPi after adding this line to config file. What only stopped working was... pin that servo's PWM was connected to. I had no idea why, I couldn't get PWM using this pin (it was pin GPIO 2 (rev. 2 board) http://elinux.org/RPi_Low-level_periphe ... .28GPIO.29). So I changed this pin to other (GPIO 11) and servo was working again. I checked everything - motors, webcam, wifi and servo - everything was ok. So I turned it off...
Day later mine RPi few secs after turning power on just turned off. What was interesting here - only one motor turned on for one or two secs, robot moved a few centimeters (this motor turned on immediately after I plugged in RPi). I unplugged it from LiPol battery and tried to turn on again but red LED just lighted for about one or two secs and it was down again... I searched internet for any info and found this: http://elinux.org/R-Pi_Troubleshooting#GPIO . It seemed to describe mine problem, I had problem with GPIO pins and RPi turned off. I waited about 6h and tried to turn on Rpi again. It turned on but only for about 10 secs... Next I tried in about 30h again. And it was good! RPi turned on, but... from this moment I've got this problem - USB and ethernet don't work, CPU is getting hot in a few seconds. I can see that it's working cause HDMI works. It boots, waits for login details. But I can't even log in cause I can't connect keyboard nor use SSH
What happened? Is this RPi dead and nothing can help it?
I'm the most interested in the reason, why did it happen. I have to finish this project in a month, I can buy new RPi but don't want something like this to happen again that's why I gave you all details. What did I do wrong?