﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RoboticsConnection User Forum / RoboticsConnection Hardware Support / Robot Sensor Support  / MaxEZ1 Sensors not returning value on pins 0,3 or 8,9 / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>RoboticsConnection User Forum</description><link>http://216.167.195.152/userForums/</link><webMaster>info@roboticsconnection.com</webMaster><lastBuildDate>Sat, 18 May 2013 09:11:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Hi Tyler,&lt;/P&gt;&lt;P&gt;Well, normally you shouldn't need to update the firmware, unless we've launched new functionality that you'd like to leverage.  However, we flashed the first batch of the new Serializers with firmware that still had debuggin info in it.  And yes, it pisses me off when that happens...I hate to waste customers time on stuff like that.&lt;/P&gt;&lt;P&gt;Yes, you can manually command any of the sonar objects to query at the time you like, instead of automatically.   You just set the 'Enabled' property to false, then when you want to read it, invoke Update on the sonar object, then read the Distance property as you always did before. :)&lt;/P&gt;&lt;P&gt;       ez3.Enabled = false;&lt;/P&gt;&lt;P&gt;       ...&lt;/P&gt;&lt;P&gt;       ez3.Update();&lt;/P&gt;&lt;P&gt;       Console.WriteLine("ez3 distance: {0}", ez3.Distance);&lt;/P&gt;&lt;P&gt;You can read more about this under the QueryableComponentBase class (which all of the querable sensors derive from):&lt;/P&gt;&lt;P&gt;     &lt;A href="http://www.roboticsconnection.com/multimedia/libraries/MSDNDocumentation/_1rf1ahaqi.htm"&gt;http://www.roboticsconnection.com/multimedia/libraries/MSDNDocumentation/_1rf1ahaqi.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Tue, 22 Dec 2009 19:51:59 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>That did it!  Thanks for all your help Jason.  You may consider adding a section to the manual for people like me that says: "If you do not immediately update the firmware, your Serializer will malfunction, and you will die."  :)&lt;/P&gt;&lt;P&gt;Now that I feel rather dumb I am hesitant to ask, but I will ask anyways. Is there any way to get just one reading from the maxsonar rather than a continuous update for reasons of having more than 1 sensor without interference. I imagine this is easily done by enabling and disabling the sensor as needed but I though maybe there is a more clever method.  Thanks, as always. </description><pubDate>Mon, 21 Dec 2009 08:22:30 GMT</pubDate><dc:creator>Tyler</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Tyler,&lt;P&gt;I just posted an updated firmware download, which fixed some bugs we had related to the sonar sensors.  See &lt;A href="https://www.roboticsconnection.com/userForums/Topic1397-10-1.aspx"&gt;this post &lt;/A&gt;for info.  Anyway, grab the latest &lt;A href="http://www.roboticsconnection.com/multimedia/firmware/Serializer_Firmware_v3.0.0.zip"&gt;firmware&lt;/A&gt;, and update your Serializer using &lt;A href="http://www.roboticsconnection.com/multimedia/firmware/Bootloading/Serializer_3.0_Firmware_Upgrading_Guide.pdf"&gt;this upgrade guide&lt;/A&gt;.  I'll bet your app will work then! :)  Lemme' know!&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Fri, 18 Dec 2009 11:32:15 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Sorry, I guess the 400x400 is too small to read. &lt;/P&gt;&lt;P&gt;The RoboticConnection refrence is Runtime version 2.0.50727 and Version 3.0.0.0</description><pubDate>Thu, 17 Dec 2009 08:29:09 GMT</pubDate><dc:creator>Tyler</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>I set the target platform to .net 2.0 (it was 3.5 before) and still no luck.  I would like to blame a faulty sensor however it works fine using hyperterminal.  See anything abnormal here?  Thanks&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.roboticsconnection.com/userForums/Uploads/Images/1bbe4537-2760-4a6f-9943-399e.jpg"&gt;</description><pubDate>Thu, 17 Dec 2009 08:22:20 GMT</pubDate><dc:creator>Tyler</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Well, I do have the target platform set for .NET Framework 2.0 in the Serializer .NET Library solution...&lt;/P&gt;&lt;P&gt;What .NET framework versions do you have installed?  I would have expected the installer to complain if you did not have the .NET 2.0 Framework installed.&lt;/P&gt;&lt;P&gt;I just rebuilt it with the 3.5 Framework as the target platform, and have attached a link to it.  Give it a try and let me know! :)&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.roboticsconnection.com/multimedia/libraries/Installer_15x.msi"&gt;http://www.roboticsconnection.com/multimedia/libraries/Installer_15x.msi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Wed, 16 Dec 2009 12:07:43 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>I'm baffled.. I tried your code exactly with no luck.  Does the library have different runtime versions for 3.0? If so, what was the version that you are using.  Thanks for all your help, I am pretty sure it will end up being something stupid.</description><pubDate>Wed, 16 Dec 2009 11:30:50 GMT</pubDate><dc:creator>Tyler</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Tyler,&lt;P&gt;I just wrote this VB.NET app, and the MaxSonar-EZ1 and EZ3 work fine with the Serializer .NET Lib. :)  Although I did fry one Ez3 while testing this! :(&lt;/P&gt;&lt;P&gt;[quote]&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Components&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Controllers&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Ids&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; RoboticsConnection.Serializer.Sensors&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Imports&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; System.Threading&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Module&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; Module1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;WithEvents&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _serializer &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Serializer&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;WithEvents&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _maxEz3 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MaxSonarEZ1&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Main()&lt;/P&gt;&lt;P&gt;      _serializer = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Serializer&lt;/P&gt;&lt;P&gt;      _serializer.BaudRate = 19200&lt;/P&gt;&lt;P&gt;      _serializer.PortName = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"COM4"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;      _maxEz3 = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MaxSonarEZ1(_serializer)&lt;/P&gt;&lt;P&gt;      _maxEz3.DistanceChangedThreshold = 0.1&lt;/P&gt;&lt;P&gt;      _maxEz3.TriggerPin = GpioPinId.Pin3&lt;/P&gt;&lt;P&gt;      _maxEz3.OutputPin = GpioPinId.Pin4&lt;/P&gt;&lt;P&gt;      _maxEz3.UpdateFrequency = 5&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;      &lt;/FONT&gt;AddHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _serializer.CommunicationStarted, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;AddressOf&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CommunicationStartedEventHandler&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;      &lt;/FONT&gt;AddHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; _maxEz3.DistanceChanged, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;AddressOf&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; DistanceChangedEventHandler&lt;/P&gt;&lt;P&gt;      _serializer.StartCommunication()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;      &lt;/FONT&gt;While&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;      _serializer.PumpEvents()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#1f5080&gt;      &lt;/FONT&gt;Thread.Sleep(10)&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#1f5080&gt;      &lt;/FONT&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;While&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;   ' CommunicationsStarted Event Handler&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CommunicationStartedEventHandler(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; reader &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Serializer)&lt;/P&gt;&lt;P&gt;      Console.WriteLine(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Serializer CommunicationsStarted"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; DistanceChangedEventHandler(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SerializerComponent)&lt;/P&gt;&lt;P&gt;      Console.WriteLine(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Distance: {0}"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, _maxEz3.Distance)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;   End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Module&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Fri, 11 Dec 2009 19:39:37 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Hmm...I must have a bug in there somewhere...I'll look at it tonight, and post the fix. :)&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Fri, 11 Dec 2009 10:05:41 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;I tried the code posted above with no luck.  I also tried it in vb (relavent code is below).  As with the C# code, battery, connected, and disconnected events are updating fine.  I am using Visual Studio 2008 with the Serializer FW version 3.  If needed I can also post the C# code however it is identical to what you have above.  Thanks&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;WithEvents&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; Serializer1 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; Serializer&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;WithEvents&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; maxEZ &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MaxSonarEZ1&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;Serializer1 = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Serializer&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;maxEZ = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MaxSonarEZ1(Serializer1)&lt;/P&gt;&lt;P&gt;maxEZ.UpdateFrequency = 1000&lt;/P&gt;&lt;P&gt;maxEZ.DistanceChangedThreshold = 1&lt;/P&gt;&lt;P&gt;maxEZ.TriggerPin = GpioPinId.Pin3&lt;/P&gt;&lt;P&gt;maxEZ.OutputPin = GpioPinId.Pin4&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; maxEZ_DistanceChanged(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; RoboticsConnection.Serializer.Components.SerializerComponent) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; maxEZ.DistanceChanged&lt;/P&gt;&lt;P&gt;Label2.Text = covert.tostring(maxEZ.Distance)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Timer1_Tick(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.Object, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.EventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Timer1.Tick&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; connected &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;Serializer1.PumpEvents()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 11 Dec 2009 08:30:28 GMT</pubDate><dc:creator>Tyler</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Hi Tyler,&lt;P&gt;Can you post your code snippets please? :)&lt;/P&gt;&lt;P&gt;Also, which Serializer are you using? v2.0 or v3.0?&lt;/P&gt;&lt;P&gt;Did you sign up for the event, and add a handler like the example below?&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;maxez = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;MaxSonarEZ1&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(serializer);&lt;/P&gt;&lt;P&gt;maxez.TriggerPin = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;GpioPinId&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Pin3;&lt;/P&gt;&lt;P&gt;maxez.OutputPin = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;GpioPinId&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Pin4;&lt;/P&gt;&lt;P&gt;maxez.UpdateFrequency = 50; &lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;// 50 msec&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;maxez.DistanceChanged += &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;SerializerComponentEventHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(maxez_DistanceChanged);&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;static&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; maxez_DistanceChanged(&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;SerializerComponent&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Console&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.WriteLine(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"MaxEz distance: {0}"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, maxez.Distance);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Best Regards!</description><pubDate>Thu, 10 Dec 2009 20:51:48 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Hey Guys, &lt;/P&gt;&lt;P&gt;I have read through all the related forums and cannot find any help on this issue.  I am using the EZ3 (which uses the same pins and libraries as the EZ1) with the serializer on pins 3 (Trigger RX) and 4 (Output PW) of the digitalIO. When I run the code, it starts up (I can hear the slight clicking) however it never updates the value changed event.  I tested it in hyperteminal using 'Maxez1 3 4' and it returns the distance fine.  Any ideas?  Thank you in advance. </description><pubDate>Thu, 10 Dec 2009 14:23:33 GMT</pubDate><dc:creator>Tyler</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Jason,&lt;/P&gt;&lt;P&gt;1,2 being off when I2c is on is well documented. - But my 0 and 3 go off too. Off - I shouldn't say that. - Had the bot on the workbench next to the PC, fired it up (with I2c on and an EZ1 in on gpio 0,3) - FULL POWER LEFT MOTOR when it went on, LOL! Luckily it was reverse and the bot got pinned against one of the PC monitors. But, it left a nice skidmark on my desk. He he. Didnt expect that one!&lt;/P&gt;&lt;P&gt;Joe</description><pubDate>Sun, 14 Dec 2008 17:19:17 GMT</pubDate><dc:creator>Joe</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Guys,&lt;/P&gt;&lt;P&gt;It's documented in the Serializer User Guide (see Page 9 - Serializer Pinout), and in a few posts on this forum that pins 1 and 2 do not work for GPIO if you are using the Serializer I2C functionality.  This is because the SCL and SDA pins for I2C are tied to GPIO pins 1 and 2. :)  I see that I need to add this gotcha to the operational instructions for GPIO and I2C as well in the Serializer User Guide.&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Sun, 14 Dec 2008 16:41:27 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Me too. Couldn't get 0 and 3 to work when i2c was being used - or any combination from 3 to 0 for that matter. It seems all of my pins(3 to 0) shut down when i2c is on.&lt;/P&gt;&lt;P&gt;I wanted more sensors so I got the RangeWizard. - I posted something over in that part of the forum with regard to programmatically cooking the raw output to volts, then to the signal required.&lt;/P&gt;&lt;P&gt;Joe</description><pubDate>Sat, 13 Dec 2008 18:06:00 GMT</pubDate><dc:creator>Joe</dc:creator></item><item><title>RE: MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>I am seeing the same behavior.</description><pubDate>Sat, 13 Dec 2008 15:41:41 GMT</pubDate><dc:creator>baxelrod</dc:creator></item><item><title>MaxEZ1 Sensors not returning value on pins 0,3 or 8,9</title><link>http://216.167.195.152/userForums/Topic717-10-1.aspx</link><description>Hello&lt;P&gt;I'm having some issues with ranging from a MaxEZ1 sensor.&lt;/P&gt;&lt;P&gt;When hooked to pins 0,3 (trigger and output) it never returns a value (from hyper terminal i get a NACK)&lt;/P&gt;&lt;P&gt;same with 8,9.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4,5 work as well as 6,7.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When hooked to 0,3 or 8,9 the sensor is firing (i can hear it pulsing at the specified update frequency)&lt;/P&gt;&lt;P&gt;I am using the following:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;serializer = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Serializer&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;();&lt;/P&gt;&lt;P&gt;serializer.PortName = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"COM3"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;&lt;P&gt;serializer.BaudRate = 19200;&lt;/P&gt;&lt;P&gt;maxEZ = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;MaxSonarEZ1&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(serializer);&lt;/P&gt;&lt;P&gt;maxEZ.UpdateFrequency = 50;&lt;/P&gt;&lt;P&gt;maxEZ.DistanceChangedThreshold = 1;&lt;/P&gt;&lt;P&gt;maxEZ.TriggerPin = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;GpioPinId&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Pin0;&lt;/P&gt;&lt;P&gt;maxEZ.OutputPin = &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;GpioPinId&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Pin3;&lt;/P&gt;&lt;P&gt;maxEZ.DistanceChanged += &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;SerializerComponentEventHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(maxEZ_DistanceChanged);&lt;/P&gt;&lt;P&gt;serializer.Run();&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;the distance changed routine is never called.&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;-Xphile1999</description><pubDate>Thu, 27 Nov 2008 19:41:02 GMT</pubDate><dc:creator>Xphile1999</dc:creator></item></channel></rss>