Reef-Pi 433mhz outlet

oreo54

5000 Club Member
View Badges
Joined
Sep 18, 2017
Messages
6,874
Reaction score
4,081
Rating - 0%
0   0   0
Hmmm.. good luck..seems confusing.
https://raspberrypi.stackexchange.com/questions/4906/control-hardware-pwm-frequency
https://raspberrypi.stackexchange.com/questions/53854/driving-pwm-output-frequency

Not my forte. but seems upper limit is
The Raspberry Pi PWM clock has a base frequency of 19.2 MHz. This frequency, divided by the argument to pwmSetClock(), is the frequency at which the PWM counter is incremented. When the counter reaches a value equal to the specified range, it resets to zero. While the counter is less than the specified duty cycle, the output is high, otherwise the output is low.
 
Last edited:

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
I finally got my 433mhz outlets work with commands. Now my question is: is it possible to get them to work in reef-pi?
I bet you are talking about 443 MHz radio.

If that's the case, then it would be possible to create a driver in the 3.0 version of reef-pi to communicate with these modules if you would be comfortable coding in Go. Otherwise, you could possible to write a script in some other language, monitor a gpio that reef-pi controls, and trigger a command to control your outlet.

Are these DIY outlets, or some commercial product?
 
OP
OP
Misha

Misha

Active Member
View Badges
Joined
Mar 18, 2019
Messages
289
Reaction score
189
Location
the Netherlands
Rating - 0%
0   0   0
I bet you are talking about 443 MHz radio.

If that's the case, then it would be possible to create a driver in the 3.0 version of reef-pi to communicate with these modules if you would be comfortable coding in Go. Otherwise, you could possible to write a script in some other language, monitor a gpio that reef-pi controls, and trigger a command to control your outlet.

Are these DIY outlets, or some commercial product?

Commercial product:
fa4f80ad6e8ddbce381e4ef4418e15c8.jpg


And a transmitter like this:
https://www.amazon.com/433Mhz-Wireless-Transmitter-Receiver-Raspberry/dp/B07P6QLD1G
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
That looks interesting. It will take some custom coding. What kind of coding experience do you have? Python seems to be easier for many people, but we could fold it into reef-pi directly if you can create it as a driver in GO.
 
OP
OP
Misha

Misha

Active Member
View Badges
Joined
Mar 18, 2019
Messages
289
Reaction score
189
Location
the Netherlands
Rating - 0%
0   0   0
That looks interesting. It will take some custom coding. What kind of coding experience do you have? Python seems to be easier for many people, but we could fold it into reef-pi directly if you can create it as a driver in GO.

Well I have little experience in Python, maybe if I get into it it will get somewhere. Any volunteers?
 

SDchris

Active Member
View Badges
Joined
Mar 3, 2015
Messages
198
Reaction score
225
Location
Sydney
Rating - 0%
0   0   0
In python it's fairly straight forward.
Use Piscope, a free software oscilloscope based on pigpio, to capture the transmitted signals.
Then also using pigpio library, generate the wave forms. There are a few examples on the web.

They are a little bit more expensive, but I much prefer the wifi outlets. At least you get feed back on the on/off status, and less prone to interference.

Chris
 
OP
OP
Misha

Misha

Active Member
View Badges
Joined
Mar 18, 2019
Messages
289
Reaction score
189
Location
the Netherlands
Rating - 0%
0   0   0
In python it's fairly straight forward.
Use Piscope, a free software oscilloscope based on pigpio, to capture the transmitted signals.
Then also using pigpio library, generate the wave forms. There are a few examples on the web.

They are a little bit more expensive, but I much prefer the wifi outlets. At least you get feed back on the on/off status, and less prone to interference.

Chris

I tried pigpio and 433utils I had to much static.

Putting the outlets on learn mode did it for me. Each outlet has his own code (example: sudo ./kaku 1 A on or sudo ./kaku 2 A on)
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
This looks very promising. I am planning to integrate some type of smart outlet with reef-pi, and this information will be super helpful. Thank you for sharing
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 34 28.1%
  • 100% dry rock + 100% live sand

    Votes: 41 33.9%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 27 22.3%
  • 75% live rock, 25% live sand

    Votes: 11 9.1%
  • 25% live rock, 75% live sand

    Votes: 8 6.6%
Back
Top