You cannot use ~/.bashrc to run a program at boot up. It is to configure bash and runs only with bash sessions and not at boot up of the RasPi. To have a service started on boot up you best use a systemd Unit file. Try it by creating a Unit file with:
rpi ~$ sudo systemctl --force --full edit myprogram.service
In the empty editor insert these statements, ...
An alternative to systemd for starting a program at boot is cron. If you've not used cron to schedule jobs, you may find it easier than systemd. Here's how:
Open the "scheduler" for cron - the crontab:
$ crontab -e
This will open your crontab in the editor you have chosen (nano is a good choice)
Add the job to the crontab - add the following ...