Shop OBEX P1 Docs P2 Docs Learn Events
SPI SOLVED - Page 11 — Parallax Forums

SPI SOLVED

15678911»

Comments

  • PublisonPublison Posts: 12,366
    edited 2020-09-09 21:35
    That's a good start! We all go to rev E..D.. and beyond.:)
  • bbrien wrote: »
    fabricating is easy 1; draw schematic in Kicad 2; route board. 3; send G. files to Osh Park. 3 boards for $5.00/square inch.
    I also learned to unzip zipped files.

    Autoroute? Looks like it but it doesn't do well with grounds, just connects them up as if they were signals with thin tracks etc. Expect problems.

    But nonetheless why don't you just do the boards then test out the software so that you are not juggling not knowing if the bug is in hardware or is it in software?

    I didn't realize that it was necessary to learn how to unzip files though. But if there was learning required then PCB design must be thousands of times more.

  • Cluso99Cluso99 Posts: 18,066
    bbrien wrote: »
    fabricating is easy 1; draw schematic in Kicad 2; route board. 3; send G. files to Osh Park. 3 boards for $5.00/square inch.
    I also learned to unzip zipped files.

    Autoroute? Looks like it but it doesn't do well with grounds, just connects them up as if they were signals with thin tracks etc. Expect problems.

    But nonetheless why don't you just do the boards then test out the software so that you are not juggling not knowing if the bug is in hardware or is it in software?

    I didn't realize that it was necessary to learn how to unzip files though. But if there was learning required then PCB design must be thousands of times more.
    See how easy it was! You don’t need to understand anything about electronic design either.
    We’ve wasted all those years learning for nothing ;)

  • [/quote]
    ...We’ve wasted all those years learning for nothing ;)[/quote]

    I feel sorry for you , guys but...you're not alone. Looks like I've wasted mine too :) and intend to waste some more.
    In fact, I am going to waste all of the years that I have left learning. Stupid me.
  • well it's been awhile since my system failed. I purchased several new chips and rewired the chips. My new test boards are finished and here are the pictures. Now I have no money left and no jobs.
    1152 x 864 - 412K
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2020-10-01 06:06
    We've all said about all there is to be said and done about all there is to be done, and we have had barely an acknowledgement, let alone you applying and following through. Truthfully, we just don't know if you are "fair dinkum" about getting this running or not. If you were, you would just follow any one, and just one, of the recipes to the letter and within an extremely short time you would have it working. Remember the dead simple binary (so you couldn't mess with it) that I sent you that you haven't even bothered to load up on both units?

    I don't know what you are trying to say at the moment though. You've sent through a very poor blurry photo of a mess of boards without even saying anything about whether it works or not, or what does, and what doesn't. Work on taking a better photo (or several different shots with good lighting but no flash) with just a tiny amount of focus (pun) and effort, and then when you can get that right, then apply that same tiny amount of focus and effort into getting your boards right too.

    Are you fair dinkum?
  • The boards are arduino matrix boards similar in design to a bread board section . Board on the lower left is a power supply producing 5 and 3.3 volts the upper left is the 40 pin DIP chip the supporting circuits(from propeller lab). The upper right board contains the UDN2993 plus a 74HC04 hex inverter for the indicator leds and four switches to act as the auto guider inputs. The lower right is the 4p4cmodular phone connector attached to the hand box . That's all for now.
  • Dave HeinDave Hein Posts: 6,347
    edited 2020-10-01 11:23
    @bbrien, so does does it work correctly now?
  • Well that looks better than those messy breadboards, an improvement, I hope you find a good podiatrist.
  • the auto guider circuit works good and the hand box checks out but have yet to check the serial, will do that today. I don't understand the need for a foot doctor though.
  • bbrien wrote: »
    the auto guider circuit works good and the hand box checks out but have yet to check the serial, will do that today. I don't understand the need for a foot doctor though.

    (A foot, assumed to be yours, is prominent in your photo.)
  • bbrien wrote: »
    the auto guider circuit works good and the hand box checks out but have yet to check the serial, will do that today. I don't understand the need for a foot doctor though.
    @bbrien, that sounds great! Hopefully the serial will work OK as well. You may need to tweak a few things in the code once you're able to test it with the telescope. I'm assuming that the sidereal rate will need to be adjusted. Please keep us updated on how things are progressing. You can always PM me if you want to avoid the sarcastic remarks from some of the people that have posted on this thread.
  • Doc says It looks ok, even with it's small problems.
  • bbrienbbrien Posts: 561
    edited 2020-10-02 04:13
    I have 2 serial monitor screen shots for you to look at Dave H. these are taken when I touch the rx wire from the hand box and the second is the tx wire from the hand box. The rx wire from the handbox is not connected. Other than that still no action on the motors. Think mabye a 10K resistor to ground on rx will help.
    660 x 429 - 49K
    655 x 438 - 48K
  • I would suggest a 10K pull-up resistor to 3.3V instead of a pull-down to ground. Without the resistor the RX line is floating, and when you touch it you add 60 Hz noise to the input pin. If you pull it to ground the serial driver will continuously detect NULL characters, so it's better to pull it up. The mount code does reject characters below ASCII "0" and above ASCII "o", so a NULL doesn't really cause anything to happen, but it's best to avoid it.

    Touching the TX wire shouldn't cause a reaction, but the RX wire must be picking up noise from having your hand close to it.

    The motors should be working, unless you have a hardware problem. Make sure you are running version dh12 of the mount program. Try typing characters on the mount's console terminal to see if that does something. Measure the voltages on the motor pins. You should see voltages similar to the ones I reported in an earlier post.
  • I am using DH9 in my hand box and DH12 in the mount and when I power up the system the ra motor starts rotating and if I press any of the four switches in the auto guider circuit the corresponding rotate in the corresponding direction However when I press the direction switches in the hand box there is no movement in the motors. when I check the ser. monitor on the hand box I get a responce like" B 3 SOUTH ".
  • Dave HeinDave Hein Posts: 6,347
    edited 2020-10-03 16:50
    It's puzzling that you've never gotten the serial link to work between the handbox and the mount. The connection between the two boxes is pretty simple. You just need a common ground between the 2 boxes, and a wire connecting P20 from the handbox to P11 on the mount.

    EDIT: I wonder if the P20 pin on the handbox is blown. Can you check the voltage on this pin to see if it is 3.3 Volts? It might also be worth while to try another pin for the TX output. You'll have to change the handbox Spin file to match the pin you are using.
  • I finally have lift-off. Thanks for the help.
  • That's fantastic! What did you have to do to get it working?
  • Use a pin never before used.(16)
  • mparkmpark Posts: 1,305
    edited 2020-10-04 05:21
    Kudos to you both, @bbrien and @"Dave Hein"!
  • Hi

    @bbrien and @Dave Hein! - That was a marathon run.
    Congratulations on you both seeing it through- lesser mortals might have given up and thrown in the towel- me included... but you both stuck at it to the delicious end!

    Dave
  • tritonium wrote: »
    Hi

    @bbrien and @Dave Hein! - That was a marathon run.
    Congratulations on you both seeing it through- lesser mortals might have given up and thrown in the towel- me included... but you both stuck at it to the delicious end!

    Dave

    It was a sustained team effort from the start and although it looked hopeless, somebody was bound to eventually score a goal!
    I can't say I even know the OPs answer though. It is so terse and vague as if words were an effort.
  • Dave HeinDave Hein Posts: 6,347
    edited 2020-10-04 08:39
    tritonium wrote: »
    That was a marathon run.
    It was more like a marathon relay race. I just happened to pick up the baton at the end of the race. The code was actually written by Chris Gadd, and I only added some debug prints, and made a few tweaks to it.

    One of my jobs in the past was to maintain legacy code, and work with customers to fix problems that they encountered. I basically took the same approach here by asking lots of questions, and trying to interpret the answers from the customers point of view. I would send customers modified code with extra debug prints, and they would send me back log files. I never actually needed to travel to the customer's site.

  • The final solution was to change the tx pin(20) on the hand box to pin16 because pin 20 was dead. I want to thank everyone who gave assistance on this project. I believe this will be the last project I will attempt. I will leave my last version of the schematic which incorporates a propeller mini, incase someone wants to copy this project.
    THANKS AGAIN
  • bbrien wrote: »
    The final solution was to change the tx pin(20) on the hand box to pin16 because pin 20 was dead. I want to thank everyone who gave assistance on this project. I believe this will be the last project I will attempt. I will leave my last version of the schematic which incorporates a propeller mini, incase someone wants to copy this project.
    THANKS AGAIN

    Well, it certainly was an undertaking for you(and all) I'll admit, but, look how much you LEARNED! Glad you got it working. Have fun with it!
  • Hi

    BRAVO!!!!!!
    Congrats to all concerned

    Dave
Sign In or Register to comment.