That sketch never worked for me also so try this:
Check whether your power supply can give a constant 3.3V and a minimum of 0.5A(500mA)?
Then try these connections:
Then try your code again.
If it fails to work try a simpler library like the NRFLite library and
I actually never got that library and that sketch to work, but when I kept everything the same ...
Check these things first:
Is your power supply give a constant 3.3V and a minimum of 0.5A(500mA)?
Does your code work for others?
Are you on the right serial baud rate?
Is the path from the radio to the Arduino as short as possible?
Are your MISO and MOSI wires twined into each other?
If none of these things help then, please tell me what library you are ...
You can use the I2C interface.
// Wire Master Writer
// by Nicholas Zambetti <http://www.zambetti.com>
// Demonstrates use of the Wire library
// Writes data to an I2C/TWI slave device
// Refer to the "Wire Slave Receiver" example for use with this
// Created 29 March 2006
// This example code is in the public domain.
Pin 53 is just the default "slave select" pin. There is nothing special about it. You can use any other pin as slave select, as long as the libraries for your devices allow it (check the documentation and tutorials for those libraries).
You cannot transmit information with analogWrite() since it isn't really analogue (it's PWM), and analogue doesn'...
Ok, I did not solve the problem regarding pin 18-21, but I found an other solution: using PinChangeInterrupts and the PinChangeInterrupt libary
I did not change anything about my hardware setup, excep moving the wires from pin 18/19 to A8/A9. I've changed my code to use PinChangeInterrups for two of the fans, maybe I'll change all 4 fans.
Here is the new ...