G+_Joseph DuPree Posted February 1, 2018 Share Posted February 1, 2018 I am having issues with the programming/circuit tutorials. I can’t get the GPIO to work on my Zero. I also got a HC-SR04 ultrasonic sensor that I can’t get to work on the Zero or Arduino. Maybe a bad one from China. Any suggestions on what I maybe doing wrong. I was at leading a B/C student in programming class. Link to comment Share on other sites More sharing options...
G+_David Peach Posted February 1, 2018 Share Posted February 1, 2018 What are you doing on the Pi to try and rest of the GPIO is working? Have you tried a simple blink an LED project? I haven't done much recently with the GPIO on a Pi, but I've heard that one of the addressing schemas has been deprecated. As for the ultrasonic sensor I would only suspect that it is bad after I've tested the GPIO. But it certainly could be poorly made. Link to comment Share on other sites More sharing options...
G+_Joseph DuPree Posted February 1, 2018 Author Share Posted February 1, 2018 So far, I have tried the blink (LED) and drive a servo. Nothing very complicated, or so it seamed. I have just been trying to do the small things before moving on. As for the sensor, I have the feeling that its broken or defective. Link to comment Share on other sites More sharing options...
G+_David Peach Posted February 1, 2018 Share Posted February 1, 2018 Just to make sure we cover the basics, you do realize that whatever pin number you specify in your program, it probably does not correspond to the physical pin position? Which tutorial are you working through to blink an LED? Or show us the code you are trying. Maybe a quick look at what you are looking at will help us track this down. I'm going to make the assumption that the headers have been installed properly on the Pi Zero (or if working without headers that your soldering job is right). However, if you are unsure about this, post a pic and we will try to take a look. Link to comment Share on other sites More sharing options...
G+_Joseph DuPree Posted February 3, 2018 Author Share Posted February 3, 2018 Well, I figured out I had to load the GPIO library for the RPi Zero. I was able to get the LED script to work. So I will have to build on that. Thanks for the help. Link to comment Share on other sites More sharing options...
Recommended Posts