[Solved] 433 Mhz library for pi zero
Edited by bodtx at 2018-3-25 19:54Hi I would like to communicate whith an arduino with RF 433 transmiters.
On a first thought I wanted to use rc-switch lib, do you know if it is compatible with the PI zero once I have installed the wiring pi zero?
if not what would be my best choice as library for OPIZ (and arduino)?
Edited by nopnop2002 at 2018-3-28 06:31
When it's RPI, this can be used.
https://github.com/ninjablocks/433Utils/tree/master/RPi_utils
EDIT:I used 433Mhz RF module.
Arduino H34A(433MHz)->OrangePi H3V4F(433Mhz) OK
Arduino H34A(433Mhz)->OrangePi SYN480R(433Mhz) NG
Arduino H34A(433MHz)->Arduino H3V4F(433Mhz) OK
Arduino H34A(433Mhz)->Arduino SYN480R(433Mhz) OK
OrangePi H34A(433Mhz)->Arduino H3V4F(433Mhz) OK
OrangePi H34A(433Mhz)->Arduino SYN480R(433Mhz) OK
OrangePi H34A(433Mhz)->OrangePi H3V4F(433Mhz) OK
OrangePi H34A(433Mhz)->OrangePi SYN480R(433Mhz)NG
EDIT2:315Mhz RF module DON'T work.
Arduino H34A(315MHz)->OrangePi H3V3E(315Mhz) NG
Arduino H34A(315Mhz)->OrangePi SYN480R(315Mhz) NG
Arduino H34A(315MHz)->Arduino H3V3E(315Mhz) OK
Arduino H34A(315Mhz)->Arduino SYN480R(315Mhz) OK
OrangePi H34A(315Mhz)->Arduino H3V3E(315Mhz) OK
OrangePi H34A(315Mhz)->Arduino SYN480R(315Mhz) OK
OrangePi H34A(315Mhz)->OrangePi H3V3E(315Mhz) NG
OrangePi H34A(315Mhz)->OrangePi SYN480R(315Mhz)NG
indeed, I've seen that but any idea on a compatible one with OPIZ?
I've seen that but it is not really a lib and I'm not good at C Finally as finding a lib that work on the OPIZ like I want is complicated.
I will drive my emitter with a MCU (ie attiny85), I know quite well how to do this.
Then I will drive the MCU with the OPIZ with a basic serial communication
here is the tips to enable serial on OPIZ EDIT:I used 315Mhz RF module.
Arduino H34A(315MHz)->OrangePi H3V3E(315Mhz) OK
Arduino H34A(315Mhz)->OrangePi SYN480R(315Mhz) NG
Arduino H34A(315MHz)->Arduino H3V3E(315Mhz) OK
Arduino H34A(315Mhz)->Arduino SYN480R(315Mhz) OK
OrangePi H34A(315Mhz)->Arduino H3V3E(315Mhz) OK
OrangePi H34A(315Mhz)->Arduino SYN480R(315Mhz) OK
OrangePi H34A(315Mhz)->OrangePi H3V3E(315Mhz) OK
OrangePi H34A(315Mhz)->OrangePi SYN480R(315Mhz) NGhow do you drive H34A, SYN480R or H3V3E on your OrangePi?
Edited by nopnop2002 at 2018-3-26 16:30
bodtx replied at 2018-3-26 02:49
how do you drive H34A, SYN480R or H3V3E on your OrangePi?
https://github.com/ninjablocks/433Utils/tree/master/RPi_utils
int PIN = 2; PysPin#13
int PIN = 0; PysPin#11
When it's RPI, this can be used.
https://github.com/ninjablocks/433Utils/tree/master/RPi_utils
It doesn't work in OPI.@nopnop2002 I do not understand, you've said that lib did not work on OPI?
Edited by nopnop2002 at 2018-3-28 06:43
bodtx replied at 2018-3-27 15:46
@nopnop2002 I do not understand, you've said that lib did not work on OPI?
No
It work on OPI.
I'm sorry to make you be confused.
The distance by which communication is possible is about 26 ft.
orangepi@orangepipc:~/433Utils/RPi_utils$ sudo ./RFSniffer
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8000
Received 0x8001
Received 0x8001
Received 0x8001
Received 0x8001
Received 0x8002
Received 0x8002
Received 0x8002
Received 0x8002
Received 0x8003
oh great I will have a try
hereis a blog (in french) where someone explain iit Edited by nopnop2002 at 2018-4-1 10:38
bodtx replied at 2018-3-28 15:16
oh great I will have a try
hereis a blog (in french) where someone explain iit
https://rpiapps.blogspot.jp/2018 ... otique-avec-un.html
The case of OPI is just below.
$ git clone --recursive git://github.com/ninjablocks/433Utils.git
$ cd 433Utils/RPi_utils
$ make
RFSniffer
int PIN = 2 // Data pin is PysPin#13
codesend
int PIN = 0 // Data pin is PysPin#11
page:
[1]
2