Here's how to turn off automatic screen blanking on an older Raspberry Pi.

xset -dpms
xset s off

These commands can also be added at the end of /home/pi/.config/lxsession/LXDE-pi/autostart to make the effect permanent.