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
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
@ Pansen It work now!
When connect the radio then the 4e led and stepper is working.
Thanks for the help.
@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
@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
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
Suresh Mali,
Thx for the ersponse i give it a try.
D9 is that d100 perheps.
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
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
@ Pansen It work now!
When connect the radio then the 4e led and stepper is working.
Thanks for the help.
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.
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.
@ 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.