5 votes
Accepted

I2C Detect shows that Rasberry Pi keeps assigning the same address to 2 devices

The Pi does NOT assign addresses. They are set by the device. Some devices have configurable addresses.
user avatar
  • 53.5k
5 votes

Adafruit bonnet & adafruit-circuitpython-motorkit return "ValueError: No Hardware I2C on (scl,sda)=(3, 2)"

The fix is to use raspi-config to activate the I2C port. I'm documenting this because the interthing had no link from that misleading error message to this fix, because nobody except me forgot to ...
user avatar
  • 618
3 votes
Accepted

I2S Recording combined with I2S Playback

I was also getting the same error. But now it is working for me. First you install I2S microphone as shown here: https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-...
user avatar
2 votes
Accepted

Sharing SPI Adafruit PiTFT and RFID RC522

Using the answers from Dirk, I have got both my 2.8" TFT and RFID-RC522 working. I have set dtoverlay=spi1-1cs in /boot/config.txt giving me: $ ls /dev/spi* /dev/spidev0.0 /dev/spidev0.1 I ...
user avatar
2 votes
Accepted

Rpi4B buster CircuitPython Blinka Servo Board Installation Problem

Works here:- sudo pip3 install adafruit-blinka Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting adafruit-blinka Downloading https://www.piwheels.org/simple/...
user avatar
  • 53.5k
2 votes

is the Adafruit read-only script suitable for my project?

The 300-line script (direct link) is extensible, and for complex projects you'll likely have to modify it. You can run your existing project through strace and look through the output to identify ...
user avatar
  • 2,804
2 votes

Raspberry Pi 3 B+ not reading time from the GPS

Whilst historically I've used the built in ntpd GPS drivers, these have become increasingly dated and buggy with newer hardware. More recently I've therefore moved from 127.127.20.0 to the shared ...
user avatar
  • 136
2 votes
Accepted

Adafruit speaker bonnet: no error and no sound

The problem was a faulty speaker bonnet, as a new one worked fine. I sent it back to Adafruit, requested a diagnosis of the problem, and will update the answer if I receive one. I also tried on a new ...
user avatar
2 votes

I2C Detect shows that Rasberry Pi keeps assigning the same address to 2 devices

If you want to have two different addresses you need to configure them with jumpers : This board/chip uses I2C 7-bit addresses between 0x70-0x77, selectable with jumpers https://www.adafruit.com/...
user avatar
  • 31
2 votes
Accepted

Trouble accessing Sensirion sht21 though multiplexer tca9548a using i2c and python

I figured it out with a little help: Circuit Python doesn't work with this sht21.py, because it is smbus based. So here it is: I used the multiplexer code from this homepage but this is all I needed ...
user avatar
2 votes

AdaFruit ServoKit CircuitPython Blinka Library Installation Problem

Adafruit-Blinka requires Python 3. It seems you're trying to install it for Python 2, using pip. Use pip3 as instructed in the tutorial you link to. sudo pip3 install adafruit-circuitpython-servokit
user avatar
  • 3,312
2 votes
Accepted

Why is my relay switching on automatically when I start my program?

Thank you all for your help in diagnosing this. Relay was faulty, swapped for one of the same make and model and now its working with the test provided by Coder Mike, as well as my original script.
user avatar
2 votes

What happens when you overload the 5V pin on Zero W

The Pi Zero has a direct connection between the power and headers. If you overload it sufficiently you will burn out the board tracks.
user avatar
  • 53.5k
1 vote
Accepted

sudo python3 generates error but python3 does not

I used sudo bash to enter commands as sudo and found python3 temphumlogger2.py had same error. Within this sudo bash window I followed the CircuitPython instructions here to install all the modules ...
user avatar
1 vote

Show boot info on character LCD

You could create a simple python script that runs on startup with Cron. That script would display whatever you want for a small amount of time and then end. This would effectively tell you when your ...
user avatar
  • 944
1 vote
Accepted

Converting from RPi.GPIO to circuit python digitalio

The OP noted in a comment that she/he would be better supported with this way: I would be better off continuing to use the RPi.GPIO interface for the kiln element pins for the sake of future ...
user avatar
  • 39.6k
1 vote

Cannot pip install adafruit-circuitpython-mlx90640

As ben_nuttall says, you must use pip3. Circuitpython is Python 3 only! sudo pip3 install adafruit-circuitpython-mlx90640
user avatar
1 vote

Scaling down Raspbian for Adafruit PiTFT 1.14"

You can change pretty much everything desktop-related with this command: lxappearance That will let you change font sizes for GTK GUIs, as well as the font size for the title bar (window border), as ...
user avatar
  • 1,574
1 vote

PIR sensor shows movement when no movement is present

There are too many potential problems with the set up. First of all you need to confirm your cobbler is correctly attached to the Pi and the breadboard. Using a volt meter do you read 3V3 between a ...
user avatar
  • 66.5k
1 vote

How can Rpi python 3 uses PCA9685 PWM controller to change direction and position of a servo?

You need to look at a wiki to see how hobby servos are controlled. Also look up the meaning of PWM. Basically they expect a series of pulses at about 50 Hz. That means they expect a series of pulses ...
user avatar
  • 66.5k
1 vote

Raspberry Pi 3 DHT 22 incorrect readings

If you get any readings at all it is probably wired properly. I suggest you try my DHT Python script. Leave the module with the name DHT.py and then issue the following commands in the same ...
user avatar
  • 66.5k
1 vote

Why is my relay switching on automatically when I start my program?

Does the following turn on and off your relay accordingly? import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) RELAIS_1_GPIO = 18 GPIO.setup(RELAIS_1_GPIO, GPIO.OUT) while True: print('...
user avatar
  • 6,161
1 vote

Why is my relay switching on automatically when I start my program?

Setting a GPIO pin has a latching behavior. That is when you set it, it stays that same value until you tell it otherwise. So in your if statement, just add an else clause to reset it low if the ...
user avatar
  • 349
1 vote

Why is my relay switching on automatically when I start my program?

OBSERVATION: I do not see a line of code / instruction to pull the GPIO back to low. If the observation is correct and this instruction is executed: GPIO.output(RELAIS_1_GPIO, GPIO.HIGH) How would ...
user avatar
  • 637
1 vote
Accepted

Auto run python program upon boot up of raspberry pi

I assume that you are using Raspbian so you should use a systemd Unit file to start the program. Because you can run it manual from the command line you are also able to run it with a Unit file. You ...
user avatar
  • 39.6k
1 vote

Raspberry Pi 4 - Adafruit MAX98357 - No Sound from speaker

The problem might be the SD PIN. I would try to run the speaker test: https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/raspberry-pi-test#simple-white-noise-speaker-test-6-1 while ...
user avatar
  • 156
1 vote

Raspberry pi with 1.3" oled i2c screen

Possibly the driver you are using is not the correct one for the screen, I had the same problem and changing the driver from SSD1306 to SH1106, and it worked correctly. https://luma-oled.readthedocs....
user avatar
1 vote
Accepted

No module named 'adafruit_circuitpython_servokit'

I installed the module as a normal user without sudo, so it was installed to that user's home directory and not the system. Running the script as root via sudo then meant that installation was not in ...
user avatar
1 vote

How to get the i2c ground signal to pass into the rasberry pi

Your question is unclear, and so is the wiring. One can only guess from the colours what is supposed to be what. All Gnd pins on the Pi are connected (and to the ground plane). The same is not true ...
user avatar
  • 53.5k

Only top scored, non community-wiki answers of a minimum length are eligible