SparkFun Forums 

Where electronics enthusiasts find answers.

By jameslo
#205864
I want to connect an RFM69 breakout board to a MKR1000 as follows:
  • pin 8 - I/MOSI
  • pin 9 - C/SCK
  • pin 10 - O/MISO
  • pin 2 - S/NSS
  • pin 1 - 0/DIO0
If I were to use the Arduino library referenced in the Sparkfun hookup guide, would it simply be a matter of editing the defines RF69_IRQ_PIN and RF69_IRQ_NUM in RFM69.h, using the number returned by digitalPinToInterrupt(1) for the latter? Thanks!
By jameslo
#205866
I guess I should also ask the larger question since I'm new to robotics: would the RFM69 breakout be suitable for intra-robot communication? I'm building a robot with a head that can rotate 360 degrees using a stepper. I’m thinking of putting some simple actuators and/or sensors on the head (and a MKR Zero + LiPo), but the central microcontroller (a MKR1000) is on the body. Has anyone used wireless to connect two parts of a robot that are inconvenient to hardwire? Or is there a better solution to this kind of problem?
User avatar
By TS-Chris
#206097
Hi jameslo and thanks for your question.

We've not tried the RFM69 on a MKR1000 so I'm not sure it would work with our stock code and library. If it doesn't, you may need to do a little bit of modifying to get it working.

That being said, if you're only needing to get a few signals from the fixed portion of your robot to a rotating part, a lower tech solution like some slip rings might be a lot easier to work with. You wouldn't need to do any programming at all for those and the rotating porting of your robot could spin all day and the slip rings wouldn't care a bit.

Wireless would be fun but it's more complex to implement and the simpler solution usually is a lot more reliable.
By jameslo
#206108
Thanks for letting me know about those slip rings, but I'd have to rebuild my robot head in order to use one. Even if I hadn't directly driven the head turntable (the motor is right in the middle), the bearing I used is only 1/2" in diameter--not even wide enough for the slip ring's body. Everything's made of off-the-shelf Actobotics parts, so it would take a little extra planning and custom metal work to use these slip rings. But it's good to know they're available for the future.