Alright so I understand this question is fairly saturated, but my use in pwm is for two differing pieces of hardware.
(Sourced from: https://www.modmypi.com/blog/raspberry-pi-gpio-en-franais)
From what i understand i have two available ports that support PWM but i've noticed from research that primarily suggests that GPIO 18 is the only usable PWM output.
Now forgive me for being ignorant, but my understanding from the wiring diagram concludes that i use this topology:
Now the servo motor will be needed to controlled in real time (Hardware PWM) as the solenoid I dont mind having a slight delay (I assume software PWM). (Please note the power will be supplied by an external source)
If anything i'm primarily writing the control code in python, but can anyone recommend a library to use for this application or at least point me in the right direction as i'm struggling to get over this coding/wiring block (Its my first time using the pi).