Skip to content

Commit

Permalink
Merge pull request #18 from fchampalimaud/AS_update_harp_images
Browse files Browse the repository at this point in the history
Update images to svg
  • Loading branch information
hgmarques authored Nov 4, 2024
2 parents 4d33e07 + 4d5ffb9 commit 7968d7b
Show file tree
Hide file tree
Showing 35 changed files with 30 additions and 7,251 deletions.
4 changes: 3 additions & 1 deletion docs/articles/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
href: install_harp.md
- name: Bonsai/Harp Examples (14)
items:
- name: Behavior Board (11)
- name: Behavior Board (12)
items:
- name: Analog Input
href: ../workflows/HarpExamples/BehaviorBoard/AnalogInput/AnalogInput.md
Expand All @@ -26,6 +26,8 @@
href: ../workflows/HarpExamples/BehaviorBoard/PWMToggle/PWMToggle.md
- name: Camera Trigger
href: ../workflows/HarpExamples/BehaviorBoard/CameraTrigger/CameraTrigger.md
- name: Servo Motor Control
href: ../workflows/HarpExamples/BehaviorBoard/ServoMotorControl/ServoMotorControl.md
- name: Servo Motor Toggle
href: ../workflows/HarpExamples/BehaviorBoard/ServoMotorToggle/ServoMotorToggle.md
- name: Quadrature Encoder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,21 @@
## Summary
This example demonstrates how to read analog input values from a potentiometer using the [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board (see hardware schematics below).


## Workflow

:::workflow
![Example](~/workflows/HarpExamples/BehaviorBoard/AnalogInput/AnalogInput.bonsai)
:::


## Details
1. Creates a connection with the Behavior board. The PortName property in the Behavior node needs to be set to the COM device on the computer.
2. Filters the messages from the Behavior board that pertain analog inputs.
3. Selects the AnalogInput0 (AD0) from the list of possible analog inputs (see the output of the Parse node in 2).


## Requirements
This example requires the following Bonsai packages:
- Harp - Behavior (from nuget.org)


## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board has two analog input channels: AD0 and AD1. The maximum voltage allowed is 5V. In this example, the board receives an analog input signal from a potentiometer connected to AD0.

![Schematics](./AnalogInputSch.svg){ width=65% }


7,226 changes: 1 addition & 7,225 deletions docs/workflows/HarpExamples/BehaviorBoard/AnalogInput/AnalogInputSch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ This example requires the following Bonsai packages:
- Harp - Behavior (from nuget.org)

## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can trigger two cameras using specific PWM signals in ports DO0 and DO1. The DOs output voltage is 5V. In this example, the board triggers frames from a PointGrey camera connected to DO0.
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can trigger two cameras using specific PWM signals in ports DO0 and DO1. The DOs output voltage is 5V. In this example, the board triggers frames from a PointGrey camera connected to DO0 (with a Hirose 6-pin GPIO connector on the back of the case).

![Schematics](./CameraTrigger.png){ width=65% }
![Schematics](./CameraTriggerSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Analog Input
# DIO Input

## Summary
This example demonstrates how to read digital input values from the DIO Port0 using the [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board (see hardware schematics below).
Expand All @@ -21,4 +21,4 @@ This example requires the following Bonsai packages:
## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board has seven digital input channels: DIPort0, DIOPort0, DIPort1, DIOPort1, DIPort2, DIOPort2, and DI3. The maximum tolerable voltage at these ports is 5V. In this example, the board receives a digital input signal from a switch connected to DIOPort0.

![Schematics](./DIOInput.png){ width=65% }
![Schematics](./DIOInputSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
This example demonstrates how to get the digital input values from a switch using the [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board (see hardware schematics below).

## Workflow

:::workflow
![Example](~/workflows/HarpExamples/BehaviorBoard/DigitalInput/DigitalInput.bonsai)
:::
Expand All @@ -25,6 +24,4 @@ This example requires the following Bonsai packages:
## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board has four digital input channels: DIPort0, DIPort1, DIPort2, and DI3. The maximum tolerable voltage at these ports is 5V. In this example, the board receives a digital input signal from a switch connected to DI3.

![Schematics](./DigitalInput.png){ width=65% }


![Schematics](./DigitalInputSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ This example requires the following Bonsai packages:
- Harp - Behavior (from nuget.org)

## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can control four digital output ports: DO0, DO1, DO2, and DO3. The DOs output voltage is 5V. In this example, the board controls the ON/OFF state of an LED connected to DO0. A resistor of 200Ohm is used to drop the current passing through the LED and prevent it from burning.
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can control four digital output ports: DO0, DO1, DO2, and DO3. The DOs output voltage is 5V. In this example, the board controls the ON/OFF state of an LED connected to DO0. A resistor of 200 $\Omega$ is used to drop the current passing through the LED and prevent it from burning.

![Schematics](./DigitalOutput.png){ width=65% }
![Schematics](./DigitalOutputSch.svg){ width=65% }

## Follow-up
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ This example requires the following Bonsai packages:
## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can trigger pulses in seven digital output ports: DO0, DO1, DO2, DO3, DOPort0, DOPort1, DOPort2, and the LED current ports: Led0, Led1. The output voltage of these ports is 5V. In this example, the delivers a digital pulse to an LED connected to DO0. A resistor of 200Ohm is used to drop the current passing through the LED and prevent it from burning.

![Schematics](./DigitalOutputPulse.png){ width=65% }
![Schematics](./DigitalOutputPulseSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ This example requires the following Bonsai packages:
## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board has two current sources: Led0 and Led1. In this example, the board controls controls the brightness of an LED connected to Led0.

![Schematics](./LEDToggle.png){ width=65% }
![Schematics](./LEDToggleSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ This example requires the following Bonsai packages:
## Schematics
All the messages to and from the [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) can be logged. In this example, only data relative setting and clearing of digital output ports is logged.

![Schematics](./LogSelected.png){ width=65% }
![Schematics](./LogSelectedSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ This example requires the following Bonsai packages:
- Harp - Behavior (from nuget.org)

## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can control four PWM sources in ports: DO0, DO1, DO2 and DO3. The DOs output voltage is 5V. In this example, the board controls the brightness of a LED connected to DO0. A resistor of 200Ohm is used to drop the current passing through the LED and prevent it from burning.
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can control four PWM sources in ports: DO0, DO1, DO2 and DO3. The DOs output voltage is 5V. In this example, the board controls the brightness of a LED connected to DO0. A resistor of 200 $\Omega$ is used to drop the current passing through the LED and prevent it from burning.

![Schematics](./PWMToggle.png){ width=65% }
![Schematics](./PWMToggleSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ This example requires the following Bonsai packages:
## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can read the position value of one quadrature encoder connected to Port2. The encoder in the schematics is the [ENC1J-D28-L00128L](https://www.digikey.be/en/products/detail/bourns-inc/ENC1J-D28-L00128L/1089391).

![Schematics](./QuadratureEncoder.png){ width=65% }
![Schematics](./QuadratureEncoderSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ This example requires the following Bonsai packages:
## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can control two servo motors in ports DO2 and DO3. The DOs output voltage is 5V. In this example, the board controls controls the position of a servo motor connected to DO2.

![Schematics](./ServoMotorControl.png){ width=65% }
![Schematics](./ServoMotorControlSch.svg){ width=65% }
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ This example requires the following Bonsai packages:
## Schematics
The [Harp Behavior](https://harp-tech.org/api/Harp.Behavior.html) board can control two servo motors in ports DO2 and DO3. The DOs output voltage is 5V. In this example, the board controls controls the position of a servo motor connected to DO2.

![Schematics](./ServoMotorToggle.png){ width=65% }
![Schematics](./ServoMotorToggleSch.svg){ width=65% }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7968d7b

Please sign in to comment.