View: 12952|Reply: 11

[Solved] 433 Mhz library for pi zero

[Copy link]

2

threads

12

posts

71

credits

Registered member

Rank: 2

credits
71
Published in 2018-3-23 03:53:21 | Show all floors |Read mode
Edited by bodtx at 2018-3-25 19:54

Hi 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)?

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2018-3-23 12:38:00 | Show all floors
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

2

threads

12

posts

71

credits

Registered member

Rank: 2

credits
71
 Author| Published in 2018-3-23 14:43:27 | Show all floors
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

2

threads

12

posts

71

credits

Registered member

Rank: 2

credits
71
 Author| Published in 2018-3-25 19:54:02 | Show all floors
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

2

threads

12

posts

71

credits

Registered member

Rank: 2

credits
71
 Author| Published in 2018-3-26 02:49:38 | Show all floors
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) NG
how do you drive H34A, SYN480R or H3V3E on your OrangePi?

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2018-3-26 15:31:40 | Show all floors
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

2

threads

12

posts

71

credits

Registered member

Rank: 2

credits
71
 Author| Published in 2018-3-27 15:46:05 | Show all floors
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?

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2018-3-28 06:12:49 | Show all floors
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.

  1. orangepi@orangepipc:~/433Utils/RPi_utils$ sudo ./RFSniffer
  2. Received 0x8000
  3. Received 0x8000
  4. Received 0x8000
  5. Received 0x8000
  6. Received 0x8000
  7. Received 0x8000
  8. Received 0x8000
  9. Received 0x8000
  10. Received 0x8000
  11. Received 0x8000
  12. Received 0x8000
  13. Received 0x8001
  14. Received 0x8001
  15. Received 0x8001
  16. Received 0x8001
  17. Received 0x8002
  18. Received 0x8002
  19. Received 0x8002
  20. Received 0x8002
  21. Received 0x8003
Copy code




2

threads

12

posts

71

credits

Registered member

Rank: 2

credits
71
 Author| Published in 2018-3-28 15:16:02 | Show all floors
oh great I will have a try
hereis a blog (in french) where someone explain iit

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2018-3-28 22:24:15 | Show all floors
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.



  1. $ git clone --recursive git://github.com/ninjablocks/433Utils.git
  2. $ cd 433Utils/RPi_utils
  3. $ make
Copy code

RFSniffer
int PIN = 2 // Data pin is PysPin#13

codesend
int PIN = 0 // Data pin is PysPin#11

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list