Do they hate water ?
you can buy those water sprayers that have a movement sensor and activate a spray on movement.
I don't know if the ultrasonic cat deterrent products would work with a badger.
Scotch bonnet chilli's finely chopped and scattered around your lawn ?
https://www.rspca.org.uk/ImageLocato...31036&mode=prd