I found out when I used GPIO Pins which are also SPI Pins (GPIO8,9,10,11) and clean them up. I can not reuse this Pins for an SPI connection.
I have to restart the Raspberry Pi first to use SPI again.
Do you have an idea how I can reset this Pins for SPI usage without restart?
Regards
use the command lsmod to get the name of your spi module and simply remove it as follows (assuming spi_bcm2708 is module name),
rmmod spi_bcm2708
then reload it as follows,
modprobe spi_bcm2708
try with sudo if doesn't work.
Related
Raspberry Pi model: 3B
Running Raspbian OS
Recently I bought a Hyperpixel 2.1 round, which uses all of the GPIO ports. Whenever I plug the Raspberry Pi into my network switch, it is unable to connect to the network with the Hyperpixel attached. However, when I removed the Hyperpixel, the Ethernet capability came back.
I'm fairly sure it's a software issue given that there shouldn't be any problems with running all gpio pins in addition to Ethernet.
Is this a quirk with the Raspberry Pi that it doesn't like having all GPIO ports occupied as well as Ethernet? And how would I potentially go about fixing this, perhaps through command line or in the boot config?
I am looking to add a real-time clock to my Raspberry Pi using i2c, but I want to use i2c-0 (GPIO 0 and GPIO 1) rather than i2c-1 (GPIO 2 and GPIO 3). The real-time clock gets detected by the Raspberry Pi, but when I add
dtoverlay=i2c-rtc,ds1307
to /boot/config.txt, it doesn’t say ‘UU’ (in use) instead of the address (68) when using
i2cdetect -y 0
Is there any way of adding something to the config.txt file in order to target the i2c-0 instead of the i2c-1?
I used the Adafruit tutorial in order to add it, but obviously only worked when connecting to the i2c-1 and not i2c-0.
I have a situation where I have led-gpio driver, which drives the GPIO line, and fec driver for ethernet.
On ethernet fec probe call, I need to set GPIOs and reset GPIO lines using led-gpios. Is this possible? Has any one came across?
I need a multiple byte read and write to GPIO driver which communicates via SPI, that should sending via fec driver.
I am trying to connect a Temp and Humi probe Adafruit AM2315 and it seams that the only thing I need to do is to get i2c running on my Pi2. I can't seams to find the proper instructions or command line to get it config and running ? Can someone help ?
did you connect it directly to the RPi2 I2C pins, or did you use the 10KOhm resistors too..?
It seems it needs two rapid connections to wake up first, before starting to send commands, see here:
http://raspberrypihobbyist.blogspot.it/2015/02/using-am2315-temperaturehumidity-sensor.html
David
I want to interface raspberrp pi and Mbed microcontroller through I2c bus. Both operate at 3.3v, I have connected Rpi SCL ----> mbed SCL, RPI SDA------> mbed SDA, RPI gnd -----> mbed gnd. After connecting all these things I run sudo i2cdetect -y 1 command its does not shows any more address connected to Rpi . Both the modules have internal pull up resistor
...
I²C is a master-slave protocol. That means one devices takes over the role of the master, and one (or multiple) devices connected to the I²C bus act as an I²C device.
In your case it seems like the raspberry pi is working as the master. To put the mbed device into I²C slave mode you have to instantiate one I2CSlave class.
Documentation and a tiny example is on the official site:
https://developer.mbed.org/users/mbed_official/code/mbed/docs/tip/classmbed_1_1I2CSlave.html