No one thought the golden calf represented Yahweh. The Israelites grew impatient with Moses and wanted other gods to lead them, so they returned to the calf gods they had left behind in Egypt.
Now when the people saw that Moses delayed coming down from the mountain, the people gathered together to Aaron, and said to him, “Come, make us gods that shall go before us; for as for this Moses, the man who brought us up out of the land of Egypt, we do not know what has become of him.” ... And he received the gold from their hand, and he fashioned it with an engraving tool, and made a molded calf. Then they said, “This is your god, O Israel, that brought you out of the land of Egypt!” ... And the Lord said to Moses, “Go, get down! For your people whom you brought out of the land of Egypt have corrupted themselves. They have turned aside quickly out of the way which I commanded them. They have made themselves a molded calf, and worshiped it and sacrificed to it, and said, ‘This is your god, O Israel, that brought you out of the land of Egypt!’ ” (Exodus 32:1,4,7-8)
“Now therefore, fear the Lord, serve Him in sincerity and in truth, and put away the gods which your fathers served on the other side of the River and in Egypt. Serve the Lord! And if it seems evil to you to serve the Lord, choose for yourselves this day whom you will serve, whether the gods which your fathers served that were on the other side of the River, or the gods of the Amorites, in whose land you dwell. But as for me and my house, we will serve the Lord.” (Joshua 24:14-15)