Yes, bottom diagram and slight variants thereof. @gtj0 makes several good points, the one I want to repeat for reinforce is be sure the Pi has enough power. I thought mine did for a long time, and then I found the particular log where I saw it was complaining every few seconds. Sheesh.

Anyway, you are on the right track, there's people here to help, keep asking Qs.