New answers tagged

0

Maybe this adds another small bit of help: You can choose if you like to use the pin number or the gpio "name" like gpio 18. If you like to set the pin number, do GPIO.setmode(GPIO.BOARD) or use the gpio name with GPIO.setmode(GPIO.BCM) Also a good help for debugging with gpio's is the wiring pi gpio utility (from here) to access the gpio's from the ...


1

I just changed the GPIO setup and it works for me (remote connection to rpi over ssh). This is my complete code. I added the pullup, changed the pin to 12 and because I was lazy used the setmode GPIO.BOARD because I just had the pin number. The shebang line does not influence, BUT I have to use python3 (3.7.3) to start the code since python (2.7.16) does ...


1

I've same display. I've changed in clock_EN.py: Raspberry Pi pin configuration: RST = 27 DC = 25 LED = 24 in Raspberry Pi pin configuration: RST = 25 DC = 24 LED = 27 ... and now it works


0

Question How can Rpi python read a SPI MFRC255 RFID/NFC tag? Short Answer Part 1 - Introduction to I2C and SPI NFC/RFID Chips and Modules Part 2 - Setting up SPI MFRC522 Module Part 3 - Troubleshooting SPI Software and Hardware using Loopback Part 4 - Using Rpi4B buster Python 3 and Mfrc522 library to read NFC Tag I have successfully installed ...


1

In my case the current from my power supply to the relay module was not sufficient at 1.0 amps. I swapped it out with one rated at 2.0 amps and that got my relays switching. Thank you all.


2

The module you have includes a resistive sensor and a comparator which produces a 1-bit value (0 or 1). There's nothing you can do to get a more detailed signal from that module. There are two main approaches which allow to read analog values from resistive sensors with devices which don't have analog pins, such as raspberries. External ADC: simulate this ...


2

It is inadvisable to mix libraries. You can control a servo with https://gpiozero.readthedocs.io/en/stable/recipes.html#servo See https://gpiozero.readthedocs.io/en/stable/api_output.html#servo for documentation of the servo class. NOTE that gpiozero, by default uses RPi.GPIO GPIO Zero builds on a number of underlying pin libraries, including RPi....


Top 50 recent answers are included