OK I have changed the mosfets to BUZ 11 and verified all HW issues, this mosfet triggers easily on 3.3V TTL level and has more than enough current for what I need to accomplish.
I have verified using this using python.
Now I am not sure how to modify the Python script to create the input loop from Cayene UI back to control the GPIO and have the bidirectional feed back
I am clearly not understanding how to tie this back up to Cayenne ?
import RPi GPIO as GPIO
GPIO.setup (U1, GPIO.OUT)
my_pwm= GPIO, PWM(U1,100)
Assume this is where the Loop is for cayenne?? Please help …
The callback for when a message is received from Cayenne.
print("message received: " + str(message))
if (message.channel == 4) and (message.value == “1”):
#run the PWM python script