Very very nice comment! Help understand better...
I will start with this quote:
What I need to achieve is simple! Just sense/check whether or not a piece is on the board (scanning the board) and when a change has been made on the board (ie a piece has changed location on the board), inform the PC (chess engine) of the change made so it can compute its counter move. That's all!
When starting the programming part there might be a few things to considerbut hardware comes first! And we also know the initial position of each piece...Now I am trying to come up with a simple and good circuit (with the right components) that will do the job.
Ok! 'switch' or 'analogue output' and Not a latch!
@ dyslexic: two types of sensors have been suggested at post #28 and #34 which one do you think would be best to use (knowing the application)?
one think I like about the #34 one is that apparently I won't have to use the A/D converter (less coding! that's great!!) + it has an 'open collector' output...but is unipolar...
And what 'package type' would be best to use given that the circuit will be PCB (it a requirement)? of course I'll have my platform on top! well maybe the 'type' doesn't really matter...huh?
About the initialisation/switching time...
Well I can't really tell right now but I'll assume that max scan time is 'one second' but I believe using multiplexing and fast chip we can have a complete scan for less than one second, correct?
I had a quick look at the #34 post one 'datasheet' but have not seen where they mentioned about the 'initialisation/switching' time...the ideal would be to have a complete scan for less than a second...any help here!?
I think I will go for the solution that uses 'schotty diodes' as like you said being safe doesn't hurt...
Thanks so so much for this post!
Ok!Decoupling caps: 0.1uF ceramic will be fine.
OK! but I'm so ...that I can't even choose one from digi-key...a digi-key link will really help!zener:
No, just signal diodes, anything that will handle a few mA
then I will have to decide based on the comment below! and especially when the 'Hall sensor' has been chosen!Internal PIC resistors:
I think you will find that they are pull-up resistors and small ones at that. It will depend on the Hall device you chose. If it has an open collector output then the answer is probably yes and you would be able to loose the diodes as well. See comments below.
I will start with this quote:
I thought everybody already knew the functionality!The point is you need to DESIGN the functionality first and then source the components. IF you then find that a component cant be found, or more likely found cheep enough, then modify your design so that you don't need the functionality that you are struggling to provide.
What I need to achieve is simple! Just sense/check whether or not a piece is on the board (scanning the board) and when a change has been made on the board (ie a piece has changed location on the board), inform the PC (chess engine) of the change made so it can compute its counter move. That's all!
When starting the programming part there might be a few things to considerbut hardware comes first! And we also know the initial position of each piece...Now I am trying to come up with a simple and good circuit (with the right components) that will do the job.
What I want to do (design definition) has been described in the previous quote! Now everybody knows what it all about...Digi-key alone list 65 Hall effect sensors that will work at 5V including all the output topologies I have mentioned and several more besides.
You will be able to pick one when you decide what you want to do.
Remember you need a switch or an analogue output NOT a latch!
Switches will cost less but check the initialisation and switching times as was mentioned in an earlier post.
Again you need to define the design, how long a scan time is acceptable.
If one board scan per second is OK then even a slow 125mS device is quick enough.
Ok! 'switch' or 'analogue output' and Not a latch!
@ dyslexic: two types of sensors have been suggested at post #28 and #34 which one do you think would be best to use (knowing the application)?
one think I like about the #34 one is that apparently I won't have to use the A/D converter (less coding! that's great!!) + it has an 'open collector' output...but is unipolar...
And what 'package type' would be best to use given that the circuit will be PCB (it a requirement)? of course I'll have my platform on top! well maybe the 'type' doesn't really matter...huh?
About the initialisation/switching time...
Well I can't really tell right now but I'll assume that max scan time is 'one second' but I believe using multiplexing and fast chip we can have a complete scan for less than one second, correct?
I had a quick look at the #34 post one 'datasheet' but have not seen where they mentioned about the 'initialisation/switching' time...the ideal would be to have a complete scan for less than a second...any help here!?
I have combined two paragraphs here...The hall effect sensors I used as an example require a positive supply and have a bipolar analogue output. If you use a device like this then you need to ensure that when multiple device outputs are connected together that one isn't sourcing current for another to sink, that's wheat the diodes are for.
Now it is most likely that as only one row will be powered on at a time that this wouldn't happen anyway but it doesn't hurt to be safe particularly as you are not an experienced designer. Without the diodes you only get to make a tiny programming mistake once and you will destroy 16 sensors.
However if you look at different solutions the the layout will change ... If your sensor is has a unipolar digital output, IE it is either on or off, then you don't need the diodes because there is nothing to protect.
If you plan to measure field strength to identify pieces or sense when they are just above the board, as feedback for your manipulation system, then you will probably want to use Schottky diodes to minimise voltage drop or even replace the diodes with current limiting resistors but that would depend on how the devices behave when not powered on.
I think I will go for the solution that uses 'schotty diodes' as like you said being safe doesn't hurt...
Nomore time to explore other solution...I sticking with the Hall sensor ones as we are advanced on this one!Since my post and drawing you have talked about 3 other options, all different.
Now there is nothing wrong with that, in fact I think exploring options is a great plan especially as the example I used was just the first common device I found as opposed to being the best option, technically or cost wise.
Thanks so so much for this post!