Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
pcbgreycode [2019/01/17 14:47] – yair | pcbgreycode [2019/06/01 11:56] (current) – yair | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{ https:// | + | a turntable embedded on a PCB, a silkscreen on a round PCB to encode the position using [[#gray_code]] |
- | + | ||
- | + | ||
- | ===8 BIT turntable=== | + | |
- | + | ||
- | + | ||
- | a turntable embedded on a PCB | + | |
- | + | ||
- | [[https:// | + | |
- | + | ||
- | {{: | + | |
+ | {{: | ||
{{: | {{: | ||
+ | [[https:// | ||
- | {{youtube> | + | === tools used === |
- | ====Layout==== | + | [[https:// |
+ | extensions | ||
+ | | ||
+ | | ||
- | {{https://i.imgur.com/jlaOwRV.png|Honey bee counter II}} | + | [[https://kicad.org|kicad]] |
+ | *[[https:// | ||
- | [[http://gunook.com/honigbienenzahler-ii|Honey bee counter II]] | + | ===Layout=== |
+ | [[https://www.pololu.com/docs/0J13/2|digital]] \\ | ||
+ | {{: | ||
- | ====encoding==== | + | [[https:// |
+ | {{: | ||
- | ===gray encoding=== | ||
- | using something like an array of reflective IR sensors | + | a few guides and approaches |
- | {{https://i.imgur.com/KrapStk.png}} | + | *[[http:// |
+ | *https://cdn.sparkfun.com/datasheets/ | ||
- | **components** | ||
- | |||
- | |||
- | *QRE111 - [[http:// | ||
- | *{{https:// | ||
- | |||
- | |||
- | {{https:// | ||
- | |||
- | a few approaches on the hookup | ||
- | *https:// | ||
- | *https:// | ||
===Gray code=== | ===Gray code=== | ||
+ | | ||
- | a silkscreen on the round PCB bottom to encode the position using [[http://en.wikipedia.org/ | + | < |
+ | < | ||
+ | </blockquote> | ||
- | *generator #1 [[http://engineering.olkha.com/gray|online]] | + | < |
- | *generator #2 [[https://github.com/Hyvok/Inkscape-rotary-encoder-disk-generator|inkscape]] | + | < |
+ | </blockquote> | ||
- | {{youtube> | + | {{: |
- | {{youtube> | ||
- | https:// | + | ===components=== |
+ | *QRE1113 - [[http:// | ||
+ | {{https:// | ||
+ | {{https:// | ||
- | “to get a gray number only change one bit” | ||
- | {{https://d2mxuefqeaa7sj.cloudfront.net/s_C3F26DA1DE2735AB305F4004085FAFE353789C4AD8CC62A80295D78BF90BFD02_1531819410575_image.png|https://www.quora.com/What-is-the-difference-between-binary-numbers-and-Grays-code}} | + | ====other methods==== |
+ | the following are for reference | ||
+ | ===LED as light Sensor=== | ||
+ | no word regarding detection speed | ||
+ | *[[https://wiki.analog.com/university/ | ||
+ | *[[https://makezine.com/projects/ | ||
- | {{https://i.imgur.com/DbMB6Vv.png}} | + | ===magnetic=== |
- | + | [[http://www.ichaus.de/upload/pdf/WP6en_Magnetic_vs_optical_17092012.pdf|Magnetic_vs_optical]] | |
- | https://www.semanticscholar.org/ | + | |
===DC motor=== | ===DC motor=== | ||
- | + | simply connecting a dc motor to the spinning disk\\ | |
- | simply connecting a dc motor to the spinning disk | + | by rotating the disk you convert the energy to analog input for MCU or whatever\\ |
- | by rotating the disk you convert the energy to analog input for MCU or whatever | + | problem with this approach it will not give enough output at slow speeds. so probably scratch that. |
- | problem with this approach it will not give enough output at slow speeds. so probably scratch that.</p> | + | |
===Stepper motor=== | ===Stepper motor=== | ||
Line 75: | Line 70: | ||
same as with the DC motor, you connect the motor to the disks center, then hook the stepper winding A1/2,B1/2 to an MCU, you get a nice stepping encoder. | same as with the DC motor, you connect the motor to the disks center, then hook the stepper winding A1/2,B1/2 to an MCU, you get a nice stepping encoder. | ||
- | following links are actually to use the sinusoidal wave of the stepper, a bit of a different approach | + | following links are actually to use the sinusoidal wave of the stepper, a bit of a different approach\\ |
also a problem at low speeds. | also a problem at low speeds. | ||
- | https:// | + | * [[https:// |
+ | * [[http:// | ||
+ | |||
+ | |||
- | http:// |