Both sides previous revision Previous revision Next revision | Previous revision |
multicam [2018/11/10 20:14] – md to html yair | multicam [2018/11/28 03:18] (current) – yair |
---|
| {{ https://i.imgur.com/Mlg0IGom.png}} |
| |
| see also [[:ESP32-CAM]] |
<html> | <html> |
<h1>8BIT turntable</h1> | <h1>multi cam solutions</h1> |
| |
<p>a turntable embedded on a PCB</p> | <p>different approaches for recording and streaming a benchtop work surface</p> |
| |
<p>https://www.youtube.com/watch?v=em2OpwheHMU&</p> | <p><strong>## Raspi</strong> |
| the raspi can accept USB webcams but the usb2 limiting the bandwidth for multi cam solutions. |
| the raspi also always for direct connect of camera, with limitation of length . |
| elad fwd me to the arducam family of megapixel modules. |
| and arducam <strong><em>*multi cam switcher</em>*</strong> |
| <a href="http://www.arducam.com/multi-camera-adapter-module-raspberry-pi/">docs</a> |
| - <a href="http://www.uctronics.com/catalogsearch/result/?q=multi">official store</a> |
| - <a href="https://botland.com.pl/598-kamery-do-raspberry-pi?producenci*=arducam">euro supplier</a></p> |
| |
<h2>Layout</h2> | <p> |
| |
<p><img src="https://i.imgur.com/jlaOwRV.png" alt="http://gunook.com/honigbienenzahler-ii/" title="" /></p> | <img src="https://i.imgur.com/KeBJoNrl.png" alt="" title="" /></p> |
| |
<h1>encoding</h1> | <p>another switcher is offered by ivmach, <a href="http://www.ivmech.com/magaza/en/development-modules-c-4/ivport-dual-v2-raspberry-pi-camera-module-v2-multiplexer-p-109">link</a> |
| there are <a href="https://www.raspberrypi.org/forums/viewtopic.php?t=154540">claims</a> the arudcam one is not compatible with the raspi cam v2.</p> |
| |
<h2>gray encoding</h2> | <p><strong>## ESP8266</strong> |
| arducam also offers a nice esp8266 based platform for their many modules |
| 20$ to israel from <a href="https://www.amazon.com/dp/B01ESRYA2Y/ref=cm_sw_r_cp_ep_dp_3EIMAbX83ES58">amazon.com</a> </p> |
| |
<p>using something like an array of reflective IR sensors </p> | <p>https://www.youtube.com/watch?v=n1dDGNpbxGM&&&feature=youtu.be</p> |
| |
<p><img src="https://i.imgur.com/KrapStk.png" alt="qtr-8" title="" /></p> | <p><a href="https://youtu.be/n1dDGNpbxGM">https://youtu.be/n1dDGNpbxGM</a></p> |
| |
<p><strong>components</strong></p> | <p>2m raspiam extender - https://www.amazon.com/Adafruit-Flex-Cable-Raspberry-Camera/dp/B00XW2NCKS |
| arducam 5mpx cam with CS lens - https://www.amazon.com/Arducam-Megapixels-OV5647-Camera-Raspberry/dp/B012ETE75I</p> |
| |
<ul> | <p><strong>## Streaming</strong> |
<li>QRE111 - <a href="http://www.onsemi.com/pub/Collateral/QRE1113-D.PDF">datasheet</a>, <a href="https://www.aliexpress.com/item/50pcs-lot-QRE1113GR-QRE1113-QRE1113G-SMD4-Original-authentic-and-new-in-stock-Free-Shipping-IC/32841727674.html">aliExp</a> | <a href="https://janus.conf.meetecho.com/">Janus</a> - is a webRTC gateway for broadcasting one to many scenario - <a href="https://github.com/meetecho/janus-gateway">github</a> |
<img src="https://i.imgur.com/4fpaVVj.png" alt="QRE111" title="" /></li> | Streamer also support webRTC - <a href="https://gstreamer.freedesktop.org/news/">site</a></p> |
</ul> | |
| |
<p><img src="https://i.imgur.com/5jFBp8g.png" alt="" title="" /></p> | <p><strong>## raspi</strong> |
| i started with a raspi3 + cam module v1</p> |
| |
<p>a few approaches on the hookup | <pre><code>#Enable UART |
https://cdn.sparkfun.com/datasheets/Sensors/Infrared/SparkFun%20Line%20Follower%20Array_v10.pdf</p> | enable_uart=1 |
| force_turbo=1 |
| </code></pre> |
| |
<p>https://www.pololu.com/docs/0J13/2</p> | <p>nice raspi zero based “camera”</p> |
| |
<h2>Gray code</h2> | <p>https://www.youtube.com/watch?v=rTlItbnWJZk&&</p> |
| |
<p>a silkscreen on the round PCB bottom to encode the position using <a href="http://en.wikipedia.org/wiki/Gray_code">gray code</a></p> | <p><a href="https://youtu.be/rTlItbnWJZk">https://youtu.be/rTlItbnWJZk</a></p> |
| |
<p>generator #1 <a href="http://engineering.olkha.com/gray/">online</a> | <p><a href="https://github.com/techyian/SwitchCam">https://youtu.be/rTlItbnWJZk</a> https://github.com/techyian/SwitchCam</p> |
generator #2 <a href="https://github.com/Hyvok/Inkscape-rotary-encoder-disk-generator">inkscape</a></p> | |
| |
<p>https://www.youtube.com/watch?v=oc5hIxdCMZ0&</p> | <p>info on raspi cm modules |
| https://github.com/techyian/MMALSharp/wiki/OmniVision-OV5647-Camera-Module |
| https://github.com/techyian/MMALSharp/wiki/Sony-IMX219-Camera-Module</p> |
| |
<p>https://www.youtube.com/watch?v=JwU<em>DrI</em>Mmc&</p> | <p>MMAL |
| http://www.jvcref.com/files/PI/documentation/html/index.html</p> |
| |
<p>https://www.youtube.com/watch?v=IeWcvAsz88o&</p> | <p>https://www.youtube.com/watch?v=I1E8MrA5lhw&&</p> |
| |
<p>“to get a gray number only change one bit”</p> | <p><a href="https://youtu.be/I1E8MrA5lhw">https://youtu.be/I1E8MrA5lhw</a></p> |
| |
<p><img src="https://d2mxuefqeaa7sj.cloudfront.net/s_C3F26DA1DE2735AB305F4004085FAFE353789C4AD8CC62A80295D78BF90BFD02_1531819410575_image.png" alt="https://www.quora.com/What-is-the-difference-between-binary-numbers-and-Grays-code" title="" /></p> | <p><a href="https://youtu.be/I1E8MrA5lhw">https://youtu.be/I1E8MrA5lhw</a></p> |
| |
<p><img src="https://i.imgur.com/DbMB6Vv.png" alt="https://www.semanticscholar.org/paper/Design-of-absolute-encoder-disk-coding-based-on-n-Paul-Chang/" title="" /></p> | <p>“This repo's objective is providing something like Web Cam server on the most popular Raspberry PI hardware. By integrating <a href="[https://webrtc.org/native-code/](https://webrtc.org/native-code/">WebRTC</a>) and Raspberry PI, we can stream the Raspberry camera feed to browser or native client which talks WebRTC.” https://github.com/kclyu/rpi-webrtc-streamer |
| you can used the deb repo for compiled ready to run version |
| ` |
| Stream the #RaspberryPi camera module through your browser |
| http://www.recantha.co.uk/blog/?p=4165 |
| serious comments |
| https://raspberrypi.stackexchange.com/questions/7446/how-can-i-stream-h-264-video-from-the-raspberry-pi-camera-module-via-a-web-serve</p> |
| |
<h2>DC motor</h2> | <p><strong>## uv4l</strong> |
| https://www.linux-projects.org/uv4l/installation/</p> |
<p>simply connecting a dc motor to the spining disk | |
by rotating the disk you convert the enregy to analog input for MCU or whatever | |
problem with this approach it will not give enough output at slow speeds. so probably scratch that.</p> | |
| |
<h2>Stepper motor</h2> | |
| |
<p>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. </p> | |
| |
<p>following links are actually to use the sinusoidal wave of the stepper, a bit of a different approach | |
also a problem at low speeds. | |
https://wemakethings.net/2013/02/18/steppers-as-rotary-encoders/ | |
http://www.4qdtec.com/stpen.html</p> | |
| |
</html> | </html> |