Need help with armature subject

Hey guys!

I’m a CW student and at my job I’m in need to create a “sprayer bars” for a sprayer tractor and I would like to know how can I create an effect of zig-zag opening for several segments of this bars and how to limit rotation for them so they cannot go further, like an arm!

Does Zach have similar content on Youtube or on a Cubib World chapter?

Thanks a lot!

(The blue model is not mine, just a reference. My model is the orange one below)