It is very difficult to redirect a password into su and this is intentional. Storing passwords and automatically logging into accounts is very dangerous and often a bad idea.
sudo can be configured to login without passwords, it is very flexible; but be careful to only give such permissions in a very limited and specific way.