Did you try the code which kept the buzzer on for 3s etrc? What was the result?
The code for the buzzer is in Setup() which gives an indication from power on to the point where the focuser is baically ready to respond to commands (when Setup() ends)
// Setup
void setup() {
// turn ON the Buzzer - provide power ON beep
analogWrite( Buzzer, 1023 );
the above turns on the buzzer, So the buzzer stays on all the time until the last line of the setup() function. Normally all that code in setup() will take a second or two, so the buzzer remains on
till Setup() finishes
analogWrite( Buzzer, 0);
}
if you want to make it a little longer you might change the last lines of Setup() to
delay(1000);
analogWrite( Buzzer, 0);
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
my buzzer use 80mA, it's a lot for the nano i think. But when i wire my buzzer directly on a 9V accu or 5V USB it don't bip so i'll don't put it in the focuser.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thank's a lot Rob [EDIT] don't have a ED80CF T mount ? i pay via paypal lol !!!
I've try to change my sketch because i'm using v1.51_DRV8825_M 15112015.
I test v2.20_DRV8825_M 21032016 but it don't work.
In the win app, parameters are retreived from controler but max position and current position are empty... No values.
I put 0 and 10000 for max and then the restart the app and focuser, again, the two value are empty.
If i use +500 or other, stepper rotate and after don't move but the software is saying stepper is moving. I use HALT and try another move but the stepper don't rotate....
With 1.51 i have no problem all work fine. Possible to help me with this issue Rob ?
You need my log file i think.
[EDIT] i'm now on 1.53 it's better than 1.51 lol
Another question:
I look the full Schematic 1.02rev and see you connect EZdrv STEP to EZdrv GND and EZdrv GND to Nano GND is this correct ?
All v1x goes with v1x
Meaning v1xx windows app, v1xx ascom driver, v1xx ino file all together
Meaning v2xx windows app, v2xx ascom driver, v2xx ino file all together
You cannot mix and match with v1 and v2
So cannot do v1xx ino file with v2xx windows
So cannot do v2xx ino file with v1xx windows or v1 xx ascom
and tells me you are using v2xxx arduino firmware
response recd: GF#: FmyFocuser2_DRV8825
2.2.0M
so that will fail. Cannot use v2 firmware with v1xxx windows app
Next problem
Another question:
I look the full Schematic 1.02rev and see you connect EZdrv STEP to EZdrv GND and EZdrv GND to Nano GND is this correct ?
on Schematic 1.02 you do not do this why ?
Can you post links as I cannot seems to find this?
Cheers
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you try the code which kept the buzzer on for 3s etrc? What was the result?
The code for the buzzer is in Setup() which gives an indication from power on to the point where the focuser is baically ready to respond to commands (when Setup() ends)
// Setup
void setup() {
// turn ON the Buzzer - provide power ON beep
analogWrite( Buzzer, 1023 );
the above turns on the buzzer, So the buzzer stays on all the time until the last line of the setup() function. Normally all that code in setup() will take a second or two, so the buzzer remains on
till Setup() finishes
analogWrite( Buzzer, 0);
}
if you want to make it a little longer you might change the last lines of Setup() to
delay(1000);
analogWrite( Buzzer, 0);
}
my buzzer use 80mA, it's a lot for the nano i think. But when i wire my buzzer directly on a 9V accu or 5V USB it don't bip so i'll don't put it in the focuser.
The resistor is an attempt to keep current reasonable. If I wire mine to 5V it generates a constant tone. Go figure.
I've cut a usb wire, plug the buzzer directly on it and connect to my pc. Always this clik and no bip...
i order new buzzers like you lol
less than 25mA fot testing, if this time they don't work i'll stop trying to fit them in the system.
thx rob
Hi Mathieu
If you have no luck with the new ones let me know and I'll send you a spare I have
thank's a lot Rob [EDIT] don't have a ED80CF T mount ? i pay via paypal lol !!!
I've try to change my sketch because i'm using v1.51_DRV8825_M 15112015.
I test v2.20_DRV8825_M 21032016 but it don't work.
In the win app, parameters are retreived from controler but max position and current position are empty... No values.
I put 0 and 10000 for max and then the restart the app and focuser, again, the two value are empty.
If i use +500 or other, stepper rotate and after don't move but the software is saying stepper is moving. I use HALT and try another move but the stepper don't rotate....
With 1.51 i have no problem all work fine. Possible to help me with this issue Rob ?
You need my log file i think.
[EDIT] i'm now on 1.53 it's better than 1.51 lol
Another question:
I look the full Schematic 1.02rev and see you connect EZdrv STEP to EZdrv GND and EZdrv GND to Nano GND is this correct ?
on Schematic 1.02 you do not do this why ?
Last edit: JoBarTeam 2016-03-22
Hi Mathieu
Hmmm, very strange
All v1x goes with v1x
Meaning v1xx windows app, v1xx ascom driver, v1xx ino file all together
Meaning v2xx windows app, v2xx ascom driver, v2xx ino file all together
You cannot mix and match with v1 and v2
So cannot do v1xx ino file with v2xx windows
So cannot do v2xx ino file with v1xx windows or v1 xx ascom
Must all be same v1 or all same v2
The log file tells me your using windows app v1xxxx
MyFocuser ©RB Brown 2014-2015: 1.7.2.7
and tells me you are using v2xxx arduino firmware
response recd: GF#: FmyFocuser2_DRV8825
2.2.0M
so that will fail. Cannot use v2 firmware with v1xxx windows app
Next problem
Another question:
I look the full Schematic 1.02rev and see you connect EZdrv STEP to EZdrv GND and EZdrv GND to Nano GND is this correct ?
on Schematic 1.02 you do not do this why ?
Can you post links as I cannot seems to find this?
Cheers
Robert
Hi,
Thank's, i've all update to V2 and it's working great !
I made a mistake, i compare the DRV8825 and EZdrv schematics ! In the 8825 you connect step to drive but not in the EZdrv.
I come back to you when i receive IR componant and buzzer lol because i'll have to modify the sketch for IR i think.
cheers
Hi
I connect my new buzzers and it's ok, finaly i heard a real BIP.
I've mount the focuser on a C8 with a nema 14 and pulley/belt
step: 400
Angle : 0,9°
10 V
25 ohms
0,4 A
Torque 1,6 kg.cm
it work like a charm at vertical with asi120MM cooled + barlow X2 + filters wheel, no heat from the stepper...
Happy face
[EDIT] Wan't to play with this buzzer so how to make:
thank's a lot
Last edit: JoBarTeam 2016-03-22
Hi Mathieu
Glad to know its going now.
Please note that to get tome requires a delay between buzzer on and buzzer off
Here are the changes you need to make in the Ardino code for each of
// one bip when halt is check
change this code
else if (!strcasecmp(cmd, "FQ"))
{
isMoving = false;
targetPosition = currentPosition;
writenow = true; // updating of EEPROM ON
previousMillis = millis(); // start time interval
}
to this code
else if (!strcasecmp(cmd, "FQ"))
{
analogWrite( Buzzer, 1023 );
isMoving = false;
targetPosition = currentPosition;
delay(500);
analogWrite( Buzzer, 0 );
writenow = true; // updating of EEPROM ON
previousMillis = millis(); // start time interval
}
analogWrite( bledIN, 0 );
analogWrite( gledOUT, 0 );
analogWrite( Buzzer, 0);
to this
analogWrite( bledIN, 0 );
analogWrite( gledOUT, 0 );
analogWrite( Buzzer, 0);
delay(1000);
// setup the IN/OUT LEDS
analogWrite( bledIN, 1023 );
analogWrite( gledOUT, 1 );
analogWrite( Buzzer, 1);
delay(1000);
// setup the IN/OUT LEDS
analogWrite( bledIN, 0 );
analogWrite( gledOUT, 0 );
analogWrite( Buzzer, 0);
Please email me and we can discuss the other requests..
Cheers
Robert
thx for all Rob ! I make the changes and it's all good.
Ignition and halt is enough.
Come back to you when HX1838 is in my hands ;-)
Good to hear all going Mathieu.
one bip when 0 or max position is setup
one bip when home/target is reach
require a bit more code that what can be posted here, but do-able. At least you have somethings to keep you busy!
Cheers
Robert