I was using my raspberry pi and was testing a piece of code, what I wanted to happen happened, however immediately afterwards the Pi stopped working. Now, when I give the Pi power, the red (power) LED does not turn on (not even for a little bit) and there is a permanent green light followed by the blinking of the green light (this blinking comes in a regular pattern. There is also a lot of heat coming from the central component. The Pi was working for a month, and I have not changed how I supply it power, and now even when I detach all of the components, the Pi will not boot. I have checked to see if the SD card is correctly placed. I would appreciate any help, however can you please mention any possible solutions besides replacing the Pi.
Red LED not lighting up means the supply voltage never exceeds 4.65V. This is consistent with "a lot of heat coming from the central component", which is no good news. In the best case, your SD card is sinking abnormal current, heating up the chip as well. In the worst case, the chip itself is damaged.
Blinking of the green LED means failure to read the SD card, which is good news, meaning probably only the card is broken, not the RPi itself. You should buy a new SD card, flash the system on it and try to boot. Don't try to reuse the broken SD card - depending of the kind of damage it has, it may cost you whatever equipment you plug it into.
EDIT: try powering your RPi with SD card unplugged. It won't boot of course, but a healthy device should at least have the red LED on.
I've found when the green led blinks regularly, about .500ms it indicates it is not finding the operating system...I'm sure your best off re-writing your SD card.
One of the following things is broken, test in this order.
System/sd card (unlikely but easiest tested - reinstall on sd-card, replace sd card)
Power supply (replace with other supply)
Pi itself :(
My apologies for not answering to those that commented on this thread. ( I can't comment on answers anyway due to low reps).
I am replying this as I wish to close this thread. I believe from memory that I bought a new Raspberry PI and assume the old one to be dead.
Fast forward today, as I was looking at my old Raspberry PI thread, I tried to powered the old one I had today(2017,Oct) =( No LED lighting up this time around. It is officially dead.
If the red LED never comes on, then maybe it has failed in some way. Like in jetliners where the landing gear light fails so everybody panics until the Air Force looks and can see the gear is actually down.
I agree that starting with a good fresh NOOBs SD card would be a good way to see if the green light acts differently. If it does not then in addition to possible damage to the red LED there might possibly be damage to the SD card socket.
Since the hardware is cheap and available you may want to borrow a friend's for a test or buy a new one.
And finally, make very sure you have a power supply intended for the thing. Improper power can lead to all sorts of strange indications. Again, they are cheap and available, so either borrow a known good one or just buy another yourself.
Try reformatting the SD card? Could be a SD card corruption.
If you app. writes the SD card and you power off, it's REALLY EASY to corrupt the file system (just like the 'good old days' of Windows 'ntoskernal missing')
So plug in another SD card with a NOOBS image and see what you get. If that works, you then have the task of recovering your data from your now proven corrupted card (very few people ever make 'backups' of their Pi system, yet the Pi is about 100x more likley to corrupt than any modern Windows PC - but back-up devices for PC's can be found almost anywhere)