How to use SPI for multiple devices


i want make 4 humidity/temperature sensors run on batteries. use mysensors project , display values 1 nokia 5510 screen. use 3.3v pro minis.

for project need connect 3 spi devices. bme280 module, nokia screen, , nrf24l01+ radio. don't have experience spi far know should able share pin 11, 12 , between 13 of them, screen won't use 12. , why screen no have ss pin? fact seems name these things differently adds confusion.

the problem have can find usable libaries stuf have no idea how combine it. sketches find display bme280 output on nokia screen use i2c sensor, not option me, , not solution, since need correct radio. don't think can use adafruit libaries because seem assume device libary made think connected using spi (correct me if wrong).

i have c++ knowledge, lack routine. started knowing might not easy connecting modules , pasting code. @ moment don't know correct route is.

each device on spi bus must have ss "slave select" or cs "chip select" input.

you need each part of project working satisfaction before can start thinking putting several parts together.


Arduino Forum > Using Arduino > Project Guidance > How to use SPI for multiple devices


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor