bodtx Posted March 23, 2018 Posted March 23, 2018 Hi I would like to communicate whith an arduino(as receiver) with RF 433. On a first thought I wanted to use rc-switch lib, do you know if there is a way to use it with the PI zero(transmitter) once I have installed the wiring pi zero? if not what would be my best choice as library for OPIZ (and arduino as receiver)? As MCU are better choices to drive hardware part, would it be a good idea to interface OPIZ with a ATMEGA328 as a SPI slave which one would drive the 433 RF emitter with the rc-switch lib above? This would be the overkill situation as I'm new to SPI (and OPIZ). thx
martinayotte Posted March 23, 2018 Posted March 23, 2018 Link between an Arduino and OPi doesn't need to be SPI based, plain serial could could be used by establishing a plain text protocol over /dev/ttyS1 ...
bodtx Posted March 23, 2018 Author Posted March 23, 2018 well my explanation was not enough exact I mean I do not want to plug an arduino to the OPIZ usb (which is what you are talking with /dev/ttyS1), more likely I would like to drive an Atmega328p alone or ideally an attiny85. I assume the easiest way is with SPI
bodtx Posted March 23, 2018 Author Posted March 23, 2018 ho ok reading futher I've seen that I could used ATmega328P serial exposed pin (#0 & #1) as done here * https://oscarliang.com/raspberry-pi-and-arduino-connected-serial-gpio/ * http://thezanshow.com/electronics-tutorials/raspberry-pi/tutorial-37 let see if I can use the rx/tx off the OPIZ
bodtx Posted March 27, 2018 Author Posted March 27, 2018 Well it seems that the ninjablocks lib works with the OPI, here is a demo. There was an interrupt problem mentionned in an old archive, maybe it is solved, I will test that as soon as I get my board
Recommended Posts