• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Communication between Raspberry and Arduino
#1
Hi to all. I'm new in this forum. I'm Italian and I speak English not good.
Now I've connect Raspberry to Arduino by 433 RF modules with library RCSwitch. It work good but the use of CPU is very high.
So I tried in Internet and I found this solution but I didn't understand if I can use it on Arduino.
Is possible to communicate Raspberry and Arduino? If yes, could you help me?
Thank you and sorry for my English
 
Reply
#2
Why do you want to use the Arduino at the first place?
 
Reply
#3
- I know Arduino program.
- I have the hardware
- Is very cheap
- I have to do application for different use: control of heater, control electrical current, temperature and for me Arduino is very versatile
 
Reply
#4
I've written a arduino library for the receiving of 433mhz recently: https://github.com/pimatic/RFControl

Maybe it is usefull for you. You can read about the data formats and the future processing pipeline here: https://github.com/pimatic/rfcontroljs

There is no pilight integration and I probably will not write one, but it should be not hard (https://github.com/pilight/pilight/tree/...s/hardware).
 
Reply
#5
Thank you sweetpi for your help, but I'm sorry, I don't understand.
I can use the library RFControl on arduino to send and receive signal but what should I use on Raspberry to "speak" with arduino.
In rfcontroljs documentation you write: "The arduino is connect via serial bus to the processing computer (for example a raspberry pi)" but my goal is to connect arduino and raspberry wireless by 433RF signal...
 
Reply
#6
So that would be writing your own protocol for this right?
 
Reply
#7
(07-31-2014, 11:12 AM)pessie Wrote: In rfcontroljs documentation you write: "The arduino is connect via serial bus to the processing computer (for example a raspberry pi)" but my goal is to connect arduino and raspberry wireless by 433RF signal...

Then I got you wrong. But, you could use the library to send raw codes to/from pilight (note that sending is not implemented yet) or develop a protocol on top of the raw signals (wire decoding) for pilight. It depends on what infromation / control commands you want to send wireless.
 
Reply
#8
I tried to understand if exist a library to use on Arduino for "speak" with a Raspberry with pilight
I try to explain what I'm doing now with RCSwitch:
- I install RCSwitch on Raspberry
- I use RCSwitch library on Arduino
so when I send a value fron raspberry to arduino, arduino receive it and the same in the opposite.

In a new configuration I could have pilight on Raspberry, but I don't know what can I use on Arduino.

Sorry, but is very difficult for me to let you know what I want in English...
 
Reply
#9
Ok, I think now I understood you.

You can probably keep RCSwitch on the arduino, because pilight can send the same codes as RCSwitch. But switching from RCSwitch to pilight will probably don't solve your problem with the high cpu usage (@curlymoo: correct me, if I'm wrong).

What you really need is a prefilter (http://forum.pilight.org/Thread-Band-pas...ew-version). I think it should work with RCSwitch, too (but I didn't test it).
 
Reply
#10
What is the CPU usage actually?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  ESP8266 with 433 MhZ Transceiver/Receiver as Remote for Raspberry Tueftler1983 2 1,577 05-12-2019, 06:31 PM
Last Post: bitboy
  pilight, Raspberry Pi and sensors for sale kid2000 0 1,533 04-07-2017, 05:04 PM
Last Post: kid2000
  Arduino nano with CC1101 ? Bootscreen 5 3,296 11-04-2016, 03:38 PM
Last Post: curlymo
  Arduino Dimmer Protocol pascal1404 4 2,937 09-17-2015, 10:07 AM
Last Post: pascal1404
  New Raspberry Hardware Alex 1 1,681 06-21-2015, 05:06 PM
Last Post: pilino1234
  Arduino sensor jpoilux 1 2,802 07-02-2014, 07:21 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)