PhilHornby
Senior Member
A 'library' (implemented as a ".basinc" #include file to allow control of Energenie (legacy) 433MHz Remote Mains Sockets.
(.basinc isn't allowed as an extension for attached files so you'll have to rename Energenie Radio.bas -> Energenie Radio.basinc.)
Also included is a test program that shows how to use it.
Minimally:
then use the Energenie_Socket_Control() macro to send the desired code. (For which symbols are defined in the #include file). The 20bit 'Controller Id' has to be set in the #include file. If the socket is put it into 'learn' mode, you can use your own code and the socket will learn it, on receipt of the 1st "ON" command.
This code came about as a result of discussions in this thread: http://www.picaxeforum.co.uk/showthread.php?28644-Picaxe-instruction-timing-repeatability
Acknowledgements to: hippy , inglewoodpete and Rick100 for their assistance.
Minimum circuit in next post - can only have 2 attachments per post
(.basinc isn't allowed as an extension for attached files so you'll have to rename Energenie Radio.bas -> Energenie Radio.basinc.)
Also included is a test program that shows how to use it.
Minimally:
Code:
Symbol EnableRF = B.4 ;for example. Pin connected to 433MHz transmitter VCC connection
Symbol RFDataPin = B.5;Pin connected to 433MHz transmitter DATA connection
symbol RFRAMAddress = 103 ; Start address of a 24byte buffer
#Include "Energenie Radio.basinc"
setfreq M32
dirsb = %00110000
This code came about as a result of discussions in this thread: http://www.picaxeforum.co.uk/showthread.php?28644-Picaxe-instruction-timing-repeatability
Acknowledgements to: hippy , inglewoodpete and Rick100 for their assistance.
Minimum circuit in next post - can only have 2 attachments per post
Attachments
-
1.2 KB Views: 16
-
8.3 KB Views: 21
Last edited: