As the above Robert, im sure i may have skipped over it in the wealth of infomation but was wondering if the solderless setup will accomodate the momentary button or some sort of equivalent?
Thank you
Last edit: Wayne Brady 2020-10-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You would be better to use the IRREMOTE option than push buttons - it is probably easier to interface.
Using Push Buttons would require also 4 resistors [that have to be soldered] so it becomes real messy to interface to a solder-less solution, which explains why I never provided it.
An IRRemote should not require any soldering. I have uploaded the wiring for this.
That would be ideal Robert, in fact for the amount of time that it would be in use it would seem the better option, is there code needed for this or just a straight install and go?
Thanks again
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Robert am I right in assuming I dont have to include anything else to the firmware? only im getting this error on upload
Thanks
Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P"
Focuserv176_DRV8825_HW203_IR:107:10: fatal error: myQueue.h: No such file or directory
#include <myqueue.h> // By Steven de Salas
^~~~~~~~~~~
compilation terminated.</myqueue.h>
exit status 1
myQueue.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Last edit: Wayne Brady 2020-11-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Robert i have uploaded the firmware and libraries are in place, your windows software connects to the build no problems, focuser and maximum positions are set, current on the 8825 has been adjusted and looking "feeling" good, only problem im having is the stepper will only go in the same direction whether +100 or -100 is used, ive tried difference ways around with the stepper cables but the motor was from a previous setup and the red/blue black/green applied then as per your instructions....a bit stuck with this one..
Thank you
Last edit: Wayne Brady 2020-11-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You did not give any info on the stepper motor you are using?
Purchase link?
If the focuser only moves in one direction
-Check the level of DIR pin [drv8825] using a multimeter
It should be high for one direction and low for the other
If it stays at one level check the wiring
If the motor is still only moving in one direction
-Check that the DIR pin is wired to pin D3 of the nano
-If after that the motor still moves in one direction
-It has to do with wiring of stepper motor
- see pg6 of attached PDF
Sorry i updated my last message about 10 minutes after i posted it, you must of missed it at the top?, i did try to delete it but couldnt see an option to, either way it turned out to be a faulty wire from the driver board, im using the pg27 purchased from your link, thanks again
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think im on the last leg now Robert, all checks out, stepper is doing what its supposed to do, just a question on the ir remote, i have the button codes required as i only want to use two, basicly in and out when i change from eyepiece to imaging, the drawtube is as far in for eyepiece and as far out for imaging etc..i found this in your code..
do not uncomment, debug only, print out receive code if wanting to use new keys to do new things
// Serial.print("Receive code="); Serial.println(ircode);
// to use new key codes, you will need to add them to the switch case block below
Is this where the button codes are added? I have been googling but its a minefield, im hoping to amend the two below for the - and + buttons which are 0xF076C13B and 0xA3C8EDDB but have no clue how.
Do i just amend then add these? // Serial.print("Receive code="); Serial.println(ircode) then add them somewhere to the two cases below?
Thanks yet again Robert
case 16769055: // '-' IN -50 FAST
adjpos = -50;
motorSpeed = 2;
updatemotorSpeedDelay();
Serial.println(0xF076C13B);
break;
case 16748655: // 'EQ' OUT +50 FAST
adjpos = 50;
motorSpeed = 2;
updatemotorSpeedDelay();
break;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use the attached test program for the IR remote - it outputs to the serial port and has the values in decimal.
You press the key and the code is displayed in the arduino serial monitor
In general for the recommended IR Remote the + and the - keys have values of
I have ran the test and receive exactly as below...
Receive code=-260652741 for -
Receive code=-1547112997 for +
so if i change the case number 16769055 to 260652741 as below, uncomment INFRARED at Definable features and update the controller?
case 260652741: // '-' IN -50 FAST
adjpos = -50;
motorSpeed = 2;
updatemotorSpeedDelay();
break;
Well i know im missing something for sure as it doesn't work for me :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Robert, i tried again this morning and noticed a few random numbers coming up on the remote test, if it isn't me thats totally knackered it up maybe a dodgy remote kit?
Hi Wayne
The code looks fine.
What are the random numbers that pop up?
When you run the irremote test program that displays the codes in the serial window - you can select all that and copy paste into a text file and post it to me?
All you need to do when running the test is press - for one press, wait a couple of seconds then press + and wait then repeat.
When you say it does not work - you mean the motor does not move?
You can also try this mod inserting serial.println statements.
Reprogram the controller and open the serial monitor and watch if the statements occur when you press the irremote keys - and +
Morning Robert, ive included the txt for the remote presses, ive done 15 presses of "-" the same for "+" then a set alternating as you mentioned above, as for not working the motor does not move, also no indication in the status messages of the windows app although not sure if it would or not? i have inserted the serial.println statements and reprogrammed but nothing at all showing in serial monitor, as im not receiving anything at all i ran the windows app to see if it would fail to at least tell me these statements were in and working, it did not, the app and motor run fine although im not sure what that means..
Im running off a 13.8v bench supply in the observatory but knocking it back to 12v with the attached image as the previous set up, learnt the hard way last time and smoked the board :) i dont have any capacitors hence the solderless set up but no worries Robert, i can still work around the focusing without the remote, i dont want to waste more of your time on this, you have been more than enough help, if i purchase another in future i can always refer back to this to set up
printin statements have been removed and controller updated, everything still working as it should, test program works every time.
Thanks
As the above Robert, im sure i may have skipped over it in the wealth of infomation but was wondering if the solderless setup will accomodate the momentary button or some sort of equivalent?
Thank you
Last edit: Wayne Brady 2020-10-29
You would be better to use the IRREMOTE option than push buttons - it is probably easier to interface.
Using Push Buttons would require also 4 resistors [that have to be soldered] so it becomes real messy to interface to a solder-less solution, which explains why I never provided it.
An IRRemote should not require any soldering. I have uploaded the wiring for this.
Regards
Robert
That would be ideal Robert, in fact for the amount of time that it would be in use it would seem the better option, is there code needed for this or just a straight install and go?
Thanks again
It is pretty much connect, define irremote and reprogram controller
Firmware to use is
Focuserv176_DRV8825_HW203_OLED_IR
[attached]
// To enable Infrared Controller, uncomment the next line
define INFRARED
// To enable the OLED DISPLAY uncomment the next line
define OLEDDISPLAY 1
// To enable temperature probe, uncomment next line
define TEMPERATUREPROBE 1
Have one on order now, thanks a lot
Robert am I right in assuming I dont have to include anything else to the firmware? only im getting this error on upload
Thanks
Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P"
Focuserv176_DRV8825_HW203_IR:107:10: fatal error: myQueue.h: No such file or directory
#include <myqueue.h> // By Steven de Salas
^~~~~~~~~~~
compilation terminated.</myqueue.h>
exit status 1
myQueue.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Last edit: Wayne Brady 2020-11-03
myQueue.h: No such file or directory
Did you follow the instructions about installing the required libraries? Seems you missed that step
In the folder
myFocuserPro Required Libraries
The file Important-Readme.txt describes what to do
Unzip the Arduino Firmware myFocuserPro v1xx.zip file
Locate the folder myFocuserPro Required Libraries, and in that folder
There should be TEN folders
Bounce2
myAFMotor
myDallasTemperature
myEEPROM
myHalfStepper
myIRRemote
myQueue
myRotaryEncoder
newliquidCrystal
OneWire
Move these folders to the Arduino\libraries folder in your Documents folder (for windows). Replace any existing folders or files.
Do not edit or replace any of these files. They have been edited and modified to use with the myFocuserPro firmware.
Lucky for me i couldnt find the "slap myself in the face" emoji in this chat box......thanks Robert
PLEASE IGNORE..Faulty DIR cable
Robert i have uploaded the firmware and libraries are in place, your windows software connects to the build no problems, focuser and maximum positions are set, current on the 8825 has been adjusted and looking "feeling" good, only problem im having is the stepper will only go in the same direction whether +100 or -100 is used, ive tried difference ways around with the stepper cables but the motor was from a previous setup and the red/blue black/green applied then as per your instructions....a bit stuck with this one..
Thank you
Last edit: Wayne Brady 2020-11-06
You did not give any info on the stepper motor you are using?
Purchase link?
If the focuser only moves in one direction
-Check the level of DIR pin [drv8825] using a multimeter
It should be high for one direction and low for the other
If it stays at one level check the wiring
If the motor is still only moving in one direction
-Check that the DIR pin is wired to pin D3 of the nano
-If after that the motor still moves in one direction
-It has to do with wiring of stepper motor
- see pg6 of attached PDF
Last edit: brownrb 2020-11-07
Sorry i updated my last message about 10 minutes after i posted it, you must of missed it at the top?, i did try to delete it but couldnt see an option to, either way it turned out to be a faulty wire from the driver board, im using the pg27 purchased from your link, thanks again
I think im on the last leg now Robert, all checks out, stepper is doing what its supposed to do, just a question on the ir remote, i have the button codes required as i only want to use two, basicly in and out when i change from eyepiece to imaging, the drawtube is as far in for eyepiece and as far out for imaging etc..i found this in your code..
do not uncomment, debug only, print out receive code if wanting to use new keys to do new things
// Serial.print("Receive code="); Serial.println(ircode);
// to use new key codes, you will need to add them to the switch case block below
Is this where the button codes are added? I have been googling but its a minefield, im hoping to amend the two below for the - and + buttons which are 0xF076C13B and 0xA3C8EDDB but have no clue how.
Do i just amend then add these? // Serial.print("Receive code="); Serial.println(ircode) then add them somewhere to the two cases below?
Thanks yet again Robert
case 16769055: // '-' IN -50 FAST
adjpos = -50;
motorSpeed = 2;
updatemotorSpeedDelay();
Serial.println(0xF076C13B);
break;
case 16748655: // 'EQ' OUT +50 FAST
adjpos = 50;
motorSpeed = 2;
updatemotorSpeedDelay();
break;
Use the attached test program for the IR remote - it outputs to the serial port and has the values in decimal.
You press the key and the code is displayed in the arduino serial monitor
In general for the recommended IR Remote the + and the - keys have values of
The place to edit what you want is in loop() specifically
thus if you only wanted the + and - buttons to move in or out then it would look like
In this case - would move in by 50 steps at FAST speed and + would move out by 50 steps at FAST speed.
I have ran the test and receive exactly as below...
Receive code=-260652741 for -
Receive code=-1547112997 for +
so if i change the case number 16769055 to 260652741 as below, uncomment INFRARED at Definable features and update the controller?
case 260652741: // '-' IN -50 FAST
adjpos = -50;
motorSpeed = 2;
updatemotorSpeedDelay();
break;
Well i know im missing something for sure as it doesn't work for me :)
please send me the .ino file to have a look
Thanks Robert, i tried again this morning and noticed a few random numbers coming up on the remote test, if it isn't me thats totally knackered it up maybe a dodgy remote kit?
Hi Wayne
The code looks fine.
What are the random numbers that pop up?
When you run the irremote test program that displays the codes in the serial window - you can select all that and copy paste into a text file and post it to me?
All you need to do when running the test is press - for one press, wait a couple of seconds then press + and wait then repeat.
When you say it does not work - you mean the motor does not move?
You can also try this mod inserting serial.println statements.
Reprogram the controller and open the serial monitor and watch if the statements occur when you press the irremote keys - and +
Once it is working remember to remove those serial.print statements else the windows app will fail.
Morning Robert, ive included the txt for the remote presses, ive done 15 presses of "-" the same for "+" then a set alternating as you mentioned above, as for not working the motor does not move, also no indication in the status messages of the windows app although not sure if it would or not? i have inserted the serial.println statements and reprogrammed but nothing at all showing in serial monitor, as im not receiving anything at all i ran the windows app to see if it would fail to at least tell me these statements were in and working, it did not, the app and motor run fine although im not sure what that means..
None of that looks even close to what it should be.
Can you take a picture of the controller and its sensor?
Did it come with a little pcb that the sensor attaches to?
Are these any good ?
Well that looks the same
What are you powering the board with?
AC Power adapter?
I suspect that there could be a little noise on the voltage rail?
Or the unit is a bit faulty
I see the codes there but it is not consistent, I mean the test program appears to work right? some codes are displayed.
Remove those serial.println() statements
Serial.println("IR -");
Serial.println("IR +");
If you have a spare biplor capactor, put it across 5V and ground - the +ve lead to 5V and the -ve lead to GND. It should have a value round 100uF
If you have a spare ceramic type capacitor 100nF is good, place between SIG and GND leads of IRREMOTE
This might help clean up any noise,
Im running off a 13.8v bench supply in the observatory but knocking it back to 12v with the attached image as the previous set up, learnt the hard way last time and smoked the board :) i dont have any capacitors hence the solderless set up but no worries Robert, i can still work around the focusing without the remote, i dont want to waste more of your time on this, you have been more than enough help, if i purchase another in future i can always refer back to this to set up
printin statements have been removed and controller updated, everything still working as it should, test program works every time.
Thanks