First, remove and reseat the memory modules to make sure they are well connected.
Try a BIOS reset on this circa-2011 design with the HP BIOS Update routine:
Do Win-B and keep holding them down while you press-and-hold the power button for 3 seconds. Let go of the the Power button while still holding Win-B. If the Power light goes out, repeat with only 2 seconds press-and-hold of the power button.
If that does not bring up the HP BIOS Update, then repeat the above with Win-V instead.
Since you report this results in five flashes, HP's troubleshooting web page section titled "BIOS flashing light error codes for computers released between 2011 and January 2015" states you have a general system board failure, and therefore your vendor for the replacement motherboard should be contacted.
When you get that motherboard replaced:
One or the other should lead you to on-screen instructions for recovery, but if the same recovery message shows up repeatedly, shut down the laptop, and go to another Windows machine to visit Software and Downloads at https://support.hp.com/us-en/drivers/laptops to download a BIOS recovery app file onto a blank USB flash drive to make a Recovery USB Flash Drive.
That page will ask for your PC's exact part number from the serial number sticker on the underside. Once you get there, make sure to change to the original Windows version your laptop first shipped with (since this machine ceased production before Windows 10 was released to manufacturing). Look on the laptop for the sticker which shows that version.
Launch the app after downloaded, and choose Recovery USB Flash Drive. When if finishes, close that app and then safely eject the flashdrive.
Then, insert the USB flash drive in the failing laptop, and use the combination keystroke/power-up process again.
Do Win-B and keep holding them down while you press-and-hold the power button for 3 seconds. Let go of the the Power button while still holding Win-B. If the Power light goes out, repeat with only 2 seconds press-and-hold of the power button.
If that does not bring up the HP BIOS Update, then repeat the above with Win-V instead.
Either should invoke the BIOS recovery, and with the USB flash drive just created, will reinstall your BIOS.
1Blinking CAPS LOCK indicating an issue with motherboard or BIOS. Try to remove CMOS battery, disconnect battery and power supply then press and hold power button for at least 30 seconds. It could be an issue with power supply too, try to start computer on battery only with disconnected external devices such as HDD, CDROM, WiFi card. – Alex – 2018-09-06T16:22:53.507
It’s not true that all the other boards are needed for the laptop to work. What is the relevance of saying that? Does the motherboard work when those items are disconnected? How do you know the motherboard was bad to begin with? How do you know the used motherboard you’re trying is any good? The only thing needed to power on the motherboard is power, ram, and a power switch. And the CPU of course which is probably permanent. – Appleoddity – 2018-09-06T16:24:19.253
Alex, I've done everything with and without CMOS battery. It seems to do less power cycling and indicating without the battery. On battery, same story. I've also had all devices disconnected. – Staplerfahrer – 2018-09-06T16:28:31.980
Appleoddity, I've had all boards disconnected, but then it just turns the fan on 100% and nothing else. Then connecting the boards one at a time show the same thing, in the end it needed the modem board plugged in to get back to this blinking error mode where I have at least some input on the system booting process. My old motherboard was bad because it heated up badly and dimmed my power supply LED when I plugged it in. New motherboard was tested according to seller, same exact model. No idea on any of the other components, don't have the parts to test that. – Staplerfahrer – 2018-09-06T16:31:22.313
If you have a choice to barrow CPU to try out on your motherboard, it probably would help go further with issue investigation. (Use @SomeUserName when you replaying, otherwise people won't be notified) – Alex – 2018-09-06T16:50:14.430
@Alex, wouldn't CPU throw a 1-blink error? But it's possible. I'm thinking now it may be graphics, since the monitor or VGA has not once turned on. I'm tempted to buy both parts and try that. – Staplerfahrer – 2018-09-06T16:57:18.180
@Jacob, thank you for your diligence in steadily analyzing what's going on here. There's a convention here for the original poster to update the original post in lieu of putting useful added info into comments. Clicking on
edit
above ant to the left allows you to add in useful data in response to questions, e.g. "..done everything with and without CMOS battery.." and "..had all boards disconnected.." – K7AAY – 2018-09-06T17:14:28.727