RGhosh99 wrote:Actually i need a python code such that the servo motor moves according to the IR sensor input. There will be 4 IR sensors in four directions and the motor needs to move in those directions depending on which IR is activated. I need python code for this. Please help.
Hi,
the point of gph's post was that you have asked for python help, but posted in the Java forum.
Now moved to python forum.......
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555