<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - DMG/Pocket video capture with Arduino or Teensy?]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/14029/"/>
	<updated>2016-06-23T23:02:55Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/14029/dmgpocket-video-capture-with-arduino-or-teensy/</id>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/245394/#p245394"/>
			<content type="html"><![CDATA[<p>OK, I just read though the whole thread.</p><p>If you want a non FPGA/CPLD approach, use a maple/maple mini. The STM32F103 has enough processing speed to read the video data and send it straight to its USB FIFO buffer, It is the PC&#039;s responsibility to read the data out fast enough. It even has enough ram to buffer a few frames to make it all go a lot smoother.</p><p>I have clocked the stm32f103 at a reliable 400kbytes/second (There can not be any other peripherals attached to the USB host and best if it is not via a hub) Latency is 1ms on USB high speed which means no handshaking, it&#039;ll be a one way street with CRC incorporated.</p><p>Reconstructing the video in real time on the PC is beyond me. I tried in Python but i cannot do it fast enough with Tkiniter. PyGame library would help but I found converting from 2bit to a RGB value takes too long. </p><p>If capturing is what you want, AV is what you need. a USBCAP chinese thing is only a couple of dollars. A CPLD and buffer to do the frame conversion will be under $10.</p>]]></content>
			<author>
				<name><![CDATA[BennVenn]]></name>
				<uri>https://chipmusic.org/BennVenn</uri>
			</author>
			<updated>2016-06-23T23:02:55Z</updated>
			<id>https://chipmusic.org/forums/post/245394/#p245394</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/245393/#p245393"/>
			<content type="html"><![CDATA[<p>Hey,</p><p>Yeah its VGA, wouldn&#039;t be hard to output composite instead (I&#039;ve prototyped it though the consensus was VGA instead). Even easier and more accurate would be pure digital into a PC.</p><p>There isn&#039;t a schematic and it uses a CPLD and lots of ram to buffer/sync the images.</p><p>You would need a fast and reliable method of getting data into your PC. 160x144x2bitsx60 frames a second = 2.764800 million bits per second, that is without any packet overhead. This is not something your arduino can do over a serial connection.</p><p>~350kbytes/sec is quite fast. You can drop frames and get a teensy to send data to the PC pretty easily but how many dropped frames is acceptable?</p><p>I think eBay has VGA video capture boxes, or even VGA to composite adaptors.</p><p>Or use some kind of compression, RLE would compress the data stream failry efficiently. Then how would you go about decompressing and reconstructing the video on the PC side?</p><p>If you want to record, the easiest solution is a hardware GB to AV out module.</p>]]></content>
			<author>
				<name><![CDATA[BennVenn]]></name>
				<uri>https://chipmusic.org/BennVenn</uri>
			</author>
			<updated>2016-06-23T22:37:12Z</updated>
			<id>https://chipmusic.org/forums/post/245393/#p245393</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/245383/#p245383"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>uXe wrote:</cite><blockquote><p>Don&#039;t bother...</p><p><a href="http://bennvenn.myshopify.com/products/porchie-the-vga-out-board-for-your-dmg" target="_blank">http://bennvenn.myshopify.com/products/ &#133; r-your-dmg</a></p></blockquote></div><p>1. This is VGA, I&#039;d like video capture into PC and / or AV<br />2. I don&#039;t see the schematic, I&#039;d like to make it myself instead of buying <br />3. I didn&#039;t know if someone&#039;s done something, alternative solutions should not be attempted, but now I know</p>]]></content>
			<author>
				<name><![CDATA[friendofmegaman]]></name>
				<uri>https://chipmusic.org/friendofmegaman</uri>
			</author>
			<updated>2016-06-23T20:29:37Z</updated>
			<id>https://chipmusic.org/forums/post/245383/#p245383</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/245357/#p245357"/>
			<content type="html"><![CDATA[<p>Don&#039;t bother...</p><p><a href="http://bennvenn.myshopify.com/products/porchie-the-vga-out-board-for-your-dmg" target="_blank">http://bennvenn.myshopify.com/products/ &#133; r-your-dmg</a></p>]]></content>
			<author>
				<name><![CDATA[uXe]]></name>
				<uri>https://chipmusic.org/uXe</uri>
			</author>
			<updated>2016-06-23T12:07:31Z</updated>
			<id>https://chipmusic.org/forums/post/245357/#p245357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/245347/#p245347"/>
			<content type="html"><![CDATA[<p>Ok, so back to the original idea of video capture / AV without FPGA.</p><p>I was browsing the web for some inspiration and found a couple of threads about NES emulation using Parallax Propeller. I am not very familiar with that uC so I don&#039;t quite buy that a full blown NES emulator could be made. But I don know that it is powerful enough to make almost SNES like games (e.g. <a href="http://www.instructables.com/id/El-Jugador-Retro-DIY-Game-Console/)" target="_blank">http://www.instructables.com/id/El-Juga &#133; -Console/)</a></p><p>From what I understand it can be clocked to 80MHz and SoC among other things has the video signal generator. With this in mind it appears that it could be used for VGA or NTSC / PAL signal generation for the gameboy. And it costs $8.</p><p>Is anyone familiar with Parallax Propeller? <br />How do you estimate the possibility of realizing this project with Propeller?</p><p>PS<br />Propeller datasheet <a href="https://www.parallax.com/sites/default/files/downloads/P8X32A-Propeller-Datasheet-v1.4.0_0.pdf" target="_blank">https://www.parallax.com/sites/default/ &#133; .4.0_0.pdf</a></p>]]></content>
			<author>
				<name><![CDATA[friendofmegaman]]></name>
				<uri>https://chipmusic.org/friendofmegaman</uri>
			</author>
			<updated>2016-06-23T06:58:20Z</updated>
			<id>https://chipmusic.org/forums/post/245347/#p245347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/222019/#p222019"/>
			<content type="html"><![CDATA[<p>Yes, I would like to help test that Luftek.</p>]]></content>
			<author>
				<name><![CDATA[Jazzmarazz]]></name>
				<uri>https://chipmusic.org/Jazzmarazz</uri>
			</author>
			<updated>2014-11-27T18:58:15Z</updated>
			<id>https://chipmusic.org/forums/post/222019/#p222019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/222012/#p222012"/>
			<content type="html"><![CDATA[<p>✪</p>]]></content>
			<author>
				<name><![CDATA[luftek]]></name>
				<uri>https://chipmusic.org/luftek</uri>
			</author>
			<updated>2014-11-27T17:43:35Z</updated>
			<id>https://chipmusic.org/forums/post/222012/#p222012</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/218843/#p218843"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Jazzmarazz wrote:</cite><blockquote><p>When I tried interrupts on the clock trace, I couldn&#039;t get the to work AT ALL. Not once. I tried everything. I tried with an arduino nano, uno and mega but nothing worked with interrupts.</p></blockquote></div><p>Great to hear some progress has been made. I think the problem may be that interrupts on the Arduino (or even interrupts on microcontrollers of this speed in general) are just too slow. Have you tried capturing the clock as data on the same port as the actual data bits to verify that you&#039;re reading the data bits at least once per the Game Boy&#039;s clock cycle?</p>]]></content>
			<author>
				<name><![CDATA[rvan]]></name>
				<uri>https://chipmusic.org/rvan</uri>
			</author>
			<updated>2014-10-12T00:25:47Z</updated>
			<id>https://chipmusic.org/forums/post/218843/#p218843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/217617/#p217617"/>
			<content type="html"><![CDATA[<p>Well, I gave it a go. A few weeks back I sat down and attempted to read the data bits into my serial monitor. I tried a hundred different sketches using different methods of reading ports, reading pins and using interrupts. </p><p>AF one point I was getting a bunch of 0&#039;s and 3&#039;s which is how a gameboy screen boots when there is no cart inserted (having internal pullup resistors in the data bus) meaning all 1&#039;s or 0&#039;s. Perfect. The only problem I had was that I was not properly utilizing v or hsync. So the monitor was simply reading anything and everything as quickly as possible. </p><p>When I tried interrupts on the clock trace, I couldn&#039;t get the to work AT ALL. Not once. I tried everything. I tried with an arduino nano, uno and mega but nothing worked with interrupts. </p><p>I think the problem may have been that I was using the port as a data port which also contained the interrupt pin. </p><p>In any case, I got data at one point, but nothing useable...yet.</p>]]></content>
			<author>
				<name><![CDATA[Jazzmarazz]]></name>
				<uri>https://chipmusic.org/Jazzmarazz</uri>
			</author>
			<updated>2014-09-22T17:25:30Z</updated>
			<id>https://chipmusic.org/forums/post/217617/#p217617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/215801/#p215801"/>
			<content type="html"><![CDATA[<p>If you haven&#039;t seen it already, there is some new interesting discussion about NeX&#039;s video out mod here: <a href="http://chipmusic.org/forums/topic/15041/how-is-the-vhs-capture-card-made/" target="_blank">How is the VHS capture card made?</a>.</p>]]></content>
			<author>
				<name><![CDATA[rvan]]></name>
				<uri>https://chipmusic.org/rvan</uri>
			</author>
			<updated>2014-08-21T05:08:12Z</updated>
			<id>https://chipmusic.org/forums/post/215801/#p215801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/213807/#p213807"/>
			<content type="html"><![CDATA[<p><img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> Thats good. Yeah, I happily use Bootcamp paired with Parallels for all my Windows Software/Hardware needs. I even got a 32 bit XP virtual machine for all my really old stuff that require 32 bit windows. Running those in Coherence mode I almost forget I&#039;m even virtualizing cause the mac/win apps run side by side. <img src="https://chipmusic.org/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[TylerBarnes]]></name>
				<uri>https://chipmusic.org/TylerBarnes</uri>
			</author>
			<updated>2014-07-22T05:24:37Z</updated>
			<id>https://chipmusic.org/forums/post/213807/#p213807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/213796/#p213796"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>TylerBarnes wrote:</cite><blockquote><div class="quotebox"><cite>friendofmegaman wrote:</cite><blockquote><p>So it appears that FPGA manufacturers tend to discriminate Mac users <img src="https://chipmusic.org/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p></blockquote></div><p>Everyone does really. Couldn&#039;t you run something like Parallels on your mac or are you rockin&#039; a PowerPC?</p></blockquote></div><p>I&#039;m just saying. I&#039;m gonna use bootcamp or find a PC. This definitely won&#039;t stop me from doing the project <img src="https://chipmusic.org/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[friendofmegaman]]></name>
				<uri>https://chipmusic.org/friendofmegaman</uri>
			</author>
			<updated>2014-07-22T02:14:17Z</updated>
			<id>https://chipmusic.org/forums/post/213796/#p213796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/213793/#p213793"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>friendofmegaman wrote:</cite><blockquote><p>So it appears that FPGA manufacturers tend to discriminate Mac users <img src="https://chipmusic.org/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p></blockquote></div><p>Everyone does really. Couldn&#039;t you run something like Parallels on your mac or are you rockin&#039; a PowerPC?</p>]]></content>
			<author>
				<name><![CDATA[TylerBarnes]]></name>
				<uri>https://chipmusic.org/TylerBarnes</uri>
			</author>
			<updated>2014-07-22T02:01:23Z</updated>
			<id>https://chipmusic.org/forums/post/213793/#p213793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/213788/#p213788"/>
			<content type="html"><![CDATA[<p>So I was wondering which language to use Verilog or VHDL. So for I found a bunch of reading on the former and not so many introductions / tutorials on the latter. Thus for now I&#039;m gonna stick with Verilog...</p>]]></content>
			<author>
				<name><![CDATA[friendofmegaman]]></name>
				<uri>https://chipmusic.org/friendofmegaman</uri>
			</author>
			<updated>2014-07-22T01:40:44Z</updated>
			<id>https://chipmusic.org/forums/post/213788/#p213788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DMG/Pocket video capture with Arduino or Teensy?]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/213561/#p213561"/>
			<content type="html"><![CDATA[<p>So it appears that FPGA manufacturers tend to discriminate Mac users <img src="https://chipmusic.org/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[friendofmegaman]]></name>
				<uri>https://chipmusic.org/friendofmegaman</uri>
			</author>
			<updated>2014-07-18T10:00:55Z</updated>
			<id>https://chipmusic.org/forums/post/213561/#p213561</id>
		</entry>
</feed>
