Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Add latching tutorial for Edge Control #91

Merged
merged 44 commits into from
Jun 14, 2021
Merged

Conversation

Lenardgeorge
Copy link
Contributor

@Lenardgeorge Lenardgeorge commented Mar 30, 2021

For tutorials:

  • I double checked the wiring in the schematics/images
  • I exported the cover image without background
  • I used SVG format for pure vector images
  • I updated the metadata.json file of the tutorial
  • I updated the metadata.json file of the previous tutorial to contain the "next" link
  • I did a spell checking before requesting a review
  • I used title case for titles

@sebromero
Copy link
Collaborator

@Lenardgeorge

❌ No metadata file found for tutorial content/tutorials/portenta-h7/ec-ard-3wirevalve/content.md

@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@sebromero sebromero changed the title Dev edgecontrol tutorial Add latching tutorial for Edge Control Apr 26, 2021
@sebromero sebromero assigned Lenardgeorge and unassigned sebromero Apr 26, 2021
@Lenardgeorge Lenardgeorge requested a review from sebromero May 7, 2021 13:36
Copy link
Collaborator

@sebromero sebromero left a comment

Choose a reason for hiding this comment

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

I recommend to elaborate on a few things. Without prior knowledge I can't fully follow this tutorial.


![Schematics of the 3 wire motor](assets/ec_ard_valve_wires.svg)

You need to ensure that the Phoenix connectors are in place before plugging in the wires to the respective pins. If you havent link
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is something missing here...


You need to ensure that the Phoenix connectors are in place before plugging in the wires to the respective pins. If you havent link

Connect the red and the blue wire to any one of the 8 pairs of `LATCHING OUT` pins. In this example we will use `1N` and `1P` of your Edge Control board. Latches allow you to store the state of the pins based on the previous output. As the valve doesnt come with internal drivers to store the state of the motor, we will use the `Latching_out` pins (instead of `Latching_out_cmd`) that are the ones that include drivers on the edge control.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not familiar with latches, so I don't fully understand this paragraph. What are we trying to do? Why do we need to store the state'


```

Inside the `loop()`you will add the instructions to open and close the Valve. `Latching.channelDirection()` is used to control the signal to a particular pin using the parameter `LATCHING_OUT_1` and its direction using the parameters, `POSITIVE` or `NEGATIVE`. Hence, if you want the valve to open you will use the instruction,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand the concept of "direction" hence I'm struggling a bit to understand this paragraph.

Serial.println("Closing");
Latching.channelDirection(LATCHING_OUT_1, POSITIVE);
Latching.strobe(4500);
delay(2500);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why the delay if we already use strobe()'


### 3. Connecting To A Power Source

The Valves require a power supply of 9 - 12 V and you can either use a power supply or a 3 cell lipo battery to provide the required voltage. Power sources can be connected to the onboard relay ports of the edge control board. Connect two jumper wires to the **GND** and **B** pins of the **Relay ports**
Copy link
Collaborator

Choose a reason for hiding this comment

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

How much current does it need to source?


### 3. Connecting To A Power Source

The Valves require a power supply of 9 - 12 V and you can either use a power supply or a 3 cell lipo battery to provide the required voltage. Power sources can be connected to the onboard relay ports of the edge control board. Connect two jumper wires to the **GND** and **B** pins of the **Relay ports**
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this power the board or the valve or both?

@sebromero sebromero merged commit 7f6d932 into main Jun 14, 2021
@sebromero sebromero deleted the dev-edgecontrol-tutorial branch June 14, 2021 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants