Skip to content

Conversation

@jamieboyd
Copy link

Added support for UART control mode for a02yyuw distance sensor. This involved sending a byte to the device before trying to read it. Added an optional parameter to constructors to choose between auto and control mode

/// <summary>
/// Constant for output mode UART Auto
/// </summary>
public const byte MODE_UART_AUTO = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both const values are set to the same value of 1

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the second constant = 2.

**A02yyuw serial ultrasonic distance sensor**

The **A02yyuw** library is included in the **Meadow.Foundation.Sensors.Distance.A02yyuw** nuget package and is designed for the [Wilderness Labs](www.wildernesslabs.co) Meadow .NET IoT platform.
### Pinout for Sensor:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These readme files are auto-generated but I'll grab this text and add it to our docs - thx!

namespace A02yyuw_Sample
{
// Change F7FeatherV2 to F7FeatherV1 for V1.x boards
#if DEVICE_FEATHER // Feather: Change F7FeatherV2 to F7FeatherV1 for V1.x boards
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an interesting idea, we should think about something like this and apply it to all samples in the repo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a cleaner pattern for this that doesn't require compiler directives. See this as an example:

<AssemblyName>App</AssemblyName>
</PropertyGroup>
<ItemGroup>
<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these changes should be removed - we keep the develop branch using local refrences and main uses nugets

<None Include=".\Readme.md" Pack="true" PackagePath="" />
<None Include="..\..\..\icon.png" Pack="true" PackagePath="" />
<ProjectReference Include="..\..\..\Meadow.Foundation.Core\Meadow.Foundation.Core.csproj" />
</ItemGroup>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert to the project reference

jamieboyd added 22 commits May 23, 2024 15:19
I will reload to own directory
Added new calibration stuff
added different methods for getting updates with filtering based on analog input and temperature changes
Modified DO sensor to use interfaces properly,
DO sensor code and docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants