only i want test on/off the relay in the raspberry any simple code for testing??? i find in google but i find only for 8 channels or more of three pins
You will need to provide much more info on the relay board you want to use the picture gives no info.
A link to a data sheet or other specification sheet is what will be needed.
We want information… information… information........................no information no help The use of crystal balls & mind reading are not supported
It is a 5 volt relay. The board has a transistor Q1 to the left of the relay. There is resistor R1 (150 ohms?), probably between the transistor base and the input pin labelled S.
A diode, probably across the relay coil. And an LED, but no sign of a series resistor for it.