Jon Gridley Posted November 6, 2016 Share Posted November 6, 2016 https://hackaday.io/project/11224-mechaduino thought this may be of interest?, it allows very accurate posistioning along with constant posistion checking effectively turning out stepper motors into 360 degree servos reading the various wlak throughs it uses a magnet on the end of the stepper shaft and a magnetic rotarty encoder on the board, the calibration routine producting 16,384 entries for posisioning! 1 Link to post Share on other sites More sharing options...
colinc3e Posted November 17, 2016 Share Posted November 17, 2016 (edited) https://hackaday.io/project/11224-mechaduino thought this may be of interest?, it allows very accurate posistioning along with constant posistion checking effectively turning out stepper motors into 360 degree servos reading the various wlak throughs it uses a magnet on the end of the stepper shaft and a magnetic rotarty encoder on the board, the calibration routine producting 16,384 entries for posisioning! I bought the sensor AS5048B which makes up this device. $25 on a board which fits on the end of a stepper. It hooks up via the i2c interface and seemed pretty good - repeatable to better than 0.05 degrees. I have it running on a Raspberry Pi. Next move is to hook it up to the arduino which runs the stepper. Then can do a closed loop control system. this should avoid all issues with indexing etc. I obtained the board from ams.com - AS5048B evaluation kit. Note the data sheet has the lsb and msb of the angle register transposed. Edited November 18, 2016 by colinc3e Link to post Share on other sites More sharing options...
tender Posted November 17, 2016 Author Share Posted November 17, 2016 (edited) https://hackaday.io/project/11224-mechaduino thought this may be of interest?, it allows very accurate posistioning along with constant posistion checking effectively turning out stepper motors into 360 degree servos reading the various wlak throughs it uses a magnet on the end of the stepper shaft and a magnetic rotarty encoder on the board, the calibration routine producting 16,384 entries for posisioning! I bought the sensor AS5048B which makes up this device. $25 on a board which fits on the end of a stepper. It hooks up via the i2c interface and seemed pretty good - repeatable to better than 0.05 degrees. I have it running on a Raspberry Pi. Next move is to hook it up to the arduino which runs the stepper. Then can do a closed loop control system. this should avoid all issues with indexing etc. I obtained the board from ams.com - AS5048B evaluation kit. Note the data sheet has the lsb and msg of the angle register transposed. This looks like an interesting device. Edited November 17, 2016 by tender Link to post Share on other sites More sharing options...
Robin2 Posted November 26, 2016 Share Posted November 26, 2016 it allows very accurate posistioning I can't see how it can make a stepper motor more accurate than it is if you just count the steps. ...R Link to post Share on other sites More sharing options...
Simond Posted November 27, 2016 Share Posted November 27, 2016 I can imagine that it can improve repeatability, but not accuracy. But, if the stepper doesn't miss steps, it won't do that either. Best Simon Link to post Share on other sites More sharing options...
adgariglio Posted May 14, 2017 Share Posted May 14, 2017 Hi friends! After following this fantastic topic for a long time i decided build my turntable based on original code from Tender. I´m testeing the positioner system and found something strange. On my system, a NCE DCC, it´s working very well. But testing in friend´s layout, which uses a MRC Prodigy Wireless, it don´t work. There is some difference betwen NCE and MRC DCC packet? Someone have or had this problem too?Thanks for now! Link to post Share on other sites More sharing options...
tender Posted May 14, 2017 Author Share Posted May 14, 2017 Hi friends! After following this fantastic topic for a long time i decided build my turntable based on original code from Tender. I´m testeing the positioner system and found something strange. On my system, a NCE DCC, it´s working very well. But testing in friend´s layout, which uses a MRC Prodigy Wireless, it don´t work. There is some difference betwen NCE and MRC DCC packet? Someone have or had this problem too? Thanks for now! I think this is probably due to the way the MRC Prodigy handles the accessory addressing. I'm not familiar with this equipment, hopefully someone will come along and explain in detail. Link to post Share on other sites More sharing options...
adgariglio Posted May 14, 2017 Share Posted May 14, 2017 I think this is probably due to the way the MRC Prodigy handles the accessory addressing. I'm not familiar with this equipment, hopefully someone will come along and explain in detail. I think this too. I searched on internet somethink about MRC packet format to check if there is some particularity about it, but i didn´t found anything helpfull. Just the NMRA packet format. Anyway, thank you about your considerations. I hope someone can help me with this... Link to post Share on other sites More sharing options...
tender Posted May 14, 2017 Author Share Posted May 14, 2017 I think this too. I searched on internet somethink about MRC packet format to check if there is some particularity about it, but i didn´t found anything helpfull. Just the NMRA packet format. Anyway, thank you about your considerations. I hope someone can help me with this... Some time ago I was playing with an accessory decoder (can't remember which one of hand) but the address it responded to was plus (or minus) one from that expected. Might be worth giving that a try. Link to post Share on other sites More sharing options...
adgariglio Posted June 2, 2017 Share Posted June 2, 2017 Some time ago I was playing with an accessory decoder (can't remember which one of hand) but the address it responded to was plus (or minus) one from that expected. Might be worth giving that a try. thanks for the tip... i will do some tests with that information and will post the results here. I beleieve that someone may have the same problem... Link to post Share on other sites More sharing options...
ianjeffery Posted June 9, 2017 Share Posted June 9, 2017 is this topic still available for questions? i'm late to the party! Link to post Share on other sites More sharing options...
tender Posted June 9, 2017 Author Share Posted June 9, 2017 is this topic still available for questions? i'm late to the party! Very much so, ask away. Link to post Share on other sites More sharing options...
ianjeffery Posted June 9, 2017 Share Posted June 9, 2017 thanks. I just ordered one from Maplins - I wa going to use the web site proto-pic but im too impatient for postage and want to play this afternoon!!!! extra £6 is worth it for me. I have my turn table built, already have a stepper motor - just need to get the arduino hat for it now ( been testing with a raspberry pi adafruit hat ). I like the idea of using it from my NCE power CAB but not sure how to do that yet. Link to post Share on other sites More sharing options...
ianjeffery Posted June 10, 2017 Share Posted June 10, 2017 Hi tender. Would you be able to help me with one of the following ??? 1) convert the wiring diagram to a breadboard design 2) convert it to a circuit - i have an etching kit so I can make my own circuit board... Ian. Link to post Share on other sites More sharing options...
tender Posted June 10, 2017 Author Share Posted June 10, 2017 Hi tender. Would you be able to help me with one of the following ??? 1) convert the wiring diagram to a breadboard design 2) convert it to a circuit - i have an etching kit so I can make my own circuit board... Ian. I'll photo the two sides of my breadboard and post later this evening, should be able to work it out from that. Ray. Link to post Share on other sites More sharing options...
ianjeffery Posted June 11, 2017 Share Posted June 11, 2017 thanks, look forward to looking at them. Link to post Share on other sites More sharing options...
tender Posted June 11, 2017 Author Share Posted June 11, 2017 (edited) Ian. Here's the photos of the prototype breadboard DCC I/F i made. Component Side: Red and Black wire at the top are from the DCC track (the extra two Red/Black wires go to the Turntable bridge). Red and Black Wire at the bottom are from 5v and GND of the Arduino (the extra two Red/Black wires are the 5V supply for the Hall Sensor). Orange Wire is to I/O 2 on the Arduino. The Green wire from the Hall sensor (not shown here) goes to I/O3 on the Arduino. Copper Side: Note the 7 cuts in the copper track which can be made with a suitable drill or vero board cutter. (Also see post 8) Hope this helps. Ray. Edited June 11, 2017 by tender Link to post Share on other sites More sharing options...
ianjeffery Posted June 12, 2017 Share Posted June 12, 2017 hi Ray, Is this the same circuit ( minus the hall sensor ) that you have used above to interface with the DCC signal ? ( this shows a circuit that to me looks very simular ) http://www.mynabay.com/dcc_monitor/ Link to post Share on other sites More sharing options...
tender Posted June 12, 2017 Author Share Posted June 12, 2017 hi Ray, Is this the same circuit ( minus the hall sensor ) that you have used above to interface with the DCC signal ? ( this shows a circuit that to me looks very simular ) http://www.mynabay.com/dcc_monitor/ It appears to be, its a very commonly used circuit for a DCC interface. Ray. Link to post Share on other sites More sharing options...
ianjeffery Posted June 12, 2017 Share Posted June 12, 2017 hi Ray, so in effect, the interface listens to the dcc signal, and when it spots a 200 or 201 ID'ed packet to throw a point, it actually turns the turntable ? Link to post Share on other sites More sharing options...
ianjeffery Posted June 12, 2017 Share Posted June 12, 2017 Hi, I'm hoping Rigid collision is still on Here... If so, can i order a pcb please? Link to post Share on other sites More sharing options...
tender Posted June 12, 2017 Author Share Posted June 12, 2017 hi Ray, so in effect, the interface listens to the dcc signal, and when it spots a 200 or 201 ID'ed packet to throw a point, it actually turns the turntable ? Yep, that more or less what it does, doesn't have to be address 200, you can change it to whatever you like in the Arduino code as long as it's in the accessory decoder range. Later versions 'listen' for a range of addresse for different positions. Link to post Share on other sites More sharing options...
ianjeffery Posted June 13, 2017 Share Posted June 13, 2017 all. been fiddling around with a breadboard just to see if i can get anything working... after a bit of a head scratcher i realised my connection to the SPROG isn't great - a bit loose and so sometimes looses the signal ( or my sprog 3 is not 100% ok )... anyway, here is a dcc_monitor program running! Link to post Share on other sites More sharing options...
ianjeffery Posted June 14, 2017 Share Posted June 14, 2017 all, strange thing seems to be happening...... i only get packets picked up if i have my hand near one of the crocodile clips connecting the track dcc signal to the board???? if i dont have my hand near it i get no packets picked up???? Link to post Share on other sites More sharing options...
tender Posted June 14, 2017 Author Share Posted June 14, 2017 all, strange thing seems to be happening...... i only get packets picked up if i have my hand near one of the crocodile clips connecting the track dcc signal to the board???? if i dont have my hand near it i get no packets picked up???? What's the setup your using? Have you got the steppertest routine working with the stepper motor? How are you powering the Sprog and Adafruit motor shield? Sounds like you still have have a doggy joint or or wiring error somewhere. Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now