i have a problem with a shild i baught for arduino. it has a socket on it for the NRF24L01 and they for some reason use the SPI pins to drive the L298 and use pins 2-8 for the NRF24L01 so if i want to use wireless with my project and the shield i have to drive the NRF24L01 on the 2-8 IO pins. I have no idea where to start.
yes i baught it. and the socket in the one next to the BT/Xbee socket the 8 pin socket.
at the bottom of the page it has a pdf with the pinouts etc.. i still dont know why they did not link it to the SPI and the L298 to the PWM/IO pins LOL but i have it now so i figured i will have to try.. ( I can drive the board externaly with wires to the headers on top of the shild but i wanted to take a stab at learing how to use it as a shild).
There is a SoftSPI library, if I remember correctly, that lets you do SPI on any pins.
I agree, though, that a little thought should have gone into the pin mapping on that shield. Connecting the NRF24L01 SPI pins to the correct Arduino SPI pins would have made more sense.
This might help - it's not a library but does go into changing the SPI pins using software...
"By manipulating the digital outputs of the Arduino directly using code (as opposed to calling a slightly more macro function within the Arduino SPI library), it is possible to use any pins as MOSI, MISO, SCK lines"
Wow thanks. and it even compiles in the arduino IDE. now the question is can it be made to work with MiRF. so the plan so far i guess. take the SPI by Hand code and make it into a lib what works in conjunction with the base SPI.h lib from arduino?. I have absolutly no idea where to begin with this.
BTW i have verry little programing experiance as can be seen by my thred with sending joystick data over NRF24L01's for R/C controll. http://arduino.cc/forum/index.php/topic,74385.0.html
i have the fealing this is going to take a wile LOL but that's good i should learn alot on this little adventure.
I would send the shield back TBH, you're looking at a huge amount of work for something that should work out of the box.
You can pick a L298 for <$2 and make a shield yourself with the correct pin mappings. At the least send the manufacturer an email informing them that their shield is missing some major functionality!