Pages: [1]   Go Down
Author Topic: arduino mega + nrf24L01+ problem with digital pins ?  (Read 1188 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 22
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I've been prototyping several musical devices, reading sensors on analog inputs and digital inputs and sending Midi CC via the serial Tx.

Everything worked fine, until I switched to wireless (2.4Ghz) communication, with an arduino Mega reading my sensors and sending data (via a NRF24L01+ chip with an antenna, that thing: http://hackspark.fr/fr/nrf24l01-with-pa-and-lna-2-4ghz-rf-module-long-distance-antenna.html) to an arduino Uno which acts as a receptor and translates my data in Midi.
The RF communication works quite fine, EXCEPT that I couldn't read the digital pins of my arduino mega.


Is there a trick with the Digital Pin numbers of the mega ?

Is it the MIRF library (which I use to operate the RF communication) or the SPI library messing up the use of digital pins ?

My code is attached.

I found a workaround by connecting my switches to the available analog inputs, but I'd like to use the digital ones instead.

Weird thing is that everything was working ok before switching to RF communication...

any tip is welcome !

* Machine_coudre_2_RF_transmit_FINAL.ino (4.5 KB - downloaded 16 times.)
Logged

Pages: [1]   Go Up
Jump to: