Electronics for an oil drilling machine