Drunkenclam Posted May 16, 2019 Share Posted May 16, 2019 I'm not sure if anyone has played around with these type of sensors instead of using IR. So I though I'd give it a go. So for those who don't know. Hall Effect sensors measure or detect changes in magnetic field. So I am hoping that the field generatad by the motor will be detected. Failing that. It is possible to add an earth magnet into a train car. So I'll build a small test Now I'm only intending to put basic signal lighting on my layout, so nothing to grand. I ordered some of these signals. 3 aspect and a little short of 4cm. These are currently on order. The sensors arrived today. This type is omnipolar. As these are meant to detect both N & S magnetic fields. One of the things I might try is, if they work. Apply a little grey paint to them as they make nice ATC detectors, 🙂 5 Link to comment
chadbag Posted May 16, 2019 Share Posted May 16, 2019 Do let us know how it works out! Good luck! I have some long term interest in this myself. Short term I am working on other things, but longer term this is great! Link to comment
Keith Posted May 16, 2019 Share Posted May 16, 2019 I am also interested as detection is one of my long term goals. Link to comment
cteno4 Posted May 17, 2019 Share Posted May 17, 2019 Small neodymium magnet on the belly of the loco should do it. Works for the Tomytec bus sensors. jeff 1 Link to comment
Drunkenclam Posted May 17, 2019 Author Share Posted May 17, 2019 I am hoping the trains own magnetic field would be enough. I'll have to rig it up to an analog input on the arduino and read the output readings for different trains. Then maybe put in some threshold limits. First build a small test breadboard, to make sure happy with the program. Then install a sensor a a straight section of track. Will probably fit 2. One in different planes. 1 Link to comment
Drunkenclam Posted June 9, 2019 Author Share Posted June 9, 2019 (edited) So added some resistors and stuck them in the bread board. Done a little bit of coding on the arduino and test. I do want to change the code later away from using delay and time millis. So I can run more sensors at a time. The program also detects it the train is still over the sensor before changing from red to amber. I know the Kato ones would start changing through sequence. Even if there was a long train running through. Not much use for the hall effect sensor. but ok. if using IR detection. ie. if detecting, change to red, if clear for more than 0.5 seconds, start the timer to change from red to amber.... Edited June 9, 2019 by Drunkenclam 3 Link to comment
Drunkenclam Posted June 10, 2019 Author Share Posted June 10, 2019 So I'm pretty happy with the coding now. Soldered some wires to a sensor ready to mount on a piece of track. Stuck with the kids. So there I'll stop for the day. 1 Link to comment
Drunkenclam Posted June 13, 2019 Author Share Posted June 13, 2019 (edited) I guess, stage one was a failure. The magnetic field generated by the motor wasn't enough to trigger detection. I'm going to order up some magnets and when they arrive, Try again. so basic test videos of different motor cars I hope I don't get into trouble for so many videos in one post. Edited June 13, 2019 by Drunkenclam grammer 1 Link to comment
cteno4 Posted June 13, 2019 Share Posted June 13, 2019 Bummer. I bet a tiny may neodymium magnet will trip it on the bottom of the car as low as possible. I wonder if a taller magnet might trip the Hall effect better than a flat one as I think it will concentrate a longer but tighter magnetic field. Might get some 1x2mm magnets and attach one then if it doesn’t work pop another one on top and build up to see. The are only a penny or two each on ebay. Benefit is you can put them on the non powered lead cars to trip signals. jeff Link to comment
Drunkenclam Posted June 16, 2019 Author Share Posted June 16, 2019 (edited) Ok. So I ordered some 35x8x3 magnets. These fit nicely inside the Kato passenger cars and are held nicely to the metal rails running through the chassis for the lighting. Don't really fit in the tomix or microace passenger cars I have and a bit large to stick to the underside. But testing. They seem to work without issue. Edited June 16, 2019 by Drunkenclam Predicted texted prefers microwave to microace 2 Link to comment
Keith Posted June 16, 2019 Share Posted June 16, 2019 (edited) That is great news, it is so much simpler than breaking large sections into different detection zones and the circuitry is much easier than current detection. Which model Hall effect sensor did you use? Edited June 16, 2019 by Keith Link to comment
Drunkenclam Posted June 16, 2019 Author Share Posted June 16, 2019 (edited) Although I got these off ebay I recognize the packet as being from RS components. https://uk.rs-online.com/mobile/p/hall-effect-sensor-ics/6807510/ The wife can have her kitchen work surface back now. Haha Edited June 16, 2019 by Drunkenclam Link to comment
cteno4 Posted June 16, 2019 Share Posted June 16, 2019 Nice! I wonder if you could get away with much smaller ones under the car. The Tomytec bus are pretty small in the roadway for the sensors in the bus. jeff 1 Link to comment
Drunkenclam Posted June 16, 2019 Author Share Posted June 16, 2019 I'll be ordering some smaller ones. 6x4x1.5 Then try them out Link to comment
cteno4 Posted June 16, 2019 Share Posted June 16, 2019 Might try some oof the small round ones like 3x3mm as I think that’s about the size of the bus ones. Just paint them black and glue them on the undercarriage. Harder to do on locos but maybe a 1x5mm disc may work on the bottom. jeff Link to comment
Madsing Posted June 17, 2019 Share Posted June 17, 2019 Yes, this is very interesting. I tested the OH3144 Unipolar Hall Effect Switch IC (search for OH3144 at AliExpress) and they can detect the bus steering magnet from under the Tomytec bus track. Note that the OH3144 as well as the A3213 used here are switches. They have a latch and provide a "digital" output when the magnetic field becomes strong enough (or changes in a significant way). I also tested the AH35 Hall Sensor, and this one as a linear response (an analog voltage output that varies with the magnetic field). I wonder if it would be able to detect the train motor. Not tested. Marc Link to comment
Ochanomizu Posted June 18, 2019 Share Posted June 18, 2019 On 6/16/2019 at 9:05 PM, Drunkenclam said: Ok. So I ordered some 35x8x3 magnets. These fit nicely inside the Kato passenger cars and are held nicely to the metal rails running through the chassis for the lighting. Hello, Don't these magnets short out the metal rails you referred to above? Wouldn't it be better to locate the magnet elsewhere? Link to comment
cteno4 Posted June 18, 2019 Share Posted June 18, 2019 I think the chassis has them recessed some so it’s not coming in direct contact with the magnet but close enough for magnetic field to grip onto them. If the contacts are flush piece of scotch tape will insulate. jeff Link to comment
Ochanomizu Posted June 18, 2019 Share Posted June 18, 2019 Hello, I am investigating. Is it possible to use the Hall Effect Switch with the inputs on Digitrax products such as the DS54, DS64, or SEC8? All of these have 8 auxiliary switches and the SEC8 also has 8 detection zones. Link to comment
Drunkenclam Posted June 18, 2019 Author Share Posted June 18, 2019 2 hours ago, Ochanomizu said: Hello, Don't these magnets short out the metal rails you referred to above? Wouldn't it be better to locate the magnet elsewhere? 1 hour ago, cteno4 said: I think the chassis has them recessed some so it’s not coming in direct contact with the magnet but close enough for magnetic field to grip onto them. If the contacts are flush piece of scotch tape will insulate. jeff Correct. The magents sit on the plastic insert that makes the seat interiors, so not touching the rails. 1 hour ago, Ochanomizu said: Hello, I am investigating. Is it possible to use the Hall Effect Switch with the inputs on Digitrax products such as the DS54, DS64, or SEC8? All of these have 8 auxiliary switches and the SEC8 also has 8 detection zones. Thats behond my knowledge, But if it accepts a 5V dc input, I can't see why not. I did order some 3x2x1 magnets, Alot smaller to fit on the underside, for testing, I don't know why I go for bar magnets, Maybe easier to disguise then something thats round. 1 Link to comment
cteno4 Posted June 18, 2019 Share Posted June 18, 2019 3 minutes ago, Drunkenclam said: I don't know why I go for bar magnets, Maybe easier to disguise then something thats round. LOL! You are right it will work better on an undercarriage. I default from discs from wood working projects where I use the and can easily just drill a countersink hole to mount them in flush. I guess we have our own defaults that rule our reflexes! cheers jeff Link to comment
Keith Posted June 18, 2019 Share Posted June 18, 2019 2 hours ago, Ochanomizu said: Hello, I am investigating. Is it possible to use the Hall Effect Switch with the inputs on Digitrax products such as the DS54, DS64, or SEC8? All of these have 8 auxiliary switches and the SEC8 also has 8 detection zones. I was looking this morning at the RR-CirKits TC64 to see if you could just put the outputs com the Hall effect circuit directly in without another board. Link to comment
Drunkenclam Posted June 19, 2019 Author Share Posted June 19, 2019 Been playing with the 1mm magnets on the underside, seems the minimum thickness for consistance is 3mm so thats 3x2x3 Link to comment
cteno4 Posted June 19, 2019 Share Posted June 19, 2019 yep the magnet shape will effect the magnetic field created. cool sounds like a block that will look like a general piece of undercarriage equipment. i guess shinkansens you may need to use a bigger one inside the lead cars. jeff Link to comment
inobu Posted June 20, 2019 Share Posted June 20, 2019 (edited) I tried this route and the magnets were not practical. I did find another possible solution. SEN-13679. Sparkfun current sensor. Its a breakout board so its ready to go. It has 400mV sensitivity which is low enough. I got tied up on other stuff and put it on the shelf. They are $8 but you should be able to get them cheaper ordering (making your own pcb) in bulk. If you want to still try used the Keyes Hall sensor ky-035. Its a circuit board with LED build in. Inobu Edited June 20, 2019 by inobu 1 Link to comment
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