Go to Post A quote from the Southern California Regional Visitors guide: "If you are having problems the FIRST thing to do is ask your neighbor for help" - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2015, 16:27
yonisav yonisav is offline
Registered User
FRC #4712 (TracBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: israel
Posts: 9
yonisav is an unknown quantity at this point
Can we use this magnetic sensor?

Hello delphy
I found this https://www.controlanything.com/Relay/Device/CKN6004 magnetic sensor in a store (I am giving you an english link for your convenience) and I was wondering if it would be legal for FRC purposes?

I couldn't figure out how it should be operated from it's pdf manual, which is linked here: https://s3.amazonaws.com/assets.cont...rs/CKN6004.pdf
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2015, 16:33
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,878
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Can we use this magnetic sensor?

It looks like a magnetic reed switch. Yes it is legal. It is a custom circuit. Connect it to a Digital input & 0V. The input will read low when the switch is made. (magnet close to switch).
__________________
If you don't know what you should hook up then you should read a data sheet
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2015, 16:46
yonisav yonisav is offline
Registered User
FRC #4712 (TracBots)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: israel
Posts: 9
yonisav is an unknown quantity at this point
Re: Can we use this magnetic sensor?

But will it work with the DIO power output?

Last edited by yonisav : 05-02-2015 at 16:48.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2015, 17:12
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Can we use this magnetic sensor?

Quote:
Originally Posted by yonisav View Post
But will it work with the DIO power output?
It is a simple switch. It requires no power.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2015, 08:50
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 53
mshafer1 is an unknown quantity at this point
Re: Can we use this magnetic sensor?

Quote:
Originally Posted by Alan Anderson View Post
It is a simple switch. It requires no power.
This is correct. To add to what Alan said, this would make the switch be active low (i.e. the dio will read false when the switch closes), to make it active high you would connect it to 5v, but because the switch would cause a short circuit in that case you would have to put a resistor in series with it.

In short:
Ground - Switch - Input(on DIO) → active low
5v - switch - resistor (like 3.3k or bigger, but not too big) - input → active high

The first option is simpler, and it is easy to account for in software.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi