Menu

No Home with Sensor

2024-08-24
2024-10-05
1 2 > >> (Page 1 of 2)
  • Andreas Exeler

    Andreas Exeler - 2024-08-24

    Hello Robert,
    I'm not sure if I made a mistake.
    I built the rotator according to schema 1.03 with DRV8825 and Firmware 2024-07 on astripboard.
    With the Windows App I can operate the rotator, move to an angle and home works.
    But if I set the "enable home senor", I can only do move, when I click home nothing happens, the motor don´t, the angle also.
    If I then approach the home sensor with a magnet, the angle jumps to zero and I can move again, the "find home on connect" doesn't do also anything.
    What did i do wrong?
    greeting
    Andreas

     
  • brownrb

    brownrb - 2024-08-27

    Hi
    The mistake is mine. really. It is.\

    Attached is a replacement file for myrotator_comms.cpp

    I forget to strip out all the debugging statements that I put in when resolving other issues.
    Those debug statements write to the serial port, so the windows app, and ascom, that talk to the serial port received data that made no sense.

    Apologies, let me know it the problems go away (or not)

    Regards
    Robert

     

    Last edit: brownrb 2024-08-27
  • Andreas Exeler

    Andreas Exeler - 2024-08-27

    Hello Robert,
    i copy the .cpp in the firmware dir. Flash again, but i am sorry, is the same.
    Move cw and ccw over the move Button works, without the Sensor enabled the Home Button works also, after enable sensor, no home button.
    The stepper make one tick, not more.
    Sorry.
    greetings Andreas

     

    Last edit: Andreas Exeler 2024-08-28
    • brownrb

      brownrb - 2024-09-05

      I know the back and forth is hard, but, can you please zip that firmware you used and post here,

      Thanks

       
  • brownrb

    brownrb - 2024-09-04

    Hi Andreas

    The stepper make one tick, not more.
    That would seem to indicate that the sensor might be picking up noise or a false signal or the magant strength is large.

    Just curious. You said the it takes like 1 step and stops. When home sensor is enabled.
    Does that occur at all the rotator angles. For instance at angle 90 does it do the same, and at angle 220 is the same?

    And what sensor are you using with the magnet, picture would help me.

    I will be looking at this again. The reason I have not addressed this yet is the huge update coming for myFP2ESP32. All my time is on the update at present, but I will get back to to the rotator after that is done.

    Q: What are you using to control the rotator? windows app or ascom?

    regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2024-09-05

    Hi Robert,
    thanks for your reply.
    i am not at home, so some infos i remember:
    I test different angles, over the "Move" button it works, without "sensor enable" the "Home" Button works aslo. After "Sensor enable" Move" works to any angle but after press "Home" the Stepper make one Tick and after some time the Arduino disconnect and restart self.
    The App is the Windows App.
    With Ascom (over Nina) the Rotator goes to fullstep,( i use 1/8 step in the Windows App), so i dont test more over Ascom.
    i use the last Firmware, 2024-07.
    i found und use the "TestHome.ino", after press S to start, the Home sensor detected immediately without any rotate.
    The Sensor is a A3144 and it goes low on pin D3 if home manually reached per hand rotate.
    In the Windows App, if i click at the Value, the output is False and True if the magnet is at home position.
    More infos tonight.
    Hope it helps to find my mistake.
    Greets and thanks for your support!
    Andreas

     
  • Andreas Exeler

    Andreas Exeler - 2024-09-06

    Hi Robert,
    hier the zip-file.
    thanks for help.
    Greets Andreas

     
  • brownrb

    brownrb - 2024-09-18

    Hi Andreas

    Apologies at the lateness of the reply.

    Attached are a number of files,
    firmware 2024-08
    some pngs

    The is a test firmware, thus has a number of serial print statements in it,.
    This test firmware CANNOT be used with Windows App, ASCOM App, Sharpcap or anything like that, so please do not try.

    1. Download the attached files.
    2. Your rotator must be connected to the scope, and you must have the home sensor fitted and wired to the controller, and the magnet in place.
    3. Extract the firmware file 2024-08 and reprogram the controller. I used Arduino IDE 2.3.2

    The pngs show what I am talking about next.
    Open the Serial Port Monitor
    Set the Serial port speed to 9600
    Set no line ending

    The test will involve typing some commands on the text line. All responses will appear in the Serial port message area under that line,
    Please type each at 1 time.
    For some commands there will be no response,
    If a command moves the rotator, wait till the move has stopped before going to the next command.
    At the end of this the serial print messages will be saved to a file.

    Please do not the Comment (Move Angle to 10), just the lines below the text like :xxx#
    after typing the command, press Enter to send the command to the controller

    Move Angle to 10
    :0310#

    Get Firmware
    :10#

    Enable HPSW
    :321#

    Read HPSW Enable State
    :31#

    Read HPSW Logic State
    :43#

    Find Home
    :07#

    Now please wait till the rotator stops moving
    When stopped,

    Click in the Serial Monitor Window and use CRTL + A to select all the messages
    Then use CTRL + C to copy the selected messages
    Open Notepad
    Paste using CTRL + V the messages, then save the text file
    Post the text file back here.

    After that you can reprogam using the previous 2024-07 whilst I decode the results.

    Regards
    Robert

     

    Last edit: brownrb 2024-09-18
  • Andreas Exeler

    Andreas Exeler - 2024-09-18

    Hi Robert,
    hat some trouble to copy the whole Serial-Output, its a Bug in IDE 2.3.2, so i use for the Serial Monitor the old 1.8 IDE.
    So, hier the Output, all the Commands works and the Rotator stops at home!

    Thanks for Help!

     

    Last edit: Andreas Exeler 2024-09-18
  • brownrb

    brownrb - 2024-09-19

    Thanks Andreas

    I will take a look today and later my time today, look at posting the fix.

    regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2024-09-19

    hi Robert,
    thanks for your Support!
    Take the Time you need.
    greetings Andreas

     
  • Andreas Exeler

    Andreas Exeler - 2024-09-19

    Hi Robert,
    The new Version Home works, but only one Time.
    After update to the 2024.09 i move to 90° and then press Home, the Rotator went Home.
    Then i go to 270° with move and press Home again, only 1 Step on the Motor.
    Press hold and set new Angle 45 and move, OK, press Home, only one Step on the Motor,
    Power off and on the Arduino amd reconnect the App, can Move to an Angle, but after press Home the Motor goes to the Zero Angle value in the App, but it was not the home Position.
    The find Home at Start, also do not work in the Moment.
    It looks like the Storage Angle is more importent then the true Value.
    I am Sorry!
    greets Andreas

     
  • brownrb

    brownrb - 2024-09-21

    Hi Andreas
    Thanks for testing though. I really thought some progress has been made.

    I will put this back into the TODO queue.

    Regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2024-09-21

    Hi Robert,
    no Problem, i can use it with some restrictions.
    Take all the time you need.
    thanks for great job!
    greetings Andreas

     
  • brownrb

    brownrb - 2024-09-27

    Hi Andreas
    Attached is a ULN2003 rotator firmware update in response to your issue. Can you please try it for me?

    Regards
    Robert

     

    Last edit: brownrb 2024-09-27
  • Andreas Exeler

    Andreas Exeler - 2024-09-29

    Hello Robert,
    sorry for the delay, i dont get an info that you have post a new version.
    should i flash with the ULN2003 or with the DRV8825 settings?
    Greeets Andreas

     
  • brownrb

    brownrb - 2024-09-29

    I thought you were using an ULN2003 board?
    I dont think it matters, just set the DRVBRD to what you are using.

    regards
    R

     
  • Andreas Exeler

    Andreas Exeler - 2024-09-29

    Hi Robert,
    i use Rotator with a DRV8825.
    i try the 2024_10, but no Homeing, only on step. The move works.
    After press Home the Ardunio disconnect from thr APP.
    Sorry.
    Greets
    Andreas

     
  • brownrb

    brownrb - 2024-09-30

    If you can give me the app log when trying 2024-10 that would help.
    I am not seeing that on my rotator

    Regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2024-09-30

    Hi Robert,
    i flash the 2024-10 again.
    No disconnect any more, but at press Home the same as the last: only one step.
    Can now press Halt and Move again and there is no disconnect!
    pls see the log.
    Thanks for help.
    greets
    Andreas

     
  • brownrb

    brownrb - 2024-10-01

    thanks the log was very helpful, gave me a good idea of what is happening for your rotator.
    Looks like I will need to make some major changes to the code.

    Regards
    Robert

     
  • Andreas Exeler

    Andreas Exeler - 2024-10-02

    Hi Robert,
    thats good news.
    Take the time you need.
    Thanks for the Support.
    greetings Andreas

     
  • brownrb

    brownrb - 2024-10-03

    Hi Andreas
    I have made changes based on the log file you sent me.

    When you have time, please try 2024_11 attached,

    Regards
    Robert

     

    Last edit: brownrb 2024-10-03
  • Andreas Exeler

    Andreas Exeler - 2024-10-03

    Hi Robert,
    sure, but sorry, it is the same.
    after connect the Angle was 0 in the APP (the Rotator was real about ca. 60°), i Move to 45 and after reache the 45° i press Home, the angle in the app jumps to 0, the Stepper makes one step.
    i am so sorry.
    Gretts
    Andreas

     
  • brownrb

    brownrb - 2024-10-04

    Hi Andreas
    I really thought I had it beat with that one, after passing the tests here.
    I can see same issue in your log.

    Back to the drawing board. I am optimistic that I will figure it out

    Regards
    Robert

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.