Jump to content
 

Rigid Collision

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by Rigid Collision

  1. Wow. You guys are still plugging away at this. Well done. I have returned to see what's occuring!
  2. What is this post? Has anyone used y boards yet? Really interested on how people are getting on with them.
  3. I'm looking at my next board using the Arduino Pro Mini as it has more than two interrupts (I think). My code uses the 2 interrupt pins on the Nano. Have a look at my GitHub page for the code.https://github.com/RigidCollision/Turntable
  4. Just added a speed harmonics and vibration test for steppers on my GitHub site. It allows you to specify a lower and upper limit to step through sequentially, automatically running the motor at each speed in turn. It kinda helps 'dial in' the best combination of microstepping / speed / motor to limit the potential of running the motor at a frequency that results in it vibrating. Put the basic code for use with the turntable for getting it to work with DCC and a Hall sensor. It's basically Tenders code from page 1 or 2 of this thread with some minor adjustments for homing using an interrupt rather than sensing high or low on a digital I/O. Allows a little more flexibility for using the code WITHOUT accelstepper if you want to drive it that way. I am rapidly coming to the conclusion that accelstepper is simply not worth the overhead and hassle for problems it has been causing me with slow running issues and the inflexibility of some of it's 'features'. I am torn between abject laziness and writing my own slightly leaner library tailored for the turntable project with the actual functionality I need. Looking forward to testing TMC2100 drivers...
  5. I am using win 10. It will be fine. Just watch out for subtle library name changes on more recent releases of Arduino stuff.
  6. Now looking at TMC2100 compatibility with 256 microsteps... it fits the board. How will it perform?!?
  7. Hiya, I used ALLPCB www.allpcb.com. These guys were GREAT. Good communication fast production and despatch; just 5 days from submission online to receipt via DHL! You are brave using EAGLE I tried to get to grips with it and found it mind blowingly buggy and awful. Having said that, my experience of delving into the world of PCB production was like turning the clock back 15 years software-wise. The world of PCB design seems to be populated with buggy and troublesome products that are hard to use and don't always deliver. Considering my 20 years designing 3d software (which is far mare complicated) I don't think it was my lack of ability and I was left totallyunderwhelmed. In the end I used DipTrace, I ditched the idea of circuit diagrams and adding components in favour of just using DiptTace rather like a glorified version of Illustrator. It allowed me to simply draw a board and add pads and traces whilst snapping to a grid. It allowed me to add silk screen details easily and it exported flawlessly into Gerber files with a drilling file. All-in-all much less hassle that 'designing' a board and specifying components and circuits! Regards
  8. That was easier than I thought. I have uploaded my accelstepper, DCC libraries and other useful stuff onto Github: https://github.com/RigidCollision/Turntable Code examples and utility code on it's way soon.
  9. I am currently trying to navigate GitHub in order to publish my accelstepper libraries and code.
  10. In other news... I have been testing other Stepper drivers and can confirm the DRV8825 and DRV8824 seem to work nicely. The DRV8824 is a really good driver board if you have low amp stepper motors. I have tested it with 0.4a and 0.6a motors and it performs really well. It seems to eliminate microstepping inaccuracies that can be found with the A4988 (which manifest themselves as uneven microsteps). Fortunately the Polulu boards are all interchangeable (whew!).
  11. Hi, Apologies, been in and out of hospital rather a lot and on heavy medication (morphine). Busted my leg up real fine! I have put two boards in the post to you, one blank PCB and one fully made up.
  12. Been looking to play with some DRV8880 driver boards. Can't find any outside of USA or France (both at ridiculous prices!) Anyone got a supply?
  13. I have had a fair bit of interest in the board I made. Pricing is as follows: Bare board - £20 Incl. P&P Complete kit (less Nano but including A4988) unassembled - £30 Incl. P&P Complete kit (less Nano but including A4988) assembled and tested- £40 Incl. P&P Comparable pricing with Uno and Adafruit shield pricing but in a neater package with a DCC interface. I have a few boards/kits left and if there is interest I will get some more in. I may start using the Micro Pro board as it has more interrupts (the Nano and UNO only have 2 I/O ports capable of interrupt!). It will require some minor design changes but it is possible to hook up some of the I/O to pins to enable them to be user configured. If anyone has any requests I might look at doing other DCC Arduino project PCB boards for lights or signalling? Where is the best/most convenient place to upload my AccelStepper libraries with 'setBacklash'? Regards,
  14. Hi Randy, As far as I am aware the A4988 has an 'enable' pin. On my PCB design I took the liberty of connecting it to the Arduino I/O 6, but as yet have not had time to put any code behind it to test it. Interesting that we have a new driver. I had looked at the DRV8825 but reports from users indicated less than satisfactory results and many users were going back to A4988's at they are tried and tested. I will get one and pop it onto the test rig here and see what happens.
  15. Simon,No problem. I have 6 boards from the prototype run (there was a minimum quantity). You will need some header socket strip, some 2 and 3 pin terminals and a total of eight components (some capacitors, resistors, diodes and a 7805) but we are talking a few quid for the lot. I am getting a build spec sheet together for the boards for diy assembly with clear instruction to avoid mishaps and the links for eBay that I used to purchase components. I will also be posting the modified libraries and my code for anyone wanting to use the A4988 stepper driver. The libraries I used are v1.6 (the very latest ones) and are heavily commented to ensure that the code I added can be identified easily and can be applied to subsequent releases painlessly. Also keep you eyes open for power supplies. Basically anything from 7-30v is fine. Don't go too mad, just make sure it has more voltage than your intended motor. Avoid having the same voltage as your motor, as the A4988 works best if it has over voltage to chop correctly. It took me a while of hunting to find an old power supply that did the trick (felt a bit weird to actually buy a power supply when so many are thrown away). PM me and we can have a chat about boards... P.S. The artwork is only part of the story, you need PCB design software like 'Eagle' to enable you to layout and produce the 'Gerber' files required for all the layers that the PCB industry requires. A Gerber format file is produced for each layer on the board and even a simple board can have seven or eight different files for top silk screen, top copper, bottom copper, various masks and the CNC drill sizes and hole locations.
  16. Hi guys, It’s been a while since I was on this thread but in my defence I have been productively busy. Firstly I would like to thank ‘tender’. His initial thread and project build guidelines have spurred me on to where I am now. His guide and code has been the starting point for a good deal of fun and have introduced me into the whole world of electronics. Anyway, talking of where I am now, here goes… You may have seen my comments about motor noise from the stepper motor. I went off and did some research and found that microstepping seems to be the bain of all and sundry when it comes to quiet/smooth running of stepper motors. Another issue I found was that the Adafruit Motor Shield is OK, but not great. It is very limited on the current it can handle (and therefor the steppers it can drive) and whilst it is a ‘plug and play’ option for Arduino Uno users it is still going to require a board being made up to house the DCC control components. I was left with the feeling that the Uno/Adafruit combination is OK for tabletop ‘tinkering’ but for a dedicated single motor project it is not really the tool for the job. I really didn’t need to drive two steppers, four DC motors and a handful of servos. I needed to drive one stepper well and with the minimum of fuss. More research showed that powering the Arduino would take a dedicated and regulated 5v power input as well as a separate 12v power supply for the motor shield (as the Arduino cannot and should not be used to power a stepper motor on an Adafruit shield). I also had issue with the Adafruits choice of stepper driver. An H-Bridge driver is about as basic as it gets. This left me feeling like the whole thing could be improved. So I did (I think). Firstly, ditching the Uno. I got a Nano instead. At £3.50 it can be mounted on a bread board and easily mounted on PCB headers. You use the same code as you do for the UNO. Trust me; it just works. At approximately 1/6 the footprint of the UNO I was already making progress with a view to shrinking everything onto one breadboard. With ditching the idea of microstepping in mind, the stepper motor was a no brainer; just nipped onto eBay and get a Nema14 12v/0.8amp with a 100:1 planetary gearbox. The motor has a 1.8-degree step, which equals 200 steps per revolution. Multiply that by 100 and you are looking at 20,000 steps per revolution. Microstepping is for wimps! Plus, you get little or no whine, a cooler motor and little/no danger of uneven microsteps/missed steps. Happy days. The next thing was the stepper driver. I opted for good old A4988 Stepstick driver. No bigger than a postage stamp and drives a motor up to 2amp with voltages from 8-35v. Now that is a flexible bit of kit. It operates in a much more technical way than the H-Bridge. Effectively over supplying the motors voltage, but sensing and then chopping the power before it gets too much for it. That way when the motor warms up and the coils have more resistance it is able to adjust the power accordingly. Add to this that you can adjust the power cut off so you can under power the motor, reducing torque but also saving power and reducing any heat (If you have any). So ultimately I ended up using a 18v 2amp power supply for my 12v stepper motor with no issues. The next obstacle was getting the power to the Arduino Nano. It was staring me in the face (it was on the internet); use a 7805 5v power regulator and a couple of capacitors to regulate a feed from the 18v 2amp supply on my breadboard to the 5v pin on the Arduino. That resulted in a nice clean regulated 4.8v. Job done! The Hall sensor and DCC side of things I left untouched from ‘tenders’ original design. So… now I had a breadboard that looked like a rats nest. Sooner or later one of those little wires is going to come loose and I am going to have to get under my layout with a torch and bad eyesight and fix the damn thing in-situ. How do I get this mess into a practical bit of kit that will be robust enough? The answer was a dedicated PCB with headers to take the Nano, A4988, 6N137 and the other components required. I spent a day getting the design together onto a single sided PCB that is 5mm bigger than a credit card and sent it to China for prototype production on a 5 day turn around. I guess with a bit more time I could have shrunk the damn thing down even further, but space is not a real issue. Whilst my design was having the time of its life in China I did some tweaking to the AccelStepper code libraries to introduce a ‘setBacklash’ parameter (I found details buried on the internet). This deals with any gearbox backlash (which is actually pretty minimal anyway). That way you can set the backlash in the same way as you set the other AccelStepper parameters e.g. … stepper1.setMaxSpeed(20.0); stepper1.setAcceleration(10); stepper1.setSpeed(20); stepper1.setBacklash(20); … It just senses the direction and adds the backlash steps accordingly. So there we have it a dedicated PCB with all the inputs and outputs to allow full DCC control of a stepper motor from 8-30v and up to about 1.5a with no additional cooling (or 2a if you fancy some active cooling). If you are interested in one of my boards to simplify a DCC/Stepper project like the ones on this thread, then please PM me, as I have some available. If you would like details of my modified AccelStepper libraries, again, PM me. If you are reading this thinking that it is all a little beyond you I can assure you that it is not as complicated as you would think. With a decent soldering iron and a little practise I got the first board fully assembled in approximately 1 hour (allowing a suitable amount of paranoid double checking between the assembly of each component). I had zero electronics exposure or experience a few weeks ago, now I have built a robust solution to run my project, learnt to solder and designed/produced my own PCB. Any questions?
  17. I have tried this. I sourced all the parts, but the real issue here was the DCC chip and slow running. I tried several chips but getting the damn things to run nicely at slow speeds was tricky to say the least. They seemed to suffer with hiccups and 'funny turns' periodically.
  18. Hi Guys, Having issues with this project atm. Got the DCC circuit up on a bread board, plug my DCC controller in (Hornby Elite) and all I get is 'error' on the Elite. Did some investigation: Took out the 6N137 chip so all I have is the 1k resister and the 1N4148 Diode I STILL I get an error. It detects it as a DCC short. I assume the resister is unidirectional? I am aware the diode is one direction only (and I have swapped it around just in case). With the diode disconnected there is no error (as it is an open circuit). Been over the whole damn thing testing for shorts and anomalies but this is as simple as it gets. HELP! Kind Regards,
×
×
  • Create New...