@xydix
Hello @xydix do you have the curtain working with the sketch above?
I don't get the button working on pin 7.
Witch button library do you use?
I have the library witch is in the sketch, i only must change Bbutton.h in LC_Button.h.
Is that maby my problem.
I hope u can help me.
Greatz Ton
Posts made by TON RIJNAARD
-
RE: Curtain Control Node.
-
RE: Curtain Control Node
Suresh,
How do i programm the chip.
I have try with arduino but don't now witch board i must select.
I have try it with arduin uno but i get only errors.
When everything is going okee i have load a bootloader in the atmega chip.
I use the programm connector on your board (6 pins streath) with a usb to 6 pins.Ton Rijnaard
-
RE: Curtain Control Node
Suresh Mali,
Thx for the ersponse i give it a try.
D9 is that d100 perheps. -
RE: Curtain Control Node
Suresh Mali,
I have let make the board and now i try to complete the curtain
Can you help me where i connect the nss from the radio. i use the RFM 69, 433 mhz
How do i get te ino file in the atmega with the prog connector
You give me some answers in early question.Greatsz Ton
-
RE: Curtain Control Node
Goodmorning,
I try to load the sch file with egle but i get a error, can you help me.
I use eagle 5.11 proffecial.
In the picture of the schematic i don't see the ATSHA204-TSU and 25LC080SN can you help me with this.Greatz Ton Rijnaard
-
RE: Stepper wont work with Mysensors
@ Pansen It work now!
When connect the radio then the 4e led and stepper is working.
Thanks for the help. -
RE: Stepper wont work with Mysensors
Here the image and the code that i wil use it a start. I am new to programm arduino.
Schematic that i use this works without Mysensors.h (see the sketch)
http://engyfun.blogspot.nl/2015/02/here-is-source-code-for-our-28byj48.html
// =========================== Zet de serielle monitor aan ====================================== #define MY_DEBUG // **************************** Einde Debug ***************************************************** // =========================== Radio instelling RFM 69 =========================================== //#define MY_RADIO_NRF24 #define MY_RADIO_RFM69 //=========================== Node en Child infomatie ============================================= #define MY_NODE_ID 17 #define CHILD_ID 2 //************************************************************************************************** //***************************** Einde Radio setup *************************************************** #include <SPI.h> //#include <MySensors.h> #include <AccelStepper.h> #define HALFSTEP 8 // ============================ Motor pin definitions ================================================== #define motorPin1 4 // IN1 on the ULN2003 driver 1 #define motorPin2 5 // IN2 on the ULN2003 driver 1 #define motorPin3 6 // IN3 on the ULN2003 driver 1 #define motorPin4 7 // IN4 on the ULN2003 driver 1 int CHILD_CURTAIN_ID =4; // Initialize with pin sequence IN1-IN3-IN2-IN4 for using the AccelStepper with 28BYJ-48 AccelStepper stepper1(HALFSTEP, motorPin1, motorPin3, motorPin2, motorPin4); //================================================================================================== MyMessage msg_S_COVER_U(CHILD_CURTAIN_ID, V_UP); MyMessage msg_S_COVER_D(CHILD_CURTAIN_ID, V_DOWN); MyMessage msg_S_COVER_S(CHILD_CURTAIN_ID, V_STOP); MyMessage msg(CHILD_CURTAIN_ID,V_UP); //************************************************************************************************* // ============================== Begin Setup =========================================================== void setup() { stepper1.setMaxSpeed(18000.0); stepper1.setAcceleration(100.0); stepper1.setSpeed(400); stepper1.moveTo(20000); } //****************************----- (Einde setup )---******************************************************** // ==============================---- Begin Loop ----======================================================== void loop() { //Change direction when the stepper reaches the target position if (stepper1.distanceToGo() == 0) { stepper1.moveTo(-stepper1.currentPosition()); } stepper1.run(); } // **************************** Eind Loop ==================================================================```) Sorry i can get the code not in a nice black box.
-
Stepper wont work with Mysensors
Hello,
I try to run a stepper 28byj-48 with driver in mysensors. As soon as I Mysensors.h activate the stepper motor will not run. Can anyone help me what I do wrong. I use Int 4,5,6,7, above. Also at 3,4,5,6 not work I put too // for Mysensors the engine is running normally. Also burn without Mysensors all 4 LEDs. With Mysensors burn only 3 LEDs.
-
RE: 💬 Door, Window and Push-button Sensor
@ Svante
Thanks for the reply but is is working well with one reed switch. So that is not the problem I want on the mini/pro a second and thirt switch.
-
RE: 💬 Door, Window and Push-button Sensor
@hek,
Thanks for the reply.
What are you trying to accomplish?
I want to try 3 reed/door contacts on one mini-pro on pin 3,4 and 5What is working?
One reed/door contact is workingWhat is not working?
I don't no how i must make a second reed/door contact in the sketch (door/window push button)
I am new to programming arduino and don't undertsand how to do that, ik look for a hint how i can implement a second reed/door switch in the sketchWhat did you try yourself before posting?
I look many sketches on internet and try to copy a copple of line in the working sketch but i don't get a second reed/switch in domoticz. I am trying this a hole day (i am with pension).What is the expected result? a second, thirth reed/sensor in domoticz i see here only the first sensor.
Logs from the sensor/gateway/controller.
The log for the first reed/door switch i see and it is working in domoticz, that is not the problem.Sorry for the bad English.
-
RE: 💬 Door, Window and Push-button Sensor
Goodevening,
I am new to mysensors (newby) i wil make 3 sensors on my mini pro can some one help me with the sketch.
I am working a hole day but i can't get it writh help is very use vol.
One switch (reed contact) is working. -
RE: No RFM69 - No error
Hello,
I have the sam problem when i use te mysensors 2.1.1 i mus remove HW from the sketch.
If i #define RFM 69HW place on the sketch i get the error that the RFM 69HW
MySensors.h:328:2: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.Greatz Ton
-
RE: Stepper don't work with Mysensors library
@mfalkvidd Tanks for the help i give it atry. I am new to arduino so maby i need more help. I let you now when it is nessesary.
Greatz Ton
-
Stepper don't work with Mysensors library
Mary Cristmas to all
I try to make a sketch with a A4988 driver. When i activate mysensor library the stepper dont work not good any more.
The stepper is not turning well.
When i remark the my sensor library the everything is working okee.
Can some one help me and give me a good advise.
The sketch is a beginning and not ready yet.
/* Gordijn aansturing
*- Benodigd 1 arduino pro/mini
- 1 stepper motor
- 1 stepper driver A4988
- 2 switch (begin en eind)
*/
// =========================== Zet de serielle monitor aan ========================
#define MY_DEBUG
// ********************************************************************************// =========================== Radio instelling RFM 69 ============================
//#define MY_RADIO_NRF24
#define MY_RADIO_RFM69
#define MY_RFM69_FREUENCY RF69_433MHZ
#define MY_RFM_PA_LEVEL RF69PA_LOW
#define MY_ISRFM69HW
//********************************************************************************//=========================== Node en Child infomatie ============================
#define MY_NODE_ID 13
#define CHILD_ID 20
//********************************************************************************
// defines pins numbers
int stepPin = 8;
int dirPin = 9;
// ========================= Libraries ===========================================
#include <SPI.h>
//#include <MySensors.h>
#include <Wire.h>
// *******************************************************************************void setup() {
// Sets the two pins as Outputs
pinMode(stepPin,OUTPUT);
pinMode(dirPin,OUTPUT);
}
void loop() {
digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
// Makes 200 pulses for making one full cycle rotation
for(int x = 0; x < 200; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(500);
digitalWrite(stepPin,LOW);
delayMicroseconds(500);
}
delay(1000); // One second delaydigitalWrite(dirPin,LOW); //Changes the rotations direction
// Makes 400 pulses for making two full cycle rotation
for(int x = 0; x < 400; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(500);
digitalWrite(stepPin,LOW);
delayMicroseconds(500);
}
delay(1000);
}Greatz Ton
-
RE: Irrigation Controller (up to 16 valves with Shift Registers)
Hello,
Can some one help me with a working sketch for Domoticz.
I have it a little working, only Domoticz give not the childs.
I get from the gate way the time and then is searching for the name from the zone.
If some one can give me a working sketch than i can see what is wrong.Thanks in advance Ton
-
RE: Office plant monitoring
Hello,
Is there a sketch for mysensors 2.0
I get error on the Mysensor gw;Ton
-
RE: Nodemcu + RFM69. Level converter needed?
@gmccarthy i have insert this line in the gateway then was it working for me
#define MY_RFM69_PA_LEVEL RF69_PA_LOW
-
RE: RFM69HW make a chance in Myconfig.h
Hello
Thanks for all the help i have it working now!!
The problem was that in the GW this line was not there.
#define MY_RFM69_PA_LEVEL RF69_PA_LOW
here was standing, i have not chance that line
#define MY_RF24_PA_LEVEL RF24_PA_LOW
ton
-
RE: RFM69HW make a chance in Myconfig.h
Thanks for your help.
Look ad my piece of sketch that is be enabled or do i see somting about the head.Ton
-
RE: RFM69HW make a chance in Myconfig.h
Hello,
I have chance the sketch like under:
// Enable and select radio type attached
// #define MY_RADIO_NRF24
#define MY_RADIO_RFM69HW_FREQUENCY RF69_433MHZ#include <SPI.h>
#include <MySensors.h>unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds)
#define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your motion sensor. (Only 2 and 3 generates interrupt!)
#define CHILD_ID 1 // Id of the sensor childNow i can not compile the sketch i get this error:
In file included from C:\Users\tonri\AppData\Local\Temp\arduino_modified_sketch_877909\MotionSensor.ino:38:0:
C:\Users\tonri\Documents\Arduino\libraries\arduino_572221/MySensors.h:287:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
#error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
^
exit status 1
Fout bij het compileren van board Arduino Pro or Pro MiniWhen i get the // away #define MY_RADIO_NRF24 then ik can compile wth out error
Now give the monitor that no radio:
Starting sensor (RNNNA-, 2.0.0)
TSM:INIT
!TSM:RADIO:FAIL
!TSM:FAILURE
TSM:PDT
TSM:INIT
!TSM:RADIO:FAIL
!TSM:FAILURE
TSM:PDTI have also change the Myconfig.h but no chance
Ton
-
RE: RFM69HW make a chance in Myconfig.h
Hello,
Thanks for the fast re[ly but with the RF69_433MHZ it is not work.
I get from the GW the next information.0;255;3;0;9;Starting gateway (RRNGA-, 2.0.0)
0;255;3;0;9;TSM:INIT
0;255;3;0;9;TSM:RADIO:OK
0;255;3;0;9;TSM:GW MODE
0;255;3;0;9;TSM:READY
0;255;3;0;14;Gateway startup complete.
0;255;0;0;18;2.0.0
0;255;3;0;9;No registration required
0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
0;255;3;0;9;TSP:SANCHK:OKTis information from the node:
Starting sensor (RRNNA-, 2.0.0)
TSM:INIT
TSM:RADIO:OK
TSP:ASSIGNID:OK (ID=1)
TSM:FPAR
TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:FAIL
!TSM:FAILURE
TSM:PDTThe GW is Arduino uno with RFM69HW + 47 uf capacitor
The Node is Mini pro with RFM69HW + 47 uf cacitor and 3.3 volt regulator.
Can some one tell me of the information from the GW is correct.
And what there is fals with the node that the !TSM:FPAR:FAIL means.Ton Rijnaard
-
RFM69HW make a chance in Myconfig.h
Hello,
I am trying to make a gateway and sensor with RFM 69HW.
Stil now it is not working and i don't no what it is.
I see in the MyConfig bij the RFM69HW a remark // standing and i use 433 Mhz and in the Myconfig.h is 862 Mhz.
Can some one tell mee that i have to make chance in his Myconfig.h file.2e questing can i test the gateway?
I see the gateway in domoticz is it than working.Ton Rijnaard
-
RE: 💬 MySensor Dioder (Ikea)
Hello,
Very nice project!
Is it possible to use in DOMOTICZ?Ton
-
RE: Type mistake
Hello,
It is on this page
https://www.mysensors.org/build/debugBuild and upload the sketch with the above debug flag enabled in MyConfig.h.
Keep the sensor connected to your computer and enable the Serial Monitor in the Arduino IDE. Tools>Serial Monitor.
Set the baud-rate to 115200. -
Type mistake
Hello,
It is no bug but a type mistake
select the correct Port from the Tools menu then open the Serial Monitor to view the debug messages. Note: the default Baud Rate for MySensors is 112500
This to your informationGreatz Ton
-
RE: My first motion build give error
Thanks all for the information i wait that i have my nano and look what happens then.
-
RE: My first motion build give error
Hello, thanks for the very fast reply. The sketch is from the motion sensor.
But i have not the gateway (i am waiting on the nano board).
Must i chance the ID nr in the sketch?Greatz Ton
-
My first motion build give error
I am a newby and this is my first build i get this error from the motion sensor.
I use a arduino uno to try this project.
Can some one help me what is wron
Starting sensor (RRNNA-, 2.0.0)
TSM:INIT
TSM:RADIO:OK
!TSP:ASSIGNID:FAIL (ID=0)
!TSM:FAILURE
TSM:PDT
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:FAIL
!TSM:FAILURE
TSM:PDT -
RE: 433mhz transmitter
Can some one give me a electric schematic for this sketch , or a place where i can find it.