basic problem in code : ) sorry for the error
Do you guys think it could be an issue powering the sr501? Does the arduino uno have enough resources to power a standalone atmega328p + a sr501?
The 5V rail on an UNO could power a stand-alone ATMega328P and an SR-501 PIR detector without problems.
Out of interest, do you really need both the UNO and the stand-alone '328P, or is the UNO just being used as a power supply for testing?