top of page

L298 H-Bridge Commands

clr298 - Clear L298 Bridge Settings to Defaults

Purpose This will disable the l298 bridges and return the Port C & D pins to their defaults.

Syntax clr298


con298 - Control an L298 H-Bridge

Purpose Allows the specified L298 H-bridge to be controlled. The direction and speed of each half of the bridge may be set.

Note: The L298 H-Bridge must be connected to the JackBord as follows: L298 JackBord L298 ENA1 (PWM signal) C1 L298 IN1 C2 L298 IN2 C3 L298 ENA2 (PWM signal) C4 L298 IN3 C5 L298 IN4 D1

Syntax con298 bridge motor speed

Arguments bridge The number of the bridge to control. 1 or 2.

motor The number of the motor on the bridge to control. 1 or 2. speed The speed to be applied to the specified motor. The speed is between -100 and 100. 100 = Full forwards speed 0 = Stop -100 = Full reverse speed

Examples con298 1 1 100 Full forward speed on motor 1 on bridge 1.


l298 - List the L298 bridge settings

Purpose

Shows the settings of the L298 bridges.


Syntax

l298


p298 - Pulse L298 H-Bridge

Purpose

Pulse the specified l298 h-bridge no for the no of pulses with each separated by a delay in msecs.


Note: The L298 H-Bridge must be connected to the JackBord as follows: L298 JackBord L298 ENA1 (PWM signal) C1 L298 IN1 C2 L298 IN2 C3 L298 ENA2 (PWM signal) C4 L298 IN3 C5 L298 IN4 D1

Syntax

p298 B M P L D


Arguments

B

The number of the bridge to control. 1 or 2.

M

The number of the motor on the bridge to control. 1 or 2.

P

The number of pulses to send.

L

The length in milli-seconds of each pulse.

D

The delay in milli-seconds between each pulse.


Examples

p298 1 1 5 75 100 Pulse motor 1 on bridge 1 with 5 pulses each 75ms wide and with a 100ms delay between pulses.


rst298 - Reset L298 Bridge Settings to Defaults

Purpose

Reset the l298 bridges and disable them.


Syntax

rst298


sap - Set Linear Actuator Position

Purpose

This command will set the specified linear actuator shaft to the specified position.


Syntax

sap B M pos


Arguments

B

The number of the bridge to control. 1 or 2.

M

The number of the motor on the bridge to control. 1 or 2.

pos

The position of the END of the shaft from its fully closed position.


Examples

p298 1 1 5 75 100 Pulse motor 1 on bridge 1 with 5 pulses each 75ms wide and with a 100ms delay between pulses.


Notes

The width in pulses of the actuators full draw must be established beforehand to avoid damage.

The actuator should be of the type that automatically stops at each end of its extension.


apid - Set the Wifi access point SSID to use in World mode

Purpose Sets the Wifi access point SSID that the JackBord will try to connect to when it boots into World mode.

Syntax apid SSID

Arguments SSID The Wifi access point SSID. From 1 to 30 characters.

Examples apid Tree Set the SSID to Tree apid Big Fat Cat Set the SSID to Big Fat Cat


appw - Set the Wifi access point password to use in World mode

Purpose Sets the Wifi access point’s password of the access point the JackBord will try to connect to in World mode.

Syntax appw password

Arguments password The Wifi access point password. From 8 to 20 characters minimum.

Examples appw fish eat frogs Set the access point password to fish eat frogs


fuserap - Force the use of the user set Wifi access point.

Purpose If its set to 1 this means we want to force the JackBord to use the SSID set in the var even though the JBHub access point may also be available.

Syntax fuserap value

Arguments value 0 = Don’t force the use of the users ap. 1 = Yes do force the use of the users ap

Examples fuserap 0 fuserap 1


hget - Do an http request to the specified URL

Purpose

This will do an http GET request to the specified URL and store the results in the output variable, which must be of a text type.


Syntax

hget “URL” -> result


Arguments

“URL”

The http URL, in “” quotes to which the GET request is to be made.

result

This is a text variable that holds the result of the get request.


Examples

hget “www.google.com” -> /result



bottom of page