Gallery, Projects and General > Project Logs |
X2 X-axis Stepper motor Power Feed - (possible CNC conversion?) |
<< < (7/19) > >> |
raynerd:
Hi Tim, glad you understand ... I managed to put together the circuit for it and I have bought a few kits from maplin over the years and this is the first that has ever worked and it was built from scratch! I spent about two hours pulling my hair out before I got it running. If you go back to my diagram there is a pin labeled MCLR and since I have not turned this off in the code it meant that I needed to pull it high for the pic to run! I simply jumped it with a perminant live and now the circuit works great. I just want to add a slow acting delay so that the shaking effect slows down and comes to a stop rather than stopping so abruptly as it currently does. Hope you like it. Just a bit of swarf to make now for a case and then maybe back on to the x-axis controller! |
andyf:
OK Chris, that's got playing Monopoly sorted - no more hoisting Auntie up to look for the die down the side of her cushion. Seriously though, I'm watching this closely. Apart from fiddling around with CMOS adders to get the PLLs in old CB sets on to the amateur 10m band, my experience with digital can be summed up as 0. The fact that you seem to be starting from a fairly basic level is teaching me more about microcontrollers as applied to engineering than I would learn from trying to adapt ideas from some "Run Your Whole Home Using Just One PIC" book. Thanks. Andy |
raynerd:
Cheers Andy. It all started with the indexer that my mate made for me and then I figured I fancied having a go. To be honest, it didn`t really start making any sense until I borrowed the dev board and could code and then immediately send it to the chip and see if it actually did what I wanted it to. Think the first thing I did was hold an led lit for 5 secs each time you pressed a button. It is supprising how fast it comes together, it is totally logical and the commands are quite straight forward using MikroC. Thanks for looking and commenting, Andy. Chris |
raynerd:
I have finally finished the code and the circuit. I have also put in a little button that switches it into a "weighted dice" mode which makes the dice weighted to 6. I think I`m getting into this and into the way of thinking. It basically counts 1 to 6 and then looks at an array of LED options (1-6) and displays the relevant number. To get it weighted, I simply made it count from 1 to 8 with 7 and 8 also being the arrangement for a six throw. Obviously, there is then more chance of the six being thrown as it is in the array 3 times. It was only a bit of fun really and I just wanted to see if I could do it. I`ve built the cicuit and it looks like a dogs dinner (I really nead to use strip board on make my own PCB (another project!)) but it works! I just need to encase it now. Has anyone any suggestions? I was thinking an aluminium case but I don`t know how you could lock it together but with a release so that you can change the batteries or even press the button. I think I`ll hide the weighted button inside the case as it was only fun and probably won`t ever be used. Now we are talking swarf, there must be some opinions? |
No1_sonuk:
I once spent 2 hours trying to work out why one of my PIC projects wouldn't work. I eventually realised I'd not switched over the analogue inputs to digital. I'd not used an 8-pin PIC with analogue inputs before, and didn't realise they defaulted to analogue... :scratch: WRT the box: Maplin, and others, sell plastic cases with battery compartments. |
Navigation |
Message Index |
Next page |
Previous page |