<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>protung.ro &#187; Electronic</title>
	<atom:link href="http://www.protung.ro/category/electronic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.protung.ro</link>
	<description></description>
	<lastBuildDate>Tue, 16 Feb 2010 18:03:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple score board with PIC16F690 &amp; 7 segment display</title>
		<link>http://www.protung.ro/2009/09/simple-score-board-with-pic16f690-7-segment-display/</link>
		<comments>http://www.protung.ro/2009/09/simple-score-board-with-pic16f690-7-segment-display/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 21:09:44 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Electronic]]></category>
		<category><![CDATA[Other programming]]></category>
		<category><![CDATA[7 segment]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[assembler]]></category>
		<category><![CDATA[PIC16F690]]></category>

		<guid isPermaLink="false">http://www.protung.ro/?p=207</guid>
		<description><![CDATA[Today i finished my second PIC project The first one was a LED Cube, but i didn&#8217;t published anything about it just because there are a lot of similar projects out there. So my project is a simple score board. Two 7 segments displays with a button for each one, the full source code (assembler) [...]]]></description>
			<content:encoded><![CDATA[<p>Today i finished my second PIC project The first one was a LED Cube, but i didn&#8217;t published anything about it just because there are a lot of similar projects out there.<br />
So my project is a simple score board. Two 7 segments displays with a button for each one, the full source code (assembler) and schematics.</p>
<p><img class="alignleft size-thumbnail wp-image-210" title="PIC16F690 score board 1" src="http://www.protung.ro/wp-content/uploads/screenshot_1-150x150.jpg" alt="PIC16F690 score board 1" width="150" height="150" /></p>
<p>This is a screen shot of the final assembly (yes, i soldered 2 flags  <img src='http://www.protung.ro/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  )</p>
<p>To build this board you need 2 330Ω, 7 220Ω and 2 10KΩ resistors, 2 NPN transistors, a PIC16F690, two 7 segment display (i used in my build a common cathode, if you use a common anode you have to change the schematics and code a little)  and 2 push buttons.</p>
<p>On my board i didn&#8217;t connected the decimal point (DP) from the displays, so if you want to connect yours then you have to get another 200Ω resistor for it and connect it to port B7.</p>
<p><span id="more-207"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.protung.ro/2009/09/simple-score-board-with-pic16f690-7-segment-display/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Sound level meter with K8055 (video)</title>
		<link>http://www.protung.ro/2009/08/sound-level-meter-with-k8055/</link>
		<comments>http://www.protung.ro/2009/08/sound-level-meter-with-k8055/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 16:48:05 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Electronic]]></category>
		<category><![CDATA[Other programming]]></category>
		<category><![CDATA[K8055]]></category>
		<category><![CDATA[sound level]]></category>
		<category><![CDATA[sound monitor]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.protung.ro/?p=104</guid>
		<description><![CDATA[I have implemented a new custom control in the K8055 Full Demo application that can send signals on outputs (analog or digital) based on the sound input in your microphone. The control also has a sensitivity track bar witch allow you to make the microphone more or less sensitive to input. Based on the sound [...]]]></description>
			<content:encoded><![CDATA[<p>I have implemented a new custom control in the K8055 Full Demo application that can send signals on outputs (analog or digital) based on the sound input in your microphone.</p>
<p>The control also has a sensitivity track bar witch allow you to make the microphone more or less sensitive to input.</p>
<p>Based on the sound level (and sensitivity adjustments) the program sends signals (you can see the LEDs light up) on a number of channels. So if the sound that is coming into the microphone is 6 the first 6 digital outputs are set (first 6 LEDs light up).</p>
<p>The same thing applies to the analog outputs, but instead of setting the output to ON or OFF it sent the voltage between 0-5V. For example if the sound level is 5 (this means the input in the microphone is around 127) it sends ton the analog channel a 127 signal that translates to 2.5V</p>
<p><span id="more-104"></span></p>
<p>Download <a href="http://www.protung.ro/wp-content/plugins/download-monitor/download.php?id=2" title="K8055 Full Demo Application (C#) (1.1.0.4)">here</a> (version 1.1.0.4) the new version of the application and try it out (source code included).</p>
<p>Also you can watch a short demo video.Because of the video quality the sound indicator might be a little unsynced with the sound.</p>
<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/KUoX7hziQVY" frameborder="0" allowFullScreen="true"> </iframe></p>
<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="425" height="344" src="http://www.youtube.com/embed/iiR5tTaut4Y" frameborder="0" allowFullScreen="true"> </iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.protung.ro/2009/08/sound-level-meter-with-k8055/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Velleman K8055 C# test application</title>
		<link>http://www.protung.ro/2009/08/velleman-k8055-c-test-application/</link>
		<comments>http://www.protung.ro/2009/08/velleman-k8055-c-test-application/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 19:04:17 +0000</pubDate>
		<dc:creator>Dragos</dc:creator>
				<category><![CDATA[Electronic]]></category>
		<category><![CDATA[Other programming]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[K8055]]></category>

		<guid isPermaLink="false">http://www.protung.ro/?p=39</guid>
		<description><![CDATA[In my attempt to (re)learn electronics and PIC programming I&#8217;ve bought a K8055 board from Velleman. I know it&#8217;s not good to learn PIC (actually you can&#8217;t do it with this board) but all i want initially is to make some simple projects without the headache of  programming the PIC. The board comes with source [...]]]></description>
			<content:encoded><![CDATA[<p>In my attempt to (re)learn electronics and PIC programming I&#8217;ve bought a K8055 board from <a title="Vellman" href="http://www.velleman.eu/ot/en/product/view/?id=351346" target="_blank">Velleman</a>. I know it&#8217;s not good to learn PIC (actually you can&#8217;t do it with this board) but all i want initially is to make some simple projects without the headache of  programming the PIC.</p>
<p><img class="alignright size-medium wp-image-93" title="K8055" src="http://www.protung.ro/wp-content/uploads/k8055-300x225.jpg" alt="K8055" width="300" height="225" /></p>
<p>The board comes with source code for C++ and a DLL so you can use it in your project to easly communicate with the board. If you need the library for linux get it from <a title="K8055 linux library" href="http://libk8055.sourceforge.net/" target="_blank">here</a>.</p>
<p>As my C++ skills are &#8230; well &#8230; let&#8217;s just say i haven&#8217;t programmed anything in C++ for a long time, I made myself a small program in C#.</p>
<p><span id="more-39"></span>In order to use the DLL in a C# project you must create a new class in order to declare it. You can achieve this by using [DllImport("name.dlll")].</p>
<p>Here is the C# class for K8055.dll</p>
<pre class="brush: csharp">using System;
using System.Runtime.InteropServices;

public class K8055CSharp
{
    [DllImport("K8055D.dll")]
    public static extern int OpenDevice(int CardAddress);

    [DllImport("K8055D.dll")]
    public static extern void CloseDevice();

    [DllImport("K8055D.dll")]
    public static extern int ReadAnalogChannel(int Channel);

    [DllImport("K8055D.dll")]
    public static extern void ReadAllAnalog(int Data1, int Data2);

    [DllImport("K8055D.dll")]
    public static extern void OutputAnalogChannel(int Channel, int Data);

    [DllImport("K8055D.dll")]
    public static extern void OutputAllAnalog(int Data1, int Data2);

    [DllImport("K8055D.dll")]
    public static extern void ClearAnalogChannel(int Channel);

    [DllImport("K8055D.dll")]
    public static extern void SetAllAnalog();

    [DllImport("K8055D.dll")]
    public static extern void ClearAllAnalog();

    [DllImport("K8055D.dll")]
    public static extern void SetAnalogChannel(int Channel);

    [DllImport("K8055D.dll")]
    public static extern void WriteAllDigital(int Data);

    [DllImport("K8055D.dll")]
    public static extern void ClearDigitalChannel(int Channel);

    [DllImport("K8055D.dll")]
    public static extern void ClearAllDigital();

    [DllImport("K8055D.dll")]
    public static extern void SetDigitalChannel(int Channel);

    [DllImport("K8055D.dll")]
    public static extern void SetAllDigital();

    [DllImport("K8055D.dll")]
    public static extern bool ReadDigitalChannel(int Channel);

    [DllImport("K8055D.dll")]
    public static extern int ReadAllDigital();

    [DllImport("K8055D.dll")]
    public static extern int ReadCounter(int CounterNr);

    [DllImport("K8055D.dll")]
    public static extern void ResetCounter(int CounterNr);

    [DllImport("K8055D.dll")]
    public static extern int SetCounterDebounceTime(int CounterNr, int DebounceTime);
}</pre>
<p>Compile it or add the project to your main application solution and you can use it in the same way you would use the unmanaged DLL</p>
<pre class="brush: csharp">K8055CSharp.OpenDevice(0); // open the device (SK5 and SK6 jumpers are on)
K8055CSharp.SetAllDigital(); // set all digital outputs
K8055CSharp.CloseDevice(); // close the device</pre>
<p>I also created some custom user controls.</p>
<p>Here are some screen shots from my application.<br />

<a href='http://www.protung.ro/2009/08/velleman-k8055-c-test-application/k8055/' title='K8055'><img width="150" height="150" src="http://www.protung.ro/wp-content/uploads/k8055-150x150.jpg" class="attachment-thumbnail" alt="K8055" title="K8055" /></a>
<a href='http://www.protung.ro/2009/08/velleman-k8055-c-test-application/k8055_full_demo_app_screenshot_1/' title='K8055_full_demo_app_screenshot_1'><img width="150" height="150" src="http://www.protung.ro/wp-content/uploads/K8055_full_demo_app_screenshot_1-150x150.jpg" class="attachment-thumbnail" alt="K8055_full_demo_app_screenshot_1" title="K8055_full_demo_app_screenshot_1" /></a>
<a href='http://www.protung.ro/2009/08/velleman-k8055-c-test-application/k8055_full_demo_app_screenshot_2/' title='K8055_full_demo_app_screenshot_2'><img width="150" height="150" src="http://www.protung.ro/wp-content/uploads/K8055_full_demo_app_screenshot_2-150x150.jpg" class="attachment-thumbnail" alt="K8055_full_demo_app_screenshot_2" title="K8055_full_demo_app_screenshot_2" /></a>
<a href='http://www.protung.ro/2009/08/velleman-k8055-c-test-application/k8055_full_demo_app_screenshot_3/' title='K8055_full_demo_app_screenshot_3'><img width="150" height="150" src="http://www.protung.ro/wp-content/uploads/K8055_full_demo_app_screenshot_3-150x150.jpg" class="attachment-thumbnail" alt="K8055_full_demo_app_screenshot_3" title="K8055_full_demo_app_screenshot_3" /></a>
<a href='http://www.protung.ro/2009/08/velleman-k8055-c-test-application/k8055_full_demo_app_screenshot_4/' title='K8055_full_demo_app_screenshot_4'><img width="150" height="150" src="http://www.protung.ro/wp-content/uploads/K8055_full_demo_app_screenshot_4-150x150.jpg" class="attachment-thumbnail" alt="K8055_full_demo_app_screenshot_4" title="K8055_full_demo_app_screenshot_4" /></a>
<a href='http://www.protung.ro/2009/08/velleman-k8055-c-test-application/k8055_full_demo_app_screenshot_5/' title='K8055_full_demo_app_screenshot_5'><img width="150" height="150" src="http://www.protung.ro/wp-content/uploads/K8055_full_demo_app_screenshot_5-150x150.jpg" class="attachment-thumbnail" alt="K8055_full_demo_app_screenshot_5" title="K8055_full_demo_app_screenshot_5" /></a>
</p>
<p style="text-align: left;">Download this application from <a href="http://www.protung.ro/wp-content/plugins/download-monitor/download.php?id=1" title="K8055 Full Demo Application (C#) (1.0.0.2)">here</a> (version 1.0.0.2) (installer &amp; C# source code)</p>
<p style="text-align: left;">Have fun with this application !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.protung.ro/2009/08/velleman-k8055-c-test-application/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

