Arduino Uno Multiple SPI connections, BLE Nano


hello, have ardunio uno , and attempting interface 2 other devices through spi. using cam 204 chip through spi successfully, , trying add ble functionality ble nano.

my question is, multiple spi connections possible arduino?

if not, should switch adding shield such ble shield, or entirely new microcontroller such nrf51822? each of seem run arduino written programs 

chip specs:
http://redbearlab.com/blenano/
http://redbearlab.com/bleshield/
http://redbearlab.com/redbearlab-nrf51822/
cam204 datasheet: http://cambridgeic.com/images/downloads/033-0003_0010_%28cam204%29.pdf

i have searched forums , elsewhere, have yet find answer topic. thank you.

yes, multiple spi possible. that's why spi useful.

each spi device needs use 1 of arduino's outputs "chip select" (cs)  knows when should listen spi data wires. default cs pin 10 can use other pin - select 1 of digital pins 2-9. arduino code needs set cs pin device wants talk before starting spi data , un-set when it's finished device.

the reason why pin 10 special that's used if trying make arduino slave (listener) on spi bus. when arduino master, pin ok.


Arduino Forum > Using Arduino > Project Guidance > Arduino Uno Multiple SPI connections, BLE Nano


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code